Upgrade three.js for Vizualization stream

Typically: "How do I... ", "How can I... " questions
Post Reply
hedo
Posts: 5
Joined: 28 May 2024, 14:53

Upgrade three.js for Vizualization stream

Post by hedo »

Hi @all,

I am playing around with lighting and shadows in the three.js viewer of coppeliasim add-on Visualization stream.
However, when I wanted to add one more shader, I noticed that the version of three.js is quite old and different to the releases of three.js.

Is it possible to change/upgrade the version of three.js? Any hints where to start? Just switching to CDN in the HTML document of the viewer did not work.

Kind regards,

Heiko
fferri
Posts: 1334
Joined: 09 Sep 2013, 19:28

Re: Upgrade three.js for Vizualization stream

Post by fferri »

Not sure whether three.js aims to be backwards compatible by any extent, maybe not for such an extended period.

three.js version used by CoppeliaSim is r133.

You should start by looking at the console for warnings/errors and other traces of any issues.

Also, trying to figure out exactly at which three.js version it stops working might provide some useful insight.
hedo
Posts: 5
Joined: 28 May 2024, 14:53

Re: Upgrade three.js for Vizualization stream

Post by hedo »

Thank you for the inside information.
The error I get is always the same; using a newer version leads to a missing THREE reference in the visual stream js script.
I think it is a good start for me to test other shaders from this version of threejs first.
However, I noticed that the code is different to the one in the repo 'mrdoob/three.js' for tag r133.
Is it a custom version? It also differs from the module version of threejs.
I would be really happy if you could give me a hint.
fferri
Posts: 1334
Joined: 09 Sep 2013, 19:28

Re: Upgrade three.js for Vizualization stream

Post by fferri »

No it is not a custom version. It is the officially released three.js r133 version (not module).
Post Reply