Not able to view texture

View previous topic View next topic Go down

Not able to view texture

Post  maulik.adhia on Tue Feb 24, 2009 8:57 am

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??

maulik.adhia

Posts : 1
Join date : 2009-02-24

View user profile

Back to top Go down

Re: Not able to view texture

Post  meteors on Tue Feb 24, 2009 9:46 am

Make sure your image is a power of two.



-j
avatar
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

View user profile

Back to top Go down

Re: Not able to view texture

Post  meteors on Tue Feb 24, 2009 9:48 am

By the way, its not very hard to write a function to convert any image to a power of two dimensions.


-j
avatar
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

View user profile

Back to top Go down

Re: Not able to view texture

Post  sio2interactive on Tue Feb 24, 2009 3:49 pm

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 );
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Not able to view texture

Post  meteors on Tue Feb 24, 2009 5:28 pm

Awesome :-)
avatar
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

View user profile

Back to top Go down

Re: Not able to view texture

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum