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.

David Duperron

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 155 total)
  • Author
    Posts
  • David Duperron
    Customer

    EDIT!
    the object3D.position is in the parent referential, which is not what we generally want!
    this is the correction, with the .getWorldPosition() method on the Object3D:

    David Duperron
    Customer

    Hi Alexander!
    Thanks for your reply.
    I was already looking that way with the Verge3D API, to get the right final position vector…
    here is the procedure I wrote to get this vector, that I can use in the tween camera puzzle. Took me quite a while to get the differences between the Vector3 and the simple array that this puzzle takes as an input!

    Anyway it works now.

    I guess it could be a nice addition to the camera puzzles, “tween to target keeping camera offset and direction”

    in reply to: Object Screen size #80817
    David Duperron
    Customer

    Nope… not yet… :-) I found this one but I also forgot to mention that it’s in the case of an orthographic camera…

    David Duperron
    Customer

    Hi Yuri!
    Thanks for your answer… I get what you suggest, but the tricky part is to set up the orthographic camera (position, ortho scale and viewport) to “look” the same way as the perspective one (field of view, position, direction), and respectively…
    I need to dig a little bit more…

    in reply to: Darker render after upgrade #79345
    David Duperron
    Customer

    Thanks Yuri!
    I checked all these parameters but it did not change much… I tweaked a little bit more my environment settings (HDR image, strength…) and it did the job.

    in reply to: Vv4D Plugins for Camera Animation Views collection #78972
    David Duperron
    Customer

    @qiangge please provide a minimum support for your plugin…
    I would need to better understand how the monitor material is created/handled, as it seems for now that the material is redefined upon any screen resize (the material UUID is different before and after a screen resize apparently…). Is this has something to do with your “screen event” puzzle?
    Is there a way to name this material once created and keep track of it?

    in reply to: Vv4D Plugins for Camera Animation Views collection #78812
    David Duperron
    Customer

    Hi!
    I just bought the Monitor plugin, but a little bit of explaination would be nice on how to set up a basic environment.
    Thanks for your work in any case! this might be very useful.

    in reply to: Interface object in Ortho view #78802
    David Duperron
    Customer

    I don’t know why but my object’s offset is linked to the zoom factor of the Ortho camera…
    The good news is: I managed to couteract this effect by multiplying by the same “factor” as the object’s scale… just one more line in the function…

    in reply to: Interface object in Ortho view #78757
    David Duperron
    Customer

    Maybe I can play on the “offset” value of the constraint applied to the object with a modified function.

    in reply to: Interface object in Ortho view #78751
    David Duperron
    Customer

    Hi @kdv!
    Yes I did not think about this function! You’re right we are almost there. I can keep the object to a constant scale relative to the viewport with this, but the offset from the left edge (and top edge) of the window is also scaled. I need to find where I can adjust this distance… if this is possible…

    in reply to: Interface object in Ortho view #78741
    David Duperron
    Customer

    Hi @kdv! Yes I noticed this difference. But I don’t know how to counteract the zoom effect on the object that is parented to the camera.
    I thought I could play on the scale of the object, that would be “linked” to the ortho zoom factor, but I cannot make it work…
    I guess I will have to fall back to an HTML overlay when in Ortho mode.

    in reply to: Interface object in Ortho view #78737
    David Duperron
    Customer

    Hi Xeon,
    Tried it several times but it does not work for me… when I parent an object to an ortho camera, and use the “fit to camera” option, the object scales like the main scene when I zoom in/out, no matter what…
    With perspective cameras it works without any issue, but not with ortho cameras… would be curious to have the developpers point of view about that?? @yuri?

    in reply to: Interface object in Ortho view #78699
    David Duperron
    Customer

    Thanks Xeon, I will try again, even if I think I did all this the first time… will keep you posted!

    in reply to: SOLVED – Clipping distance with LineBasicMaterial #78449
    David Duperron
    Customer

    Solved! :)
    It is due to the fact that I did not recalculate the bounding sphere of the curve objects when updating them…
    So this is the line to add to the JS script:
    curveToUpdate.geometry.computeBoundingSphere();
    et voilà! :)

    in reply to: SOLVED – Clipping distance with LineBasicMaterial #78447
    David Duperron
    Customer

    And about the camera clipping distance, I don’t understand how it could NOT see the line materials whereas it can see everything else… The camera clipping distance should affect everything am I right?

Viewing 15 posts - 1 through 15 (of 155 total)