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.

Replace “THREE” with “v3d” in other work?

Home Forums Programming Replace “THREE” with “v3d” in other work?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27675
    GLiFTeK
    Customer

    Hi
    Before attempting, I’m wondering if if for the most part, it’s doable to replace ALL “THREE.*” with “v3d” in Three.js projects that people have pasted on github, in order to have them work with the v3d library?

    I’m looking at trying to get this one working…
    clipping-with-caps
    Specifically this simulation.js
    (It’s last update was 4 yrs ago just fyi)

    Thanks :good:

    #27682

    sure you can try, but the API may be outdated

    Chief 3D Verger | LinkedIn | Twitter

    #27699

    Hi,

    it’s doable to replace ALL “THREE.*” with “v3d” in Three.js projects that people have pasted on github, in order to have them work with the v3d library

    Such replacement is actually not needed because v3d also declares the global variable “THREE” for compatibility reasons. So, it should be fine to leave it as is.

    But, as Yuri said the API can be outdated. If the code you’re trying to use is not from the official three.js examples repository (which is supported and tested by the three.js developers) and it’s several years old then there are high chances that it will have issues even when used with the latest three.js version, because three.js itself (and hence verge3d) have changed much over the years.

    Co-founder and lead developer at Soft8Soft.

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