One Texture used twice

Blitz3D Forums/Blitz3D Programming/One Texture used twice

KuRiX(Posted 2005) [#1]
Hello friends. I need to make two different brushes from the same texture. In fact, i want to make two different materials in 3dsmax6 with the same texture (to make one two sided).

Will blitz3d load the texture twice in memory?

Thanks a lot...


jfk EO-11110(Posted 2005) [#2]
Blitz is trying to optimize memory usage automaticly, therefor it will try to use an instance and not load it twice IF all properties of the texture are the same.

In Blitz code you can ship around this problem if you use CreateTexture and then CopyRect it from the original Texture, in a Max exported File you maybe need to use diffrent texture flags.

You can test if it works, load the mesh in Blitz3D, then determine the texture handles of both textures, then draw something to one of these 2 buffers and see if it's visible on both textures.


KuRiX(Posted 2005) [#3]
Good idea... i will try! thanks!