A couple of questions...

Started by
0 comments, last by Fuzztrek 21 years, 5 months ago
Hello all! I have a couple of questions dealing with more.. intermediate game programing. First of all, is it better (faster, efficient, etc) to use pre-rendered shadows or realtime shadows for an RTS game? I know that blizzard has always used pre rendered shadows, and even as they move into 3D they have continued to use pre reanded shadows. I havn''t looked into this much so I would just like a general opinion if you have the time. Next, what are some good ways to implement terrain in an RTS? I really like warcraft 3, and I''m pretty sure that it doesn''t use a tile-based system. Is it better to create a map mesh or something similar? Thanks in advance!! Fuzztrek ¬_¬
Advertisement
Using prerendered shadows is best for an RTS. There are some problems using pre-rendered shadows with dynamic lighting where shadows don''t match the light source, ie, spell cast right over shadow and the shadow still persist. There are some hacks for this such as increasing blending on the shadow (may look ok if the shadow is small). As far as dynamic shading you get real-time shade meaning that shade is realistic, but takes more calculations, and arguably more work to implement, and (of course) is slower than using pre-rendered shadows. The gamble here is between visual quality and speed. For an rts it would be a better idea to use pre-rendered shadows due to the amount of units that may be visible at any point, is usually more than a typical FPS/RPG game where about only about 0-~10 shadows may be usually needed.

To implement terrain you will need to use a mesh whether to use tiles (like 2D games) or actual 3d height is your choice, I think War3 3D heights, but I cant say this for sure since I only played it once or twice a long time ago.

-------
Homepage: http://students.washington.edu/andrey
-------Homepage: http://www.pclx.com

This topic is closed to new replies.

Advertisement