Feature request > 3D

Clone object

(1/3) > >>

MrTAToad:
Would be handy if a 3D object could be cloned, rather than having to (re)load the same object over and over.

kanonet:
Why clone/reload a object? You can load it one time and draw it over and over again, just like sprites.

fuzzy70:
Do you mean "Instancing" type clones?

Lee

Ocean:

--- Quote from: MrTAToad on 2012-Feb-25 ---Would be handy if a 3D object could be cloned, rather than having to (re)load the same object over and over.

--- End quote ---

this is what OpenGL display lists can be used for.  You'd start a list, draw/create your object and then close the list.  The object is in the list (maintained in the graphics card's memory, no further transfer per SHOWSCREEN necessary...) - and from there on you can copy it as often as you like (up to the limit of the graphics card) into your scene.   Display lists are very fast, but have a disadvantage too:  you cannot edit them afterwards, so you'd be using them for objects whose geometry remains static.
If you start to dig into display lists, you'll see that you have the choice of making a texture part of that DL-based object.  Again, if you do, you cannot change it later on, you'd have to re-create the list entirely...

Having said that - why not place normal GLB 3D objects in a scene multiple times?

Ocean

Ocean:
ADDENDUM:

using one of the methods above of course doesn't CLONE an object, it merely gets that single object displayed multiple times...  Silly me...

Ocean

Navigation

[0] Message Index

[#] Next page

Go to full version