Replace your BasicEffects by SunBurnBasicEffect instances

rated by 0 users
This post has 1 Reply | 2 Followers

Top 10 Contributor
Posts 1,289
SunBurn_Community_Licensee
SunBurn_Contributor
SunBurn_Pro_Licensee
Philippe Da Silva Posted: 12-07-2010 5:38 PM

Hey guys,

In case you didn't know, SunBurn is making our life easier in a way we could spend some time crunching our heads around ;)

If you are using custom rendering for your alpha blended objects, make sure to use the builtin SunBurn replacements to Xna standard effects.

There is for instance a known bug when using multiple copies of BasicEffect which do not reset correctly their SamplerState states which may lead seeing some of your textures not accepting Linear SamplerStates.

Switching to SunBurnBasicEffect erases the issue and you're free to move as you would do in previous Xna versions ;)

By the way John, I imagine that Xna will get a 4.1 version somewhen just to solve such bug and I wondered what would then be the future of these classes: would you keep them or remove them?

Thanks again

Philippe

Top 10 Contributor
Posts 5,379
Employee
SunBurn_Studio_Licensee

Hi Philippe,

I just wanted to add that we also implemented a replacement model processor called "Model - XNA Framework (for SunBurn)".  It works just like the default xna model processor, adding BasicEffect effects to the ModelMeshParts, however it also avoids the xna 4.0 bug.

I'm not sure what will happen to these classes after the issue is resolved, but they will definitely stick around for a little while (in case of future xna issues).

 

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

Page 1 of 1 (2 items) | RSS