From: PK <kir...@us...> - 2006-11-27 17:01:43
|
Hey Enrico We were developing an algorithm to create billboard clouds to solve the problem of the high polygon count. The code is still experimental, but it works already quite good. You can try it out by enabling this line in treeview.cpp: #define BBC //BillBoard Cloud Of course there is a snag to it :-) You will need to implement some "render to texture" procedures in order to create fitting leaf textures. It could work like this: 1) Create the tree with full detail leaves. 2) Create the billboard clouds. 3) Render the leaves from multiple views to a texture. You need one image per billboard. 4) Draw the billboard clouds with the r2t texture. I have to admit that I've never done that before and I don't know how smooth it will work. I once tried it out with a predefined texture instead of using r2t. Here are some screenshots of that: http://opentreelib.sourceforge.net/misc/low-poly-teaser01.jpg http://opentreelib.sourceforge.net/misc/low-poly-teaser02.jpg http://opentreelib.sourceforge.net/misc/low-poly-teaser03.jpg http://opentreelib.sourceforge.net/misc/low-poly-teaser04.jpg But with rendered textures it would look a lot better. Please let me know if you have any problems with the library. - PK |