Texture for sphere can not be renderred on Simulator

View previous topic View next topic Go down

Texture for sphere can not be renderred on Simulator

Post  taxi4alex on Mon Jun 15, 2009 2:15 am

Hello,

I currently have problem with texture for sphere on Simulator.
Using Blender 2.48a, I create an "earth":
-Use UVShere
-Add Material
-Add Texture which is a flat earth image from NASA.

I can see the appearance of texture on Sphere when viewing object with Texture. Checking the earth.sio2 file, it contains the flat earth image, the Material, the Object. But when I used tutorial02 sample code to render this sphere on simulator, it displays the earth with black/white grids only. The texture can not be rendered.

I added these code to tutorial02 for binding resources:
sio2ResourceBindAllImages( sio2->_SIO2resource );
sio2ResourceBindAllMaterials( sio2->_SIO2resource );

-Blender Version: 2.48a
-SIO2 SDK Version: 1.35

Could anyone please help me?

Thanks,
Alex

taxi4alex

Posts : 5
Join date : 2009-06-10

View user profile

Back to top Go down

Re: Texture for sphere can not be renderred on Simulator

Post  taxi4alex on Mon Jun 15, 2009 2:26 am

This is the blender file and the image which I used: earth.zip

Thanks,
Alex

taxi4alex

Posts : 5
Join date : 2009-06-10

View user profile

Back to top Go down

Re: Texture for sphere can not be renderred on Simulator

Post  sio2interactive on Mon Jun 15, 2009 4:04 am

Can't download sorry... but:


1. Did you add some UV to the sphere.

2. Does the sphere map is a pow of 2 below 1024x1024?

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
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: Texture for sphere can not be renderred on Simulator

Post  taxi4alex on Mon Jun 15, 2009 8:44 pm

Hi SiO2,

I dont know much 'bout Blender.So I need to work more with Blender for UV. I used 2048x1024 image.

I changed to IcoSphere with 2048x1024 image and it works now Very Happy. It's so cool with a beginner!

Thanks,
Alex

taxi4alex

Posts : 5
Join date : 2009-06-10

View user profile

Back to top Go down

Re: Texture for sphere can not be renderred on Simulator

Post  sio2interactive on Mon Jun 15, 2009 9:10 pm

Your texture have to be max: 1024x1024 to work properly on the device...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
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: Texture for sphere can not be renderred on Simulator

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