🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Saving Faces

posted in noaktree leaves
Published March 21, 2005
Advertisement
Added save and save as functionality to the editor today. It is now possible to load a DESM model with shader materials. Now I'll add support for the animated format. Other things I want to finish/add are the lighting control dialog, a projection texture light, and glow support. These will probably appear in a later version. I also added a swap chain for the two sphere material views.

Optimizations - The loader for the main library will be where certain model optimizations choices take place. When loading a static model I'm thinking that all subsets with the same materials will be grouped into one mesh. This also goes for subsets with no materials. This should reduce the number of DIP calls as well as reduce the number of state changes. I guess that's important.

Another optimization could be implemented by finding subsets that share the same shader and rendering them together to reduce the number of set shader calls. Any other ideas would be very much appreciated.

I do have a question about Alpha Blending and Alpha Testing. Is it better to leave these on all the time or just use them when needed? My thinking is that it would be better to just leave them on all the time since my blending depends on the diffuse alpha color and I could choose one color that will always be tested out. I'm not all that sure how these operations work inside of DirectX 9 and am looking to find good ways to reduce state changes.
Previous Entry Insert Title Here
0 likes 1 comments

Comments

superpig
Whether you should leave alpha testing turned on depends on your source data. If you've got a significantly high enough number of pixels that would fail the alpha test, then the extra comparison per pixel might be worth it. Otherwise it might not. I dunno, profile it [grin]
March 22, 2005 06:29 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement