- Home /
Mesh Edges Flickering?
Hey guys! I'm hoping to get a little help with a problem I've been having with my project for quite some time now and can't seem to figure out how to fix... my problem is that I'm using a procedural city generator script in 3dsmax (it's called GhostTown), and it's great! But the problem is that many of the edges of the meshes after being imported are almost constantly flickering when in-game. I'm using the Oculus Rift and a multiple camera setup to try to reduce z-fighting buffer or whatever but it's just not seeming to fix it.. I've run out of ideas and nowhere on the internet have I been able to find a solution.. =/
Thanks for your time!
Answer by $$anonymous$$ · Nov 21, 2013 at 01:30 AM
It looks like you may be trying to eliminate a symptom and not the root cause.
You would normally see z-fighting when there are things drawn on top of each other using the same depth value. I would suggest examining your model and see if you have overlapping geometry at the edges of your mesh.
Do you see flickering when you use a single camera instead of the Oculus camera rig?
Oh wow! I hadn't even thought to try that but sure enough with Oculus mode disabled it looks just fine! Can't say I'm sure exactly why though...
$$anonymous$$y Oculus setup is using 3 cameras at different depths - one with very low near and far clip values for the player layer, one very far for the sky layer, and one for everything else.. Any ideas on why this is all happening would be greatly appreciated!
Looks like something maybe going on with overlapping camera views.
Do you have both Oculus and non-Oculus cameras enabled at the same time? Do you have the same depth assigned to each camera? Even in the Tuscany demo, left and right cameras have different depth values.
If I understand correctly what you're trying to do, you probably need 3 separate Oculus camera rigs each having its own left/right cameras.
If all else fails, try asking here: https://developer.oculusvr.com/forums/
Answer by rinkusaru · Nov 15, 2017 at 12:46 AM
Hi Did you able to find the solution to above problem I'm facing the same issue in oculus rooms and unable to found the permanent solution. Any help will be appreciated.
Your answer
Follow this Question
Related Questions
Mesh z-fighting to itself 1 Answer
Dynamically alter shader parameters? 1 Answer
OVR Grabbable causes object to ignore OnCollisionEnter/Exit 2 Answers
Render texture above something else 1 Answer
Use old Oculus handling with Unity5 0 Answers