just a minor status update
- finished migrating FLevel Background and Palette
- implemented Texture Generation from Backgorund & Palette
- bugfixes!
- starting implementation / migration of existing XML Background2D to Ogre Resources
I had an issue with the generation of the Texture from FLevel Backgrounds, I was using PF_A1R5G5B5 format which works in DirectX but not in OpenGL
I could save it as an image and it would look fine and all but not if I use it for rendering
so now I'm always using Ogre::ColourValue to store colors and convert from there to what I need, that also has the advantage of being more consistent
throughout the system, as the ffvii files have diffferent formats. So one doesn't need to care or be aware of the different formats, just for serialization
it needs to be accounted for.
another Issue I had which I didn't notice until switching to DirectX for testing was mesh colours. I'm quite sure the model exporter for psx data suffers the same
it just works around it by loading the exported meshfiles. problem is when you create a vertex buffer for colours, you should do so in the format the RenderSystem
uses (OpenGL ARGB, DirectX ABGR) that one is squished as well
it's nice to have the choice for DirectX
an image with fixed skeleton
and FLevel background texture, just for testing
next is migrating some existing code to Ogre ResourceManagement so that I can easily switch the xml files for ffvii original data