Loading Additional Object At Runtime
2 posters
Loading Additional Object At Runtime
Could anyone provide or suggest a snippet that would programmatically 'reload' or 'inject' an object into a rendered scene at runtime...?
I'm attempting to load an additional object once all of my initial objects have been freed and cleared from memory IN-GAME via:
sio2ObjectFree(_cubeObject1);
sio2ObjectFree(_cubeObject2);
sio2ObjectFree(_cubeObject3); ...etc
I would like to reload an instance of (i.e.) _cubeObject2 once object 1 through 10 have all been freed during game play.
Any suggestions would be awesome... Thanks
I'm attempting to load an additional object once all of my initial objects have been freed and cleared from memory IN-GAME via:
sio2ObjectFree(_cubeObject1);
sio2ObjectFree(_cubeObject2);
sio2ObjectFree(_cubeObject3); ...etc
I would like to reload an instance of (i.e.) _cubeObject2 once object 1 through 10 have all been freed during game play.
Any suggestions would be awesome... Thanks
jj- Posts : 77
Join date : 2008-09-24
Re: Loading Additional Object At Runtime
I've tried sio2ObjectDuplicate, with no luck.
It seems like there should be a simple way to 'RE-GRAB' the original object from the resource file and place it back at it's default/original rendering position in the already existing scene...
Am I way off on this?
It seems like there should be a simple way to 'RE-GRAB' the original object from the resource file and place it back at it's default/original rendering position in the already existing scene...
Am I way off on this?
jj- Posts : 77
Join date : 2008-09-24
Re: Loading Additional Object At Runtime
Can't you save the scene assets into an SIO2resource type?
-j
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Similar topics
» Fading an object at runtime
» Storing additional properties
» save runtime
» physics object inside another physics object
» duplicating objects at runtime and changing textures on the duplicated objects
» Storing additional properties
» save runtime
» physics object inside another physics object
» duplicating objects at runtime and changing textures on the duplicated objects
Permissions in this forum:
You cannot reply to topics in this forum