Tutorial 2 and blender export
4 posters
Tutorial 2 and blender export
Hello,
First of all, great work! The engine is in great shape and I'm having fun with it!
Second, I wanted to know if there are any special steps I have to take for a model to work in tutorial 2. I made the monkey mesh, painted it (a little different than the one in the tutorial video) and then exported it. After exporting, I changed the code in tutorial two to this so it matches my file's name.
It should work, but I get nothing on the screen.
When I use the tutorial02.sio2 mesh, it works and displays the monkey mesh.
Any help would be greatly appreciated.
Thanks a lot for the great engine!
- Ricardo
First of all, great work! The engine is in great shape and I'm having fun with it!
Second, I wanted to know if there are any special steps I have to take for a model to work in tutorial 2. I made the monkey mesh, painted it (a little different than the one in the tutorial video) and then exported it. After exporting, I changed the code in tutorial two to this so it matches my file's name.
- Code:
sio2ResourceOpen( sio2->_SIO2resource, "Monkey.sio2", 1 );
It should work, but I get nothing on the screen.
When I use the tutorial02.sio2 mesh, it works and displays the monkey mesh.
Any help would be greatly appreciated.
Thanks a lot for the great engine!
- Ricardo
skumancer- Posts : 3
Join date : 2008-10-05
Re: Tutorial 2 and blender export
Stepping through the code, I realize that the "SIO2Camera" and "SIO2Object" members of sio2 struct are empty when I load my own Monkey.sio2, but they have data when I load tutorial2.sio2.
Is there any reason why this would happen? Am I not setting something correctly in blender perhaps?
Thanks,
- Ricardo
Is there any reason why this would happen? Am I not setting something correctly in blender perhaps?
Thanks,
- Ricardo
skumancer- Posts : 3
Join date : 2008-10-05
Re: Tutorial 2 and blender export
The only reason that I can think of that the .sio2 is loading but the structs are empty is because the objects have not been selected in blender... make sure you press "a" in object mode to select everything before exporting. Also you can rename your file to .zip and extract just to make sure that there's content in /object /camera etc...
Re: Tutorial 2 and blender export
Excellent, that solved it!
Is there any way you could narrate the tutorial videos or provide some text detailing what you are doing? I was a lost for about an hour trying to find out what to do exactly!
Thanks a lot, awesome stuff!
- Ricardo
Is there any way you could narrate the tutorial videos or provide some text detailing what you are doing? I was a lost for about an hour trying to find out what to do exactly!
Thanks a lot, awesome stuff!
- Ricardo
skumancer- Posts : 3
Join date : 2008-10-05
Re: Tutorial 2 and blender export
I ran into the same problem and have not been able to get around it. I have made sure that I have everything selected and am in object mode, but the only things that get written to the SiO2 file are the camera and the lights. I even changed the names of the objects and camera and it picks that up for the camera but the objects are still no shows. I noticed that you are using sio2 1.2 in the tutorial, and the only version i have seen for download is 1.1. Could this be a source of the problem?
Went through the script and identified the "error" Turns out the mesh objects were by default set to be in Layer 4. The script only adds objects to the file if they are selected AND in the current layer (no matter how many layers are visible).
Went through the script and identified the "error" Turns out the mesh objects were by default set to be in Layer 4. The script only adds objects to the file if they are selected AND in the current layer (no matter how many layers are visible).
markb- Posts : 2
Join date : 2008-10-10
Re: Tutorial 2 and blender export
I noticed that you are using sio2 1.2 in the tutorial, and the only version i have seen for download is 1.1. Could this be a source of the problem?
>> No not at all
Went through the script and identified the "error" Turns out the mesh objects were by default set to be in Layer 4. The script only adds objects to the file if they are selected AND in the current layer (no matter how many layers are visible).
>> True I admit that its maybe not clear enough or well explained... can you think of a better way of doing this?
>> No not at all
Went through the script and identified the "error" Turns out the mesh objects were by default set to be in Layer 4. The script only adds objects to the file if they are selected AND in the current layer (no matter how many layers are visible).
>> True I admit that its maybe not clear enough or well explained... can you think of a better way of doing this?
Re: Tutorial 2 and blender export
>> True I admit that its maybe not clear enough or well explained... can you think of a better way of doing this?
No, selection and layer based inclusion make sense and are probably a good design, I am just not a blender expert, and it didnt occur to me that the objects were in a different layer as everything was visible and I was using the default scene initially. I wouldnt have guess that the default scene would have put things in a different layer. Now that I know that is how it works, it could even be useful.
Thanks.
No, selection and layer based inclusion make sense and are probably a good design, I am just not a blender expert, and it didnt occur to me that the objects were in a different layer as everything was visible and I was using the default scene initially. I wouldnt have guess that the default scene would have put things in a different layer. Now that I know that is how it works, it could even be useful.
Thanks.
markb- Posts : 2
Join date : 2008-10-10
Re: Tutorial 2 and blender export
I'm having similar problems. The tutorial files work just fine, but when I try my own suzanne scene as in tutorial 2, nothing is visible. I changed the .sio2 to .zip and looked, there are files where there should be.
I'm banging my head on the wall trying to think of what could be wrong.
I'm familiar with blender but pretty new to xcode. Any help is greatly appreciated.
I'm banging my head on the wall trying to think of what could be wrong.
I'm familiar with blender but pretty new to xcode. Any help is greatly appreciated.
quailman- Posts : 2
Join date : 2008-10-09
Re: Tutorial 2 and blender export
Have you check the new tutorials (2,3,4) online? I had sound maybe the explanations can give you help... 6 and 8 are also on the way as well as others...
Similar topics
» Bad export from Blender?
» SIO2 Exporter v0.1.2 export error on Mac OS X 10.5
» Trouble with Export from Blender
» Export Blender Empty Mesh
» Blender Export Python error
» SIO2 Exporter v0.1.2 export error on Mac OS X 10.5
» Trouble with Export from Blender
» Export Blender Empty Mesh
» Blender Export Python error
Permissions in this forum:
You cannot reply to topics in this forum