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.

Limitation in the number of objects?

4 posters

Go down

Limitation in the number of objects? Empty Limitation in the number of objects?

Post  kouky Mon Mar 30, 2009 4:18 pm

When I export a scene containing about 10 objects, even if they all appear in the sio2 archive "object"folder, only a few of them are displayed in by the iPhone simulator.

Is there a maximum of objects you can use with the 3D engine?

Should I always merge all meshes into one single object before exporting?

kouky

Posts : 3
Join date : 2009-03-28

Back to top Go down

Limitation in the number of objects? Empty Re: Limitation in the number of objects?

Post  sio2interactive Mon Mar 30, 2009 4:50 pm

Verify that the pivot points of all object is centered in order for the culling method to work properly...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Limitation in the number of objects? Empty Re: Limitation in the number of objects?

Post  kouky Mon Mar 30, 2009 5:11 pm

No it doesn't seem that was the issue.
But I may have found what is the problem:

When you duplicate an object in blender, for example "Plane", the duplicated object default name is "Plane.001"
I my case, sio2 doesn't render it.
But if I rename "Plane.001" to "Plane2", then it's fine.

It seems that sio2 doesn't like objects names including a dot.
Maybe when objects are parsed by sio2, what's behind a dot is ignored, as if it was a file extension, and so you end up with 2 objects called "Plane"...
Does it make sense?

kouky

Posts : 3
Join date : 2009-03-28

Back to top Go down

Limitation in the number of objects? Empty Re: Limitation in the number of objects?

Post  Francescu Mon Mar 30, 2009 5:38 pm

You should look at tutorial06 - there are a lot of objects and most of them are duplicates (with names of convention such objInstanceName.00x) and sio2 has no problem loading them. I have some myself following this naming convention and they always get rendered...I did make sure pivots were centered as well doing Ctrl-A in blender for visual transform and scale/rotation....

Francescu

Posts : 136
Join date : 2009-03-18

Back to top Go down

Limitation in the number of objects? Empty Re: Limitation in the number of objects?

Post  oioioi Tue Mar 31, 2009 5:15 am

Add this to your loading code:
sio2ResourceBindAllInstances( sio2->_SIO2resource );
This is for 1.3.2 so it may have changed

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

Back to top Go down

Limitation in the number of objects? Empty Re: Limitation in the number of objects?

Post  sio2interactive Tue Mar 31, 2009 8:12 am

Please review the video tutorial06 and review the source code...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Limitation in the number of objects? Empty Re: Limitation in the number of objects?

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