clone a billboard?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
WaxyChicken
Posts: 95
Joined: Sat Jun 25, 2011 6:15 am

clone a billboard?

Post by WaxyChicken »

is there anyway to clone a billboard?

I am working on a GUI editor for the game maps.
planting buildings, wagons, etc... works fine.
but when it comes to trees and bushes, how can i clone the billboards?
_______________________________________________________
You could argue with me all day long about which language is best.
But what it comes down to is:
which language is best for YOU and which language is best for ME.
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Re: clone a billboard?

Post by Lonesome Ducky »

There is a method called clone... But really, that's probably not a good idea if you plan on using a lot. It would be best to have a huge batch of vertices, and transforming them on the GPU to make the billboards. Hundreds of times faster that way
WaxyChicken
Posts: 95
Joined: Sat Jun 25, 2011 6:15 am

Re: clone a billboard?

Post by WaxyChicken »

i'm not finding a
DeveloperPlantBillboardNodes[array] -> clone

am i looking in the wrong place?

as far as too many clones, that's not an issue. there is a limit to how many the developer can create before he must save and reload his changes - which pushes them into loaded nodes instead of cloned nodes.
_______________________________________________________
You could argue with me all day long about which language is best.
But what it comes down to is:
which language is best for YOU and which language is best for ME.
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Re: clone a billboard?

Post by Lonesome Ducky »

Ok I take it you aren't using vanilla irrlicht then. I was assuming you were using IBillboardSceneNode. What exactly are you using?
WaxyChicken
Posts: 95
Joined: Sat Jun 25, 2011 6:15 am

Re: clone a billboard?

Post by WaxyChicken »

IBillboardSceneNode
irrlicht 1.7.2 (via Irrlicht Lime)
_______________________________________________________
You could argue with me all day long about which language is best.
But what it comes down to is:
which language is best for YOU and which language is best for ME.
WaxyChicken
Posts: 95
Joined: Sat Jun 25, 2011 6:15 am

Re: clone a billboard?

Post by WaxyChicken »

Ducky, i don't see a ibillboardscenenode->copy in irrlicht

http://irrlicht.sourceforge.net/docu/classirr_1_1scene_1_1_i_billboard_scene_node.html
_______________________________________________________
You could argue with me all day long about which language is best.
But what it comes down to is:
which language is best for YOU and which language is best for ME.
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: clone a billboard?

Post by mongoose7 »

The parent is an ISceneNode. Just keep reading. (Are you looking for 'copy' or 'clone'?)
Virror
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Re: clone a billboard?

Post by Virror »

iBillboardSceneNode inherit from ISceneNode which have a clone method.
WaxyChicken
Posts: 95
Joined: Sat Jun 25, 2011 6:15 am

Re: clone a billboard?

Post by WaxyChicken »

Ah! Gotcha. :)
_______________________________________________________
You could argue with me all day long about which language is best.
But what it comes down to is:
which language is best for YOU and which language is best for ME.
Post Reply