Limitation in the number of objects?
4 posters
Limitation in the number of objects?
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?
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
Re: Limitation in the number of objects?
Verify that the pivot points of all object is centered in order for the culling method to work properly...
Re: Limitation in the number of objects?
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?
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
Re: Limitation in the number of objects?
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
Re: Limitation in the number of objects?
Add this to your loading code:
sio2ResourceBindAllInstances( sio2->_SIO2resource );
This is for 1.3.2 so it may have changed
sio2ResourceBindAllInstances( sio2->_SIO2resource );
This is for 1.3.2 so it may have changed
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: Limitation in the number of objects?
Please review the video tutorial06 and review the source code...
Similar topics
» number of moving physics objects
» trouble seeing objects
» Skybox (and please get rid of this 10 chars min limitation for topics! ;-))
» Objects Falling Through
» Parenting Objects
» trouble seeing objects
» Skybox (and please get rid of this 10 chars min limitation for topics! ;-))
» Objects Falling Through
» Parenting Objects
Permissions in this forum:
You cannot reply to topics in this forum