FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Not able to view texture

3 posters

Go down

Not able to view texture Empty Not able to view texture

Post  maulik.adhia 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

Back to top Go down

Not able to view texture Empty Re: Not able to view texture

Post  meteors Tue Feb 24, 2009 9:46 am

Make sure your image is a power of two.



-j
meteors
meteors

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

Back to top Go down

Not able to view texture Empty Re: Not able to view texture

Post  meteors 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
meteors
meteors

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

Back to top Go down

Not able to view texture Empty Re: Not able to view texture

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

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

http://sio2interactive.com

Back to top Go down

Not able to view texture Empty Re: Not able to view texture

Post  meteors Tue Feb 24, 2009 5:28 pm

Awesome :-)
meteors
meteors

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

Back to top Go down

Not able to view texture Empty Re: Not able to view texture

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


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