🎉 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!

Project and Material Windows almost functional

Published November 16, 2020
Advertisement

I got the project window to automatically load the last project and room. I also integrated the window with the already functioning loading and saving system. You can also see an early version of the Material window. There will probably be more features added in the future, but this is the start for now. Each material can be solid or not, have an arbitrary number of frames for animation. Each frame can have reflection, refraction, and alpha, as well as be masked. The masking helps with memory. The shader determines both how Inspiration stores data internally and how it's rendered. The default Material 0 gets stored internally as 5 bits for each rgb component and will emit light.

Each project can load custom shader libraries which can either add additional shader functions, or override ones from previous libraries. Along the side, you'll see the next and last 9 materials and can select them from here as well as using the Material # number field. The number field iterates up/down by 1,4,16 depending on which arrow is clicked on. Material defines are stored in the project, but are not actually loaded until a room is loaded that requires it. When changing rooms, it'll also unload anything that's not currently needed.

This GUI code that I added is making me way more efficient. Should have done this at the start.

Previous Entry Inspiration Game Engine
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement