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.

Doubt in tutorial 09

2 posters

Go down

Doubt in tutorial 09 Empty Doubt in tutorial 09

Post  vikthered Wed Jul 08, 2009 8:39 pm

Hi,

In tutorial 09, after i created the plane and the cylinder, i gave the plane an image texture. It compiles without any error but stops running after the 'Loading' screen. No

It shows an error in file sio2_resource.cc line 2077...

it works if i remove the texture....

please help

vikthered

Posts : 25
Join date : 2009-06-25

Back to top Go down

Doubt in tutorial 09 Empty Re: Doubt in tutorial 09

Post  sio2interactive Wed Jul 08, 2009 8:46 pm

Can you please give more details... like what texture, what size, which channel, did you have a UV channel etc... and what's on line 2077 Wink

Cheers,
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Doubt in tutorial 09 Empty Re: Doubt in tutorial 09

Post  vikthered Wed Jul 08, 2009 8:53 pm

hehe Very Happy

ok..The image is 1024X1024. Ive the used the same image for the other tutorials without a problem. So i dont think theres anything wrong with the image.

Code:

while( j != SIO2_MATERIAL_NCHANNEL )
      {

line 2077    ---->      if(  _SIO2material->tname[ j ][ 0 ] &&
            !_SIO2material->_SIO2image[ j ]->tid )
         {
            sio2ImageGenId( _SIO2material->_SIO2image[ j ],
                        _SIO2material->tflags    [ j ],
                        _SIO2material->tfilter  [ j ] );
         }
         
         ++j;
      }

I set the texture using UV image editor...i'm pretty new to Blender..i hope u got all the info needed Neutral

Thank you Smile

vikthered

Posts : 25
Join date : 2009-06-25

Back to top Go down

Doubt in tutorial 09 Empty Re: Doubt in tutorial 09

Post  vikthered Wed Jul 08, 2009 8:54 pm

i also opened the tutorial09.blend that comes with the SDK.

removed everything except the plane, cylinder, lamp and cam...

changed the texture which was loaded with .ogg with my .jpg.....dint work:(

vikthered

Posts : 25
Join date : 2009-06-25

Back to top Go down

Doubt in tutorial 09 Empty Re: Doubt in tutorial 09

Post  sio2interactive Wed Jul 08, 2009 8:55 pm

Look to me that the image is not on the channel0 of the material... maybe linked in the UV editor but not on the material...

SIO2 is expecting the following onthe Material Texture Channel:

Channel0: Image (png, jpg, tga) -> Pow of 2 in width and height top 1024x1024
Channel1: Image (png, jpg, tga) -> Pow of 2 in width and height top 1024x1024
Channel2: Sound (.OGG)
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Doubt in tutorial 09 Empty Re: Doubt in tutorial 09

Post  vikthered Wed Jul 08, 2009 9:02 pm

i see the same texture in Channel0 under shading--->material--->textures...so i'm pretty sure the texture is linked to the material...never had this problem before Sad

vikthered

Posts : 25
Join date : 2009-06-25

Back to top Go down

Doubt in tutorial 09 Empty Re: Doubt in tutorial 09

Post  vikthered Wed Jul 08, 2009 9:16 pm

if you have time you can try setting a texture on Channel0 for the plane and it shows the same error....

vikthered

Posts : 25
Join date : 2009-06-25

Back to top Go down

Doubt in tutorial 09 Empty Re: Doubt in tutorial 09

Post  sio2interactive Wed Jul 08, 2009 9:28 pm

hehe i doubt send me your .blend
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Doubt in tutorial 09 Empty Re: Doubt in tutorial 09

Post  vikthered Wed Jul 08, 2009 9:34 pm

i sent it to your gmail id Very Happy

vikthered

Posts : 25
Join date : 2009-06-25

Back to top Go down

Doubt in tutorial 09 Empty Re: Doubt in tutorial 09

Post  sio2interactive Wed Jul 08, 2009 10:51 pm

There's nothing wrong with the blend file... The only thing that I can think of is: have you called sio2ResourceBindAllImages before sio2ResourceBindAllMaterials?
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Doubt in tutorial 09 Empty Re: Doubt in tutorial 09

Post  vikthered Wed Jul 08, 2009 10:57 pm

Hey that did the trick....!!!

All this time there was no BindAllImages!!!

i put it after BindAllMaterials and its working!!!...

i dint change the code...i assumed it to be correct Very Happy

Thank you very much....

You, sir, are The Best Very Happy

vikthered

Posts : 25
Join date : 2009-06-25

Back to top Go down

Doubt in tutorial 09 Empty Re: Doubt in tutorial 09

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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