Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Instancing a Plane Object

Author
Message
haliop
User Banned
Posted: 16th Nov 2013 20:14
dosent seem to work..

and does it even matter? since its just a plane object created inside AGK...
will it be faster , slower ... what?

please explain if you can.

thank you.

Zwarteziel
13
Years of Service
User Offline
Joined: 22nd Jan 2011
Location: Netherlands
Posted: 17th Nov 2013 09:50
What exactly is not working? Are you getting an error when you instance a plane or is the object not visible etc? Some code would help.

When you want to create a scene containing a lot of objects that are the same, your program will work faster when you create one 'parent'-objects and instance the rest, instead of creating each and every one from scratch. The reason it is faster, is that the instanced objects use data from the parent object and use less memory etc.

If you instance objects, be sure to let the parent object exist: turn it invisible or move it out of your scene, but don't delete it, since a lot can go wrong if the original data isn't available anymore.
haliop
User Banned
Posted: 17th Nov 2013 10:06
I got it working just asked if for plane objects which are just one quad geometry my app is much faster now but stil just wondering how fast would it be..

Login to post a reply

Server time is: 2024-05-20 10:39:39
Your offset time is: 2024-05-20 10:39:39