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.

SOLVED – Clipping distance with LineBasicMaterial

Home Forums General Questions SOLVED – Clipping distance with LineBasicMaterial

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #78358
    David Duperron
    Customer

    Hi there,
    I have some curve geometries in my scene, with a LineBasicMaterial applied on them, but it seems that there is a clipping distance below which these objects disappear.
    Is there an option in this LineBasicMaterial which I can modify to get rid of this problem? Does it depend on the geometry that uses the material (size/scale/position??)
    Thanks for your help!

    David

    #78386

    Hi David,
    Can it be because of the camera clipping distance limits (which can be easily modified with Blender)? If not, can you share a simplistic example that reproduces this behavior?

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #78446
    David Duperron
    Customer

    Hi Alexander,
    Thanks for your reply. I’ll try to put something in place but I’m afraid this is linked to my Application itself, and other things that happen in it, as I never saw this phenomenon in other “simplistic” apps where I made my tests and developments before to incorporate these in the main app…
    I will first monitor these line material before and after the issue appears in the App, to see if something changed in the material that could explain it…

    #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?

    #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à! :)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.