TreeGen free Tree library

Community Forums/Showcase/TreeGen free Tree library

Jeppe Nielsen(Posted 2005) [#1]
I have just finished a single surface tree library for blitz3d. And I am giving it away for free :-)

The library includes an editor to ease the tree creation process. It also has a few blitz source examples to see how easy it is to use this system. Basically it is this easy, when you have created a tree template in the editor:
Include "TreeGen_include.bb"

Graphics3D 800,600

MoveEntity CreateCamera(),0,0,-15

template = TreeTemplateLoad( "LargeOak.tree" )

TreeClusterNew( template , 0 , 0 , 0 )

TreeNew( template , 0 , 0 , 0 )

Repeat
RenderWorld
Flip
Until Keydown(1)

As you can see we will both need a template and a cluster before we create a tree using the TreeNew command. A template is a collection of infomation to tell the system what the trees should look like. These templates can both be created in the provided editor or in code. Clusters are basically meshes, each with a collection of trees, thus each cluster is a single surface. The system can also create mesh shadows for the trees.

Anyway, some screenshots (click to enlarge):


Download link:
Download TreeGen 2.26mb

Hope you like the library :-)


Hujiklo(Posted 2005) [#2]
You are too kind - this looks great!!! I don't need it but big thanks anyway.


BlitzSupport(Posted 2005) [#3]
Wow, that's fantastic. Very generous, thanks, Jeppe.


John Blackledge(Posted 2005) [#4]
Many thanks - very useful.


Naughty Alien(Posted 2005) [#5]
Jeppe, after excellent AplhaGUI, you giving such a nice tool again..thanks man...


Bremer(Posted 2005) [#6]
Nice, thanks for sharing.


Jeppe Nielsen(Posted 2005) [#7]
Thanks for your nice comments, btw the editor also exports to blitz3d .b3d, Directx .x and Wavefront .obj formats so you can use the trees in other engines aswell.


Grisu(Posted 2005) [#8]
Looks cool, thanks for sharing!

Btw: Does it create X-Mas trees too?!? XD


Dragon57(Posted 2005) [#9]
Excellent! Thanks.


semar(Posted 2005) [#10]
Thank you Jeppe, very handy tool, and very generous from you !

Sergio.


Jams(Posted 2005) [#11]
"The system can also create mesh shadows for the trees."

"btw the editor also exports to blitz3d .b3d, Directx .x and Wavefront .obj formats"




Does it also export the mesh shadows?? If so - i love you!


Jeppe Nielsen(Posted 2005) [#12]
I'm afraid not :-)


Happy Sammy(Posted 2005) [#13]
Hi Jeppe Nielsen,

After I double-click the desktop icon, it reports MAV. Why? Are there any settings before running ?

My pc configuration: AMD xp 2200, Windows XP sp2, Geforce FX-5200 128MB, 512MB RAM

Sammy
:)


Jeppe Nielsen(Posted 2005) [#14]
Hmm, sounds strange, what if you double click on the exe file instead?


Happy Sammy(Posted 2005) [#15]
Hi Jeppe Nielsen,

I tried your method to double-click exe directly. Still the same result. Any ideas? (I am using 1024x768 depth 32-bit)

I could see the logo with white background and then follow by "memory access violation". Then, it exits.

Sammy
:)


Ricky Smith(Posted 2005) [#16]
Thanks very much Jeppe that's a great Christmas present !


poopla(Posted 2005) [#17]
Very nice tool, but it seems to run pretty slow here... feels like about 10FPS or so.


Pinete(Posted 2005) [#18]
Impressive!
You are very kind! Thanks for sharing Jeppe!
Your tools are amazing and completely useful for all of us!
They are a great help for development!
Regards!


Happy Sammy(Posted 2005) [#19]
Hi Jeppe Nielsen,

Could you tell me if your program is packed with blitzsys.dll? If so, what version is it?

Thanks in advance.
Sammy
:)


Jeppe Nielsen(Posted 2005) [#20]
It does not use blitzsys.dll. By the way can you run the examples?


Happy Sammy(Posted 2005) [#21]
I am sorry, I can't run.
I run all examples.
All reports runtime error "Texture does not exist"
In the debug mode, it stops in "treegen_include.bb"
and highlight this line of code:
width = textureWidth(tt\texture)


(I already copied Treegen.decls to userlibs folder)
Sammy
:)