Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nexus affecting geometry of other objects, post processing in ThreeJS #140

Open
shiukaheng opened this issue Apr 28, 2022 · 2 comments
Open

Comments

@shiukaheng
Copy link

shiukaheng commented Apr 28, 2022

Hi, I'm encountering a very strange problem with Nexus's javascript viewer, whenever some Nexus object is loaded, it jumbles up the vertices of other objects in the scene, and also, when I was trying to use a bloom post-processing filter, instead of getting the effect, I'm getting an overlay of the texture maps of the Nexus model. Both of these problems also seem to be link to load events in Nexus, as the jumbling / textures update on the screen regularly. Also, with the vertices issue, the vertices of the other objects seem to stay in position, but the order of the vertices get messed up leading to weird distorted faces.

I have no idea where to start, and I will try my best to provide an example, but the project I'm working on right now has a lot of other stuff going on for me to create a standalone clean demo, though it would be unlikely for them to have caused these bugs as it only occurs with Nexus objects. Would appreciate any thoughts!

@ponchio
Copy link
Contributor

ponchio commented May 3, 2022

Hi Heng,
the most probable reason is that Nexus is messing with buffers and textures.
Usually Threejs binds textures and vertex buffers whenever something is rendered, it is possible however that, in order to avoid useless binding
it keeps track of what is bound.

If you could send me a sample (I could not replicate the issue...) I could guess what the problem exactly is and fix it (I just probably need to invalidate the cache).

@ponchio
Copy link
Contributor

ponchio commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants