nexus icon indicating copy to clipboard operation
nexus copied to clipboard

Nexus affecting geometry of other objects, post processing in ThreeJS

Open shiukaheng opened this issue 2 years ago • 2 comments

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!

shiukaheng avatar Apr 28 '22 11:04 shiukaheng

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 avatar May 03 '22 21:05 ponchio

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).

On Thu, Apr 28, 2022 at 1:35 PM Heng @.***> wrote:

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.

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

— Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/140, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV24X2EWKFOJSTFDOJ7DVHJZWJANCNFSM5USDGMTQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ponchio avatar Oct 11 '22 09:10 ponchio