Error when loading .SIO2 (texture.)
5 posters
Error when loading .SIO2 (texture.)
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
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
Error when loading .SIO2 (texture.)
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!
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
Re: Error when loading .SIO2 (texture.)
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....
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....
Error when loading .SIO2 (texture.)
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
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
Re: Error when loading .SIO2 (texture.)
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
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,
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,
Re: Error when loading .SIO2 (texture.)
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
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
Re: Error when loading .SIO2 (texture.)
Did you make sure the pixmap is a power of two?
-j
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: Error when loading .SIO2 (texture.)
Yes,
For what I can tell , they are all power of 2. (The textures.)
For what I can tell , they are all power of 2. (The textures.)
iblues- Posts : 15
Join date : 2008-10-21
Re: Error when loading .SIO2 (texture.)
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,
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,
Re: Error when loading .SIO2 (texture.)
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
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
Re: Error when loading .SIO2 (texture.)
You can use Blender to triangulate the mesh. Goto to Edit mode (tab) and press Ctrl-T.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.
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.iblues wrote:About 3, I can export a low resolution object, so that should take care of that.
Best,
Matt
Re: Error when loading .SIO2 (texture.)
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...
same problem
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
Re: Error when loading .SIO2 (texture.)
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...
Re: Error when loading .SIO2 (texture.)
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.
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
Re: Error when loading .SIO2 (texture.)
Try to comment the VBO optimization part in the exporter and simply export all the indices without optimization...
Re: Error when loading .SIO2 (texture.)
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
Re: Error when loading .SIO2 (texture.)
are you running it in software? are you sure that the latest drivers are installed?
Similar topics
» Error after applying texture
» SIO2 Engine Loading wrong textures
» SIO2 Export & Loading WOES - Any Help Appreciated!
» SIO2 Texture Name Path
» SIO2 Exporter v0.1.2 export error on Mac OS X 10.5
» SIO2 Engine Loading wrong textures
» SIO2 Export & Loading WOES - Any Help Appreciated!
» SIO2 Texture Name Path
» SIO2 Exporter v0.1.2 export error on Mac OS X 10.5
Permissions in this forum:
You cannot reply to topics in this forum