Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    149
  • comments
    510
  • views
    95206

Saving Faces

Sign in to follow this  
noaktree

94 views

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.
Sign in to follow this  


1 Comment


Recommended Comments

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]

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!