Tutorial 2 and blender export

View previous topic View next topic Go down

Tutorial 2 and blender export

Post  skumancer on Mon Oct 06, 2008 2:52 am

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.

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

View user profile

Back to top Go down

Re: Tutorial 2 and blender export

Post  skumancer on Mon Oct 06, 2008 3:02 am

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

skumancer

Posts : 3
Join date : 2008-10-05

View user profile

Back to top Go down

Re: Tutorial 2 and blender export

Post  sio2interactive on Mon Oct 06, 2008 7:32 am

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...
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: Tutorial 2 and blender export

Post  skumancer on Mon Oct 06, 2008 1:25 pm

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

skumancer

Posts : 3
Join date : 2008-10-05

View user profile

Back to top Go down

Re: Tutorial 2 and blender export

Post  sio2interactive on Mon Oct 06, 2008 4:28 pm

Yup, will do, I will redo them all and include sound...

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: Tutorial 2 and blender export

Post  markb on Fri Oct 10, 2008 9:55 am

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).

markb

Posts : 2
Join date : 2008-10-10

View user profile

Back to top Go down

Re: Tutorial 2 and blender export

Post  sio2interactive on Fri Oct 10, 2008 4:48 pm

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?
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: Tutorial 2 and blender export

Post  markb on Fri Oct 10, 2008 5:11 pm

>> 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.

markb

Posts : 2
Join date : 2008-10-10

View user profile

Back to top Go down

Re: Tutorial 2 and blender export

Post  quailman on Sat Oct 11, 2008 2:10 pm

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.

quailman

Posts : 2
Join date : 2008-10-09

View user profile

Back to top Go down

Re: Tutorial 2 and blender export

Post  sio2interactive on Sat Oct 11, 2008 4:25 pm

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...
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: Tutorial 2 and blender export

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