Timeline for XNA Billboards dont have correct depth
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 28, 2015 at 19:17 | comment | added | Ale |
@RyanEarnshaw Billboards are in fact 2d quads which rotate if the camera is moving. I don't know if they are billboard, because I cannot see them rotating. However, try a smaller value for the far plane. If it doesn't work, you may need to set DepthStencilState, BlendState and RasterizerState values at the beginning of each frame, remembering that SpriteBatch.Begin() sets these values to DepthStencilState.None, BlendState.AlphaBlend and RasterizerState.CullCounterClockwise (source: msdn.microsoft.com/en-us/library/bb195108.aspx). If you want a good answer, post your code.
|
|
| Feb 27, 2015 at 15:48 | comment | added | Ryan Earnshaw | @Ale The near is set to 0.5 and the far is set to 10000f as this is the players projection | |
| Feb 25, 2015 at 8:11 | comment | added | user52551 | I'm think it's not billboards, but just planes with texture of grass. | |
| Feb 24, 2015 at 19:10 | comment | added | Ale | Have you set a reasonable value for the near plane for the projection matrix? It should not be too much smaller than the far plane, and it should not be 0. | |
| Feb 24, 2015 at 18:51 | history | asked | Ryan Earnshaw | CC BY-SA 3.0 |