N8python/n8ao

I found that when there are linesegment models in the scene, there are many jagged lines that cannot be eliminated...

Closed this issue · 3 comments

I found that when there are linesegment models in the scene, there are many jagged lines that cannot be eliminated...

code
let child = [];
sponza.traverse(object => {
if (object.material) {
object.material.envMap = environment;
child.push(object)
}
})
child.forEach(m=>{
m.add(new THREE.LineSegments(new THREE.EdgesGeometry(m.geometry,90)))
})

such as

image

Both SMAA and fxaa are invalid

I'm afraid post-processing ambient occlusion and (in general) SMAA/FXAA don't work with just lines. Disabling dpeth-write on the lines should help the AO work though.

thank you, it works