Converting 1.3.1 -- Issues with rendering

This post has 2 Replies | 2 Followers

Top 25 Contributor
Posts 232
SunBurn_Community_Licensee
SunBurn_Pro_Licensee
2.0 Studios Posted: 02-17-2010 1:41 AM

G'day,

We are attempting to convert our project up to 1.3.1. It runs, but has some issues. Mainly that until we move the camera, it all looks fine. Then everything degenerates into these wierd artifacts, with peices of geometry not rendering, or being sliced up. I don't really know how to describe it, so here is everything before I move.


Here is everything after I move.

1

2


What on earth could cause something like this?
Also, the suburn editor has magical properties that make this probelm go away. We are using deferred rendering, but it also occurs in regular rendering. As a side note, we had a skull rendering without using sunburn, but it was kinda inside outish, since we updated.

Top 10 Contributor
Posts 5,368
Employee
SunBurn_Studio_Licensee

Hi 2.0,

It looks like RenderManager.ClearBackBufferEnabled is disabled and the depth buffer is not being manually cleared.  This will cause each frame to z-clip against all previous depth data.

You can either re-enable RenderManager.ClearBackBufferEnabled or make sure to include the depth buffer in any manual GraphicsDevice.Clear() calls.

Let me know if this helps!

Follow me on Twitter – development and personal tweets
Awesome XNA Videos – Lighting, Rendering, and game videos

Top 25 Contributor
Posts 232
SunBurn_Community_Licensee
SunBurn_Pro_Licensee

Ah thankyou for that. Flipped a bool to true, and all was good. Easy to spot when you know how.

1.3.1 is rather different, but is much better to use. Thanks for your help :)

Page 1 of 1 (3 items) | RSS