We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

swatchyb

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 45 total)
  • Author
    Posts
  • in reply to: scaling re-sizing textures #30169
    swatchyb
    Customer

    Hi 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.

    in reply to: scaling re-sizing textures #30085
    swatchyb
    Customer

    Also, 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.

    in reply to: scaling re-sizing textures #30084
    swatchyb
    Customer

    Hi 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 :-/

    in reply to: scaling re-sizing textures #30049
    swatchyb
    Customer

    Thanks for the quick reply.
    Is there an email address I can share screen shots of app w/console?
    thanks again.

    in reply to: scaling re-sizing textures #30031
    swatchyb
    Customer

    Hi 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.

    in reply to: scaling re-sizing textures #29998
    swatchyb
    Customer

    Thanks 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. :)

    in reply to: scaling re-sizing textures #29860
    swatchyb
    Customer

    Can 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 :)

    in reply to: scaling re-sizing textures #29859
    swatchyb
    Customer

    for some reason I didn’t see the graph you attached … now I get it and will try it. thanks!

    swatchyb
    Customer

    sorry 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.
    /sb

    swatchyb
    Customer

    another error message with hope that it is helpful.
    thanks!

    swatchyb
    Customer

    Hi 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.jpg

    The 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

    swatchyb
    Customer

    MAGIC!
    thank you Ivan – this is so cool. that little bit of js opened the gate to the rest of the exciting project.
    thanks again!

    swatchyb
    Customer

    Hi 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)

    swatchyb
    Customer

    never mind, think I got it using with – get attr value from elem “inp_mat1” in parent.
    I am sure there will be other questions…

    swatchyb
    Customer

    and so it does…great, thanks Yuri!

Viewing 15 posts - 31 through 45 (of 45 total)