-
Notifications
You must be signed in to change notification settings - Fork 68
Adjusting Polygon offset factor #63
Comments
I can't think of a way. Three's |
Sorting of objects from back to front is already done with threejs by default. But the the nvidia guy gave multiple options:
What do you think ? |
Wonderful resource, thanks for finding this. Correct me if I'm mistaken, but this forum post addresses how to avoid self-intersection with the same triangle? What you're describing involves z-fighting between two triangles that are close together? I can see how 1. would fix that, but what about 2. and 3.?
|
|
Is there a way to adjust the polygon offset factor of the material in this ray-tracer as geometries that are really close to each other are z-fighting. The three.js real-time version works fine , the ray tracer doesn't seem to pick up the value put in the material properties.
Edit: I have tried to reduce the range of the camera near and far plane but with no success in the ray-tracer.
I also changed the precision of the depth buffer to 16 bits by setting depth to true [ in cavas context] in your RayTracingRenderer.js file but with no success.
Thanks !
The text was updated successfully, but these errors were encountered: