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.

Loading Additional Object At Runtime

Go down

Loading Additional Object At Runtime Empty Loading Additional Object At Runtime

Post  jj Wed Jan 07, 2009 10:55 am

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

jj

Posts : 77
Join date : 2008-09-24

Back to top Go down

Loading Additional Object At Runtime Empty Re: Loading Additional Object At Runtime

Post  jj Thu Jan 08, 2009 11:52 am

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?

jj

Posts : 77
Join date : 2008-09-24

Back to top Go down

Loading Additional Object At Runtime Empty Re: Loading Additional Object At Runtime

Post  meteors Thu Jan 08, 2009 12:55 pm

Can't you save the scene assets into an SIO2resource type?


-j
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

Loading Additional Object At Runtime Empty Re: Loading Additional Object At Runtime

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum