Forum Replies Created
-
AuthorPosts
-
swatchybCustomer
Hi Ivan and GLifTec,
I found this thread after having the same problem of the transparent background working, but then being black in full screen. Was there any resolution or way to solve this.
Thanks!swatchybCustomerHi Mikhail,
Yes, it is an iOS problem, or a difference in behavior. In chrome, firefox and edge on the pc, node map you suggested on 6July (above) works great without a normal map node. However, in iOS, it will not. Found this by trial and error, but it is now working on both. One other clue that told me it was there but not rendering was that the shadow of the object appeared in iOS even though the object did not. Weird, Anyway, solved.
Thanks again on that.Now, can I ask another question?
I have scaling working with a factor/value from the db, but was wondering if I could use something like the following (attached) set value puzzle to get the jpg width and calc the scaling ratio from there automatically. Not working yet, so maybe you can suggest. Am I on the right track?
Thanks again. :)swatchybCustomerHi Mikhail,
Regarding the gltf’s not rendering in ios, after hours of hunting, found that one obscure object that repeated in all of my files did not have a normal mapping node, and that alone kept anything in that gltf from rendering in v3d. So problem solved
Thanks.swatchybCustomerAlso, on the texture scaling question, I have this puzzle that works if I put a constant for the set value to part, or send value from database, but I wanted to derive the width from the external jpg and calculate the scaling factor based on the difference to the original/stock texture as attached. Is this possible, or what am I doing wrong to get the mat1 width and make the calc vs the 512 original.
As well, even with a constant, it works on mat1, but not on 2 or3 etc. The xy “value” can’t be made unique in blender, or verge doesn’t see if I change the title of the value, so do you have a suggestion.
Thanks very much for your kind attention.
swatchybCustomerHi Mikhail,
B2B app won’t work without login, and would take some explaining to get to the verge part. So here is a screneshot of the console, but don’t think there is much to learn there from a windows screen vs ios. In ios, the primary background scene loads, but none of the assets/ other gltf’s. I had this problem once before on the ipad, and it mysteriously went away, but now back :-/swatchybCustomerThanks for the quick reply.
Is there an email address I can share screen shots of app w/console?
thanks again.swatchybCustomerHi again,
Just noticed that once I have added the nodes you suggested, the exported gltf does not render in ios/ipad. I have shadows disabled, so it’s not that. Any clues as to what needs to be disabled??
Many thanks.swatchybCustomerThanks for the tip and video link Mikhail – worked great. think i’ve got the scaling with the value thing figured out too, though not fully implemented.
but thanks in advance. :)swatchybCustomerCan I add a related question?
In Blender with evee, things are quite sharp, but once in verge, the textures blur a lot over distance. not using shadows, and really simple lighting and settings. any thoughts as to how to get less blurry halo?
attached are two snips, one from a blender evee window, and the other from verge in the browser.
thanks again :)swatchybCustomerfor some reason I didn’t see the graph you attached … now I get it and will try it. thanks!
2020-06-10 at 12:41 am in reply to: replace texture with external file, based on element content in parent doc #28595swatchybCustomersorry to bug you guys on this, but hoping you could give some direction as to how to approach this, or even if you think it is outside of v3d. My developer is very experienced, and believes that it is just something that v3d is not picking up. Again, the strangest thing is that it loads properly about 1 in 10 times on (with dymamic id’s) and, changes (material texture replace, or gltf unload load (to replace a part)) work only by manually adding a space to the input, even with the dispatch.
With thanks in advance for your help.
/sb2020-06-08 at 1:11 am in reply to: replace texture with external file, based on element content in parent doc #28509swatchybCustomeranother error message with hope that it is helpful.
thanks!2020-06-07 at 9:15 pm in reply to: replace texture with external file, based on element content in parent doc #28499swatchybCustomerHi Ivan and Yuri,
This was working well, but unfortunately the compexity and diversity of items I need to configure made setting session vars (20-30 simultaneous) and putting them in text inputs, clumsy. To really make things dynamic, I am trying to use a query/table of fields in the parent, that dynamically change the id, name and value on loading, with v3d listening for those id’s. On the DOM/html side, this seems to be working.for example:
id name value
inp_mat1 mat1 ../../assets/media/MAT/CreamBasic.jpg
inp_mat2 mat2 ../../assets/media/MAT/StoneLace.jpg
inp_mat3 mat3 ../../assets/media/MAT/TanLace.jpg
inp_mat4 mat4 ../../assets/media/MAT/BlueLace.jpgThe problem is that now we are back to v3d only reacting when a space is manually added to a field after load or change despite using the dispatchEvent that you offered and that worked when everything was static (names and id’s).
<input dmx-bind:id=”Dyn_MAT_id”
dmx-bind:name=”Dyn_MAT_name”
type=”text” class=”form-control”
dmx-bind:value=”MAT_repeat_url”
onupdated=”Dyn_MAT_id.dispatchEvent(new Event(‘input’));”>My coding “coach” gave a try adding a script to help, and diagnose, but with no luck.
<script>
function updateInput(elString) {
console.log(elString);
var el = document.getElementById(elString);
console.log(el);
el.dispatchEvent(new Event(‘input’));
}
</script>I thought it might be a sequence of events thing – that the html had to load before v3d, so that the id’s would be in place, but it also does not see them in an unload/load to replace (gltf’s) scenario, so not sure that is it.
As well, sometimes the dynamically/externally referenced gftl’s load on initial launch, and other times they do not. Attached is an example of a console message if that helps.
Any suggestions very appreciated. /sb
2020-05-29 at 5:06 pm in reply to: replace texture with external file, based on element content in parent doc #28172swatchybCustomerMAGIC!
thank you Ivan – this is so cool. that little bit of js opened the gate to the rest of the exciting project.
thanks again!2020-05-28 at 2:19 pm in reply to: replace texture with external file, based on element content in parent doc #28136swatchybCustomerHi again. continuing on the above…
SO close to this working beautifully, but have one snag.
In the parent doc, when a fabric/ material is selected it sets a session variable which in turn populates (dynamic attr) an input (mat1) with the url of the new texture. However, Verge does not respond to that input unless I manually place the cursor in the input and add a space (which seems) to wake up the listener in a way that just programmatically setting the value does not.
Any suggestions on how to give it a kick?
Thanks very much again!(ps had put the input in a form and submit, which works, but of course refreshes iframe too :-/
also, everything works on manual entry – the console shows it is listening as I type a value) -
AuthorPosts