XNA Tutorials, Samples and Thoughts
- 2D 2009 2010 Amused Sloth AmusedSloth Animation Announcement Chickens Can't Fly Chickens Can Dream code Community Games DBP Deferred Rendering details Finally! Gamasutra license MVP News postprocessing Rebellion Rise Roy Sample Shadows summary Summit Trailer tutorial Windows Phone Windows Phone 7 WP7 XBLIG XNA XNA 4.0
- February 2012 (1)
- September 2011 (1)
- June 2011 (2)
- March 2011 (1)
- February 2011 (1)
- January 2011 (2)
- December 2010 (2)
- July 2010 (1)
- May 2010 (1)
- April 2010 (1)
- November 2009 (1)
- October 2009 (2)
- September 2009 (2)
- August 2009 (1)
- July 2009 (1)
- June 2009 (4)
- April 2009 (3)
- March 2009 (2)
- February 2009 (2)
- January 2009 (5)
- December 2008 (1)
- November 2008 (2)
- October 2008 (4)
- September 2008 (5)
- August 2008 (1)
- July 2008 (7)
- June 2008 (1)
- May 2008 (4)
- April 2008 (3)
- March 2008 (3)
- February 2008 (4)
- January 2008 (2)
- Small pre-pre-beta shadow mapping lirary (36)
- Working on shadows… (34)
- My technique for the shader-based dynamic 2D shadows (29)
- April Sample Online! (20)
- 2D Skeletal Animations (20)
- School Projects with XNA (17)
- Mass Effect Dialogue Sample (17)
- Welcome! (14)
- My experience with Toon Boom Studio (12)
- Adding softness to shadows (12)
Wessel: I resolved the horizontal lines by changing the SurfaceFormat of the depth render target to...
AddictiveColors: Awesome idea, this screen space solution looks to be quite neat for games with many shadow casting...
meizitang: These healthy weight loss tips that will make it easier to take those first steps towards pursuing...
Adding the Effect files | Project Vanquish: [...] are unfamiliar with HLSL, Microsoft wrote a brilliant guide about programming in HLSL. And,...
Welcome to Project Vanquish! | Project Vanquish: [...] searching in the past regarding XNA and Deferred Rendering. The example that crops up the ...
De leukste filmpjes gratis plaatsen en bekijken.: De leukste filmpjes gratis plaatsen en bekijken.... [...]2D Skeletal Animations[...]...
Tim Stern: Hi Catalin, I discovered a possible mistake in your file Transformation.cs, function public...
louis vuitton: I'm glad I located your post. I would never have created sense of this subject on my own. I're...

about 3 years ago
Hey nice sample Catalin Zima, it opened my eyes to other rendering techniques.
But, as you said performance wise this isnt very good. So I did some messing around with your code and managed to get a drop on the CPU ( On My comp) from 52% to a average of 40%. I did it by changing are your while loops to if statements as well as making the Vertical Retracing sync with the refresh rate, which I also changed to be a fixed time.I’ve also changed the SpriteBatch.Begin(SpriteBlendMode.None)’s as well.
but at least i’ve managed to make it use less CPU. I did not test this on the Zune, because I don’t have one, but it should work the same.But On the PC I tested this with a resolution of 1280×720 and it runs just as well.
I’ve also updated it to the 3.0 Beta of XNA. Hope you don’t mind. You can see the changes I’ve made as well as download the sample by going to the adress as described at the bottom of this post.Full Credit goes to you of course for making it. Now I wasnt able to improve the quality
http://www.4shared.com/file/63848636/bcd91769/voxeltest.html?dirPwdVerified=95db8a73
about 3 years ago
Great!
I encourage it.
Of course I don’t mind people taking my samples and making them better
Quality can be improved in several ways, for example by using bilinear filtering on texture fetches, and other things.
However, I gave up improving on quality because the performance was unsatisfying. One of the most important improvements would be to convert all that floating points math into integer math (by using fixed point representation, for example), but I wasn’t successful with that.
Thanks for the sample. I’ll take a look at it, and see how it goes on the Zune, but it will have to wait until the DBP deadline passes
about 3 years ago
Aight cool then, thanks.
about 2 years ago
awesome tutorial! think I’m gonna scale this up a bit for a bigger project. just a suggestion. try not to use gamepad input. some people don’t have xbox gamepads, and it’s kinda annoying…again, awesome:)