- Home /
Plane / Decal Flashes With Player / Camera Movement
i am instantiating decal prefabs which are just planes using
Instantiate(DecalSystem.Prefab, Info.point, Quaternion.FromToRotation(Vector3.forward, Info.normal))
(Info is the RaycastHit variable)
which works perfectly apart from when i start moving round as they start to flash / flicker and sometimes dissapear
Hello, same happens to me. I have background planes and the player moves perfectly but when following with the camera happens! I'm just giving to my camera script the position of the player using a public var.
@Nathre & superme2012 - I've converted your 'Answers' to comments. Answers are reserved for attempts to answer the question. Posting comments as answers run up the number of answers on a question and makes it less like to get a real answer.
Answer by whydoidoit · May 09, 2013 at 06:19 PM
You are suffering from Z fighting (the Z of two objects is almost or exactly the same and is the same as far as the depth buffer is concerned).
You have two choices:
Move the decal object further off the surface (you have to do this if it is actually on the surface)
Reduce the far clip plane of your camera and increase the near clip plane which provides for higher accuracy.
thaaaaaaaaaaaaaaaaaaaaaanx you man its work
Reduce the far clip plane increase the near clip plane
Your answer
Follow this Question
Related Questions
Arial camera get selected point 2 Answers
WebCamTexture zoomed in on iPad Pro 1 Answer
copying a 2d/3d plane/slab from one part of world and displaying it in another? 0 Answers
Why are high speed moving object flickering for rendering time 1 Answer
How to make camera position relative to a specific target. 1 Answer