Not able to view texture
3 posters
Not able to view texture
Hi I am new to sio2. I have started working with .sio2 textures. When I export the sio2 file which has image and I have loaded that image on the texture but cant see that image on the simulator. I can see the model but the texture is not there. The image that I am loading on texture is a .jpg file In the tutorial4 I saw .tga file was used
So does that mean I cant use .jpg files??
So does that mean I cant use .jpg files??
maulik.adhia- Posts : 1
Join date : 2009-02-24
Re: Not able to view texture
Make sure your image is a power of two.
-j
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: Not able to view texture
By the way, its not very hard to write a function to convert any image to a power of two dimensions.
-j
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: Not able to view texture
SIO2 already have that capability for 1,2,3,4 bits images.
unsigned int sio2GetNextPow2( unsigned int _s )
void sio2ImageScale( SIO2image *, unsigned int, unsigned int );
unsigned int sio2GetNextPow2( unsigned int _s )
void sio2ImageScale( SIO2image *, unsigned int, unsigned int );
Re: Not able to view texture
Awesome :-)
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Permissions in this forum:
You cannot reply to topics in this forum