3DGSTree

Posted By: Slin

3DGSTree - 05/03/07 05:02

I wanted to realize this about 1 year ago but had so much else to do.
But after seeing Damocles Trees, a few days (or already weeks?) ago, I decided to create my own script for generating trees. I started this Project about three days ago and Iīd like to show you what Iīve got up to now.

Itīs far away from beeing finished and not realy usable for real projects, because it muuuuuch to slow. But itīs fun to play around with it.

Iīve got actualy a problem with this, so if you may have a look at it: Link


The trees are generated at the gamestart
depending on the Values set in the modelbehaviors of the trunk:



Here is a picture of some generated trees:




And here is a video I uploaded to YouTube:
http://www.youtube.com/watch?v=TlPcVK0zD_Q

The only features are actually:
-random generated trees (from trunk and branch models and a leave sprite)
-wind animation

What Iīll maybe add is a parallex or normalmapping shader or both for the trunk,
meshdeforming and LOD.


C&C wanted, but please donīt forget that Iīm not an artist

Slin
Posted By: bstudio

Re: 3DGSTree - 05/03/07 09:00

hmmm, i don't really see a difference between the trunks. But nice project though, but there is a lot to polish if it where to be usable
Posted By: frazzle

Re: 3DGSTree - 05/03/07 18:28

This is indeed a great start Slin, this is looking quite promising !!
But for not being an artist, this still looks good
Keep on improving this and especially the LOD factor but I wouldn't see the advantage of adding a shader to all of this. It will look indeed better in detail in a "relativly illusionist way" if you add those shaders but the framerate will decrease due to the faqt that this is a generator used to generate alot of things, which here could be like 100++ trees.
Just my point of view, in overal I can't wait to see this finished

Cheers

Frazzle
Posted By: Slin

Re: 3DGSTree - 05/06/07 18:20

Thanks for your comments.
I added LOD and uploaded a new video showing it in action.
http://www.youtube.com/watch?v=CVD6lhFPcuM

These are 50 trees, running with about 80fps.
Itīs possible to change the distances for the different LOD stages and the refreshrate (every 20 frames in this video which was slown down by fraps to 25fps).


PS: Happy birthday frazzle
Posted By: frazzle

Re: 3DGSTree - 05/06/07 18:29

Looking nice and thxn for the BD card

Cheers

Frazzle
Posted By: lostclimate

Re: 3DGSTree - 05/06/07 18:35

it is coming along, but you may want to figure out something to get rid of the "popping" of the leaves onto the screen
Posted By: Slin

Re: 3DGSTree - 06/11/08 17:17

I decided to rewrite this in Lite-C and this is what Iīve got so far, but there is still a lot of space to make things better (not only the texturing :P).
It is just the generation at the moment:


Posted By: Quad

Re: 3DGSTree - 06/11/08 18:43

didnt saw that before. Nice work so far.
Posted By: JimFox

Re: 3DGSTree - 06/12/08 15:10

Hi Slin,

This does show promise. Looks like a prarie.

If you can get this kind of look with a good frame rate, you are onto something, for sure.
Best regards,
Posted By: Slin

Re: 3DGSTree - 06/12/08 19:21

Thank you two for your nice comments smile
Here is a new screenshot:


I am just reading an article with which I hope to implement some nice lighting for the leaves smile
Posted By: JimFox

Re: 3DGSTree - 06/13/08 18:08

The framerate looks good on the screenshot.
How many grass sprites are you using?

You might looks at Loopix's site for ideas on lighting.

Keep going. This is interesting.

Jim
Posted By: Slin

Re: 3DGSTree - 06/13/08 18:22

I am using about 60 models with about 1800 faces each for the grass. I am not very happy with the fps, but I donīt know a faster way for the grass and it could be worse wink
Loopix website doesnīt really help me with good lighting, only with the very nice ground texture :P. I had an idea on how to make the leaves seem to have some more volume but I failed at it until now... I now think about implementing some simple normalmapping.
Posted By: Slin

Re: 3DGSTree - 06/14/08 10:19

Normalmapping doesnīt work very well if the normalmap is not done with a lot of care, thus I dropped it.

You can download the compiled version and the code here:
http://files.filefront.com/Trees+V10/;10654914;/fileinfo.html

This was just a quick try for the 100 lines contest, because I had no better idea on what to do for it.
It is far not perfect, so feel free to improve things and I hope that you like it a bit smile


Posted By: PadMalcom

Re: 3DGSTree - 06/15/08 08:52

Its getting better wink At least the grass looks quite realistic!
Posted By: Shadow969

Re: 3DGSTree - 06/15/08 20:52

yep, grass is awesome, only realtime grass shadows are missing laugh
Posted By: Slin

Re: 3DGSTree - 06/15/08 21:31

Thanks smile
realtime grassshadows arenīt really a problem, but the problem is to have them with a good speed and in 10kb and 100 ; s wink
© 2024 lite-C Forums