Making a billborad Tree?

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
kaboraa
Posts: 10
Joined: Mon Nov 15, 2004 9:52 am

Making a billborad Tree?

Post by kaboraa »

This looks like a dumb question but how do I make a billborad tree. I think the billborad node cannot be used because I tried it and instead of giving me very opaque areas and transparent areas, the tree had some level of transparency on any pixel. :roll:
deprecated
Posts: 62
Joined: Fri Jan 07, 2005 4:37 pm
Location: California

Post by deprecated »

I dont have any answers...
I would also like to know if this is something that can be done with irrlicht.
A simple solution similar to speedtree would be great.

Anyone have some ideas??

would ya have to attach each billboard to the tree?.. or is there a good easy way to make nice trees?
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

you need to set a certain color to be the transparency color with the makeColorKeyTexture function.
Image
deprecated
Posts: 62
Joined: Fri Jan 07, 2005 4:37 pm
Location: California

Post by deprecated »

Ok, so this is probably not what the thead was started about, but not enough talk on the forums about realistic trees...

etcaptor did some cool stuff, and talks about it a bit...
checkout these posts...
http://irrlicht.sourceforge.net/phpBB2/ ... e&start=15
It talks a bit about how he did it...

Also, I remember reading someone else on the forum had made a really nice example of multiple trees with leaves and such.. almost at the level of speedtree in visual look. Cant find the thread... It had screenshots of birch trees or something like that.. I think it was talking about using diff. LOD levels and such all the way down to single billboards when you are farthest away. Anyone remember that thead or implement something similar??

I dont want speedtree, with wind and all that, what I am after is leaves and such..

I dont know about everyone else, but being able to put up some nice trees (and many of them) would be a benefit.. I am sure its possible, just hard for beginners and intermedate users...
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

You can see part of this issue also here:

http://irrlicht.sourceforge.net/phpBB2/ ... =tga#28613

Yeah, I'm still not made some tree generator :cry:
Now .X exporting animation eat my time, but after that and some AI solution I'll return to trees creation.
kaboraa
Posts: 10
Joined: Mon Nov 15, 2004 9:52 am

Post by kaboraa »

Thanks guys

I didn't actually know that you could make a particular color transparent. I am yet to implement this idea but I am sure it would work. I am not sure if I have seen this function in the Irrilicht documentation i.e makeColorKeyTexture :lol:
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

It's a function of the IVideoDriver class, to help ya find the doc's on it.
Image
Post Reply