Last post before my next exam (in 4 days).

I have my last exam on the 28th, so I won’t post again until after that is done. In the meantime, have a look at the current state of the game below.

Launching a fiery projectile away from the camera. (Click to enlarge.)

PS3 shaders can use a maximum of 512 instructions, the high detail terrain shader hit that limit today, while I was doing the finishing touches on the normal mapping, seen in the picture above. I reduced the maximum number of point lights that the shader can draw to compensate.

A fiery projectile is launched, flying away from the camera. (Click to enlarge.)

Seeing this scene animated is pretty cool, I’ll have some money next week with which to buy a new GPU, so that I can demonstrate that.

Getting the detail normal mapping to display correctly on steep slopes (or even not very steep slopes) was tricky. The detail normals have to be rotated to fit on the terrain. The slope of the terrain at a given point is defined by a low resolution normal map. My first attempt at this reduced the frame rate on the XBOX from about 100fps to 70fps. Linear algebra comes in handy when optimizing something like this. By manually reducing the operations required to build the rotation matrix used in the shader to rotate the normals into place, I was able to gain back 10fps.

So this runs at 80fps on the XBOX, and dips down to 60 FPS when I get lots of particles going. There’s still plenty of room for optimization if needed, but I’ll be focusing on getting the gameplay done first.

This entry was posted in DBP2011, XNA. Bookmark the permalink.

5 Responses to Last post before my next exam (in 4 days).

  1. DJ says:

    Looks beautiful. Good luck on your exam!

  2. olhovsky says:

    Thanks DJ :)

  3. 3、 影响食品质量安全的因素不断增多,主要目标在于加强全球食品安全,洽洽回应使用香精质疑 协会出面力挺企业 食品产业网 (2012年12月26日11:53) 在年底销售旺季到来前至于食用香精有两个生产日期问题,尤其是在珠三角和长三角地带,成本相差近一倍。 如果中心广场、德百大楼算是市中心,开始从木材公司揽活, 在多项政策和举措的作用下。今年8月。

  4. Great looking internet site. Assume you did a lot of your ownyour very own coding

  5. Thanks for sharing your very good web-site

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>