Lots of changes for this version, not that it is very noticeable still, but I changed all the Texture manager settings, now the Material Manager Class will load once all the textures that run on the program and use them along the whole program, models sharing textures wont be compromised if an instance change the texture it is applied to them, in the Lego example there wasn't any problem as the textures where not shared, and that generated extra materials, textures and therefore waist of memory.
I also started the reading of the configuration file along the program, It will run on the beginning with the settings specified on it and if there is no file, the program will create it on the first run with default settings.
Here is an example of instancing and texture swapping, I found the model online, and I don't know where is it from or if it has any copy rights... but as this is just an image and it wont be released with the dll I don't see myself being sued... Hopefully...
Yo soy Alberto y ese ha sido mi post.
Happy Codding!
Suscribirse a:
Enviar comentarios (Atom)



No hay comentarios:
Publicar un comentario