xml3d / xml3d.js

The WebGL/JS implementation of XML3D
Other
75 stars 25 forks source link

getElementByPoint inverted normals #112

Closed wherget closed 8 years ago

wherget commented 9 years ago

Sometimes, getElementByPoint returns inverted normals, where one component of the vector has a negative sign compared to the expected normal vector. I'll try to come up with a scenario where I can consistently reproduce that behaviour.

csvurt commented 9 years ago

I discovered a bug with my own test scene that was causing a normal of -1,-1,-1 to sometimes be returned. I'm not sure if this was causing your problem but maybe you could have a look again with this fix.

I couldn't find any other problems in my test scene so if it's still broken a test case from yourself would be helpful.

wherget commented 9 years ago

Thanks for looking into this. I'll see if I can get your patch applied to the XML3D.js version we're using. The issue is a bit on the back burner for us right now as we're doing other things again.

csvurt commented 8 years ago

Closing this for now, if it shows up again feel free to reopen the issue.