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.

Error when loading .SIO2 (texture.)

5 posters

Go down

Error when loading .SIO2 (texture.) Empty Error when loading .SIO2 (texture.)

Post  iblues Wed Oct 22, 2008 1:24 pm

Hi,
The code is breaking at the following line of code :
if( _SIO2material->tname[ j ][ 0 ] &&
!_SIO2material->_SIO2image[ j ]->tid )
of file sio2_resource.cc file (line 1535)

The tname that is pointing to is the correct file and is inside of the .sio2 file.

I'm not so sure about _SIO2image[j] comes from ... what could be the error? what could I do to troubleshoot this?

Thanks,
Francisco

iblues

Posts : 15
Join date : 2008-10-21

Back to top Go down

Error when loading .SIO2 (texture.) Empty Error when loading .SIO2 (texture.)

Post  iblues Wed Oct 22, 2008 1:41 pm

Hi,

I would like to make a note. I was able to load the model without texture. I did a new import by deleting all the textures and it works fine. So, for sure, it's something wrong with one (or all) of the textures.

if there still any tips, they are all welcome !

Thank you so much!

iblues

Posts : 15
Join date : 2008-10-21

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  sio2interactive Wed Oct 22, 2008 5:39 pm

Did you properly call sio2ResourceBindAllTextures? check the tutorial04 structure and make sure that you are using the exact same sequence, in addition, make sure you are RAW TGA, RLE TGA or JPEG as your texture format, and no TGA palette...

also maybe try to remove the .sio2 & scene directory created on your output path, I am not deleting the output scene folder anymore in that version of the exporter so you need to make sure that there's no "ghost" resources in scene folder and compressed inside the .SIO2...

Check the sticky in the SIO2 Engine thread....
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Error when loading .SIO2 (texture.) Empty Error when loading .SIO2 (texture.)

Post  iblues Thu Oct 23, 2008 11:21 am

Hi,
Thank you for your help.
What I was doing was loading my IFace.sio2 on tutorial2 and Tutorial4. When I do it without the textures, it works fine.
Now, I did look into what you told me. I will look into the sio2ResourceBindAllTextures but I did a search in the project and I couldn't find it. But I probably missed it.

Anyways, I have upload it into http://www.iblues.cc/download/other the two files. The blend file and the sio2 file.

I'm still getting that error. I get it on the jpg which is on the file.

This is what I did.

I exported the file. I added to the resources. I change the call where it loads the file and the name of the object as well.

I will keep looking into it, but if you have any other tips, please let me know.

Thanks,
Francisco

iblues

Posts : 15
Join date : 2008-10-21

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  sio2interactive Thu Oct 23, 2008 4:50 pm

Ok I check your file, sorry my mistake there's not sio2ResourceBindAllTextures its BindImages, that's what happen when you are working on 2 engine at the same time, you start mixing names Wink

Anyway the problem is the name of your texture its too long, to fix the problem change the SIO2_MAX_CHAR value for whatever you want higher than the current value... I personally change it to 64 and your scene work perfectly.

Cheers,
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  iblues Tue Nov 18, 2008 4:29 pm

Hi,
It's been a while but I'm still having a problem with the texture. So, I followed your suggestion and looked at the Video 2 and Video 3a & 3b.

I even deleted the vertex color, but it still doesn't show anything. When I rendered in blend, I see it correctly.

I have loaded two files. One with the vertex color and the other one without it. I don't think that is the problem .

If you could, when you have some time, could you look into it, to give me a suggestions.

I have loaded the files at :

http://www.iblues.cc/iso2sdk/

Thanks,
Francisco

iblues

Posts : 15
Join date : 2008-10-21

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  meteors Tue Nov 18, 2008 5:11 pm

Did you make sure the pixmap is a power of two?



-j
meteors
meteors

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

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  iblues Tue Nov 18, 2008 5:29 pm

Yes,
For what I can tell , they are all power of 2. (The textures.)

iblues

Posts : 15
Join date : 2008-10-21

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  sio2interactive Wed Nov 19, 2008 12:24 am

Ok I take a quick check at your model:

1. You are using all quads, SIO2 only support triangles... (the export should triangulate them anyway but...)

2. You are using 7 materials on the objects, but there's no vertex group assigned... 1 material per vertex group... check out my youtube channel for a demo on how to create/assign vertex group with material

3. You geometry is like 12k of polygons, I would take ALONG time to export and will poorly perform on the device... its way too heavy...

Cheers,
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  iblues Wed Nov 19, 2008 6:57 am

Hi,

Thank you for your reply. It does help quite a lot.

About 1, the figure is coming from this software called FaceGen, so I would have to check to see if they can export to triangular shapes, but for what I can gather from your reply, the export will take care of it.

About 2, Which Video number? 4? Are you referring to the vertex color? Because in one of the figures I had them.

About 3, I can export a low resolution object, so that should take care of that.

Thanks,
Francisco

iblues

Posts : 15
Join date : 2008-10-21

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  matt Wed Nov 19, 2008 1:58 pm

iblues wrote:About 1, the figure is coming from this software called FaceGen, so I would have to check to see if they can export to triangular shapes, but for what I can gather from your reply, the export will take care of it.
You can use Blender to triangulate the mesh. Goto to Edit mode (tab) and press Ctrl-T.

iblues wrote:About 3, I can export a low resolution object, so that should take care of that.
Blender can also reduce the number of polygons (can't tell from memory, google for it), but the original software is probably better for that purpose.

Best,
Matt

matt

Posts : 155
Join date : 2008-09-30

http://elfrun.net

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  sio2interactive Wed Nov 19, 2008 4:49 pm

The script is called "Polygon Reducer" and its available in the Edit -> Script menu when you are in blender's edit mode... works pretty well too...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Error when loading .SIO2 (texture.) Empty same problem

Post  ginikettu Mon Feb 23, 2009 4:51 pm

I had same problem. Because of some weird reason blender is damn slow (every button takes 5-20secs) on my mac i was using windows laptop for blender. All exported output files seemed to be okay and all images were loaded ok on sio2. When i finally did export my scene in macs blender it worked. I cant figure out the reason, maybe i will try to solve that mac-blender performance problem.

ginikettu

Posts : 3
Join date : 2009-02-23

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  sio2interactive Mon Feb 23, 2009 5:37 pm

So what is the problem exactly? the performance when exporting objects? or to pack the .sio2 file? cuz generating a .sio2 on M$ platform will not work, cuz the necessary command lines to do so are not available on M$-DOS...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  ginikettu Tue Feb 24, 2009 3:22 am

If you refer to rm and zip commands... otherwise the exporting was fine - all files were generated and seemed same as originals... So I did packaging manually and thought that it worked normally when debugging showed that images were loaded normally and material file seemed to be loaded normally (the struct had name of image and other information from material file).

One difference between those files (exported in mac or windows) was with new line characters.

But off topic: the performance problem with blender and my mac mini is quite severe - it is unusable.

ginikettu

Posts : 3
Join date : 2009-02-23

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  sio2interactive Tue Feb 24, 2009 3:51 am

Try to comment the VBO optimization part in the exporter and simply export all the indices without optimization...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  sio2interactive Tue Feb 24, 2009 10:40 pm

Can you share with use some time vs triangles?
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  ginikettu Wed Feb 25, 2009 6:01 pm

sio2interactive wrote:Can you share with use some time vs triangles?

About 3k faces and exporting about 20 secs.

Sorry that I wasnt quite clear at first: that exporting time is meaningless.. only Blender is what for some reason has some problems with my mac mini - click any button or open any menu or select an object will take about 3-5 secs.

ginikettu

Posts : 3
Join date : 2009-02-23

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

Post  sio2interactive Wed Feb 25, 2009 6:21 pm

are you running it in software? are you sure that the latest drivers are installed?
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Error when loading .SIO2 (texture.) Empty Re: Error when loading .SIO2 (texture.)

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