Loading Additional Object At Runtime

View previous topic View next topic Go down

Loading Additional Object At Runtime

Post  jj on 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

View user profile

Back to top Go down

Re: Loading Additional Object At Runtime

Post  jj on 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

View user profile

Back to top Go down

Re: Loading Additional Object At Runtime

Post  meteors on Thu Jan 08, 2009 12:55 pm

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


-j
avatar
meteors

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

View user profile

Back to top Go down

Re: Loading Additional Object At Runtime

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