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

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

Closed
liuyehua opened this issue May 31, 2023 · 3 comments

Comments

@liuyehua
Copy link

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
@liuyehua
Copy link
Author

Both SMAA and fxaa are invalid

@N8python
Copy link
Owner

N8python commented Jun 1, 2023

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.

@N8python N8python closed this as completed Jun 1, 2023
@liuyehua
Copy link
Author

liuyehua commented Jun 4, 2023

thank you, it works

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