Error after applying texture

View previous topic View next topic Go down

Error after applying texture

Post  robotdm on Mon Dec 08, 2008 8:07 am

Hi,

I am trying to replace the 3D model with my own one in tutorial02.
For me, it looks ugly with just vertex painted model.
So I tried to map texture(in jpg) on my model, then I encountered runtime error.
It stops at the following line.

void sio2ResourceGenId( SIO2resource *_SIO2resource )
....
>> if( _SIO2material->tname[ j ][ 0 ] &&

Do I have to put the texture image in the specific location?
I tried to follow the direction from video tutorial of tutorial04.

Cheers

robotdm

Posts : 2
Join date : 2008-12-07

View user profile

Back to top Go down

Re: Error after applying texture

Post  fatwilson on Mon Dec 08, 2008 9:42 pm

I have same problem.

fatwilson

Posts : 12
Join date : 2008-12-03

View user profile http://www.yourturntoplay.com

Back to top Go down

Re: Error after applying texture

Post  sio2interactive on Tue Dec 09, 2008 12:57 am

Humm interesting... can 1 of you send me the .blend file that cause problem by email...

Tks in advance,


Cheers,
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: Error after applying texture

Post  fatwilson on Wed Dec 10, 2008 10:11 pm

but exporting out the tutorials and it still don't work. Here is one were I replaced the object with a cub and edited here is the link.

Link

Thanks for looking into this and helping out so I can move forward.. Now just a not I should be able to use the template folder and xcode project right I have tired 01 - 05 and nothing even shows I can even get the same warning now so started over so this may not help. I will work with textures again tomorrow. This zip file was the soi2 file.

But Thanks again.

fatwilson

Posts : 12
Join date : 2008-12-03

View user profile http://www.yourturntoplay.com

Back to top Go down

Re: Error after applying texture

Post  sio2interactive on Thu Dec 11, 2008 1:18 am

Dude I don't know what to tell you I change the .zip and put as .sio2 and I plug it into tutorial03 and it work perfectly... Maybe review the video tutorials to make sure that you got the work flow right...
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: Error after applying texture

Post  fatwilson on Thu Dec 11, 2008 6:46 am

I figured as much.. as soon as I can load a module than I will get back to the texture issue that this post is about. Thanks.

fatwilson

Posts : 12
Join date : 2008-12-03

View user profile http://www.yourturntoplay.com

Back to top Go down

Re: Error after applying texture

Post  fatwilson on Thu Dec 11, 2008 12:09 pm

Now I should just be able to load the .soi2 file into resources using the template that is in the zip file and see the modified cube?
Maybe I don' have the folder structure set up right? (just unziped into my Users/name)
Maybe I don't have newest SDK?
I should be able to see my mesh as you do or are you using template02 or higher? ( this never seemed to matter)

Thanks Again



EDIT:

I don't think any of the blender files that you gave me will load as well when I export them out i will test this again when I get home.....

fatwilson

Posts : 12
Join date : 2008-12-03

View user profile http://www.yourturntoplay.com

Back to top Go down

Re: error after applying a texture (me too...)

Post  yarri on Fri Apr 10, 2009 1:58 am

Hi, I get an error in the same routine (sio2_resource.cc line 2077) only after trying to apply a texture. I'm taking Tutorial09, adding a sphere mesh, trying to apply a simple UV map -- using this Blender process by the way: http://www.developers-life.com/create-3d-earth.html (well, the bits I can read Wink )

Image is power of 2 (200x100) jpeg, image file name isn't too long, work flow looks fine: assigning vertex groups, applying the UV map, and of course it looks fine in Blender.

Would you mind taking a look at my sio2 file?
http://www.playngive.com/tutorial09.sio2

--yarri

yarri

Posts : 81
Join date : 2009-04-10

View user profile

Back to top Go down

Re: Error after applying texture

Post  sio2interactive on Fri Apr 10, 2009 3:45 am

1. Your image is NOT a power of two...

2. You need to bind the images to the material:

Code:

...
...
   sio2ResourceBindAllImages( sio2->_SIO2resource );

   sio2ResourceBindAllMaterials( sio2->_SIO2resource );
...
...

_________________
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: Error after applying 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