Toaster
Community Member

Posts: 378
|
 |
« on: July 15, 2009, 11:28:12 AM » |
|
Tree Gen v1.0 has been released to the public and its completely free! Check it out at: http://treegen.pipedreamgames.comScreenshots:  Features: -Seed based tree generation! -View your trees in a lush environment filled with beautiful grass and real time shadows! -Save your trees to a standard .tree format. Which you can pass around to your friends/co-workers! -Export you're trees as either .x or .tvm! -Virtually no limits! Create hundreds of different tree designs in a matter of minutes! Sign up on the forums and post any bugs or feature ideas you have! Thanks, -Toaster
|
|
|
|
« Last Edit: July 15, 2009, 07:53:42 PM by Toaster »
|
Logged
|
|
|
|
Mietze
Community Member

Posts: 415
Pleeease, don't let it crash!
|
 |
« Reply #1 on: July 15, 2009, 01:20:38 PM » |
|
Awesome stuff! I think many ppl can use it! You've got some nice shadows in there  As from what I can see from the shadow artefacts, this shadowing stuff reminds me on something  First small bug: The default file name of the open file dialog is "openFileDialog1". You may want to blank this out  Another hint: To fix this "eye catching" seam:  You can use my clamped ESM code I presented here: http://www.truevision3d.com/forums/showcase/source_library_sample_parallel_split_shadow_mapping_that_you_can_reuse-t18798.0.html;msg129548#msg129548#define ESM_K 50.0f // Range [0, 80] #define ESM_MIN -0.5f // Range [0, -oo] #define ESM_DIFFUSE_SCALE 1.79f // Range [1, 10]
// Exponential Shadow Mapping inline float ESM_GetShadow( in sampler2D depthMap, in const int splitIndex, in const float2 uv, in const float receiver) { float occluder = tex2D(depthMap, uv)[splitIndex]; float shadow = saturate(exp(max(ESM_MIN, ESM_K * (occluder - receiver)))); return 1.0f - (ESM_DIFFUSE_SCALE * (1.0f - shadow)) ; }
If you do not want to scale your shadow among a certain factor, simply return "shadow" instead of "1.0f - (ESM_DIFFUSE_SCALE * (1.0f - shadow))".
|
|
|
|
« Last Edit: July 15, 2009, 01:29:36 PM by Mietze »
|
Logged
|
|
|
|
Toaster
Community Member

Posts: 378
|
 |
« Reply #2 on: July 15, 2009, 01:28:49 PM » |
|
Thanks for the compliments and I'll fix that bug soon. And the shadows are all thanks to your PSSM example and all your help getting it looking nicer.  I could probably tweak them more to get rid of some of the artifacts. -Toaster
|
|
|
|
|
Logged
|
|
|
|
Mietze
Community Member

Posts: 415
Pleeease, don't let it crash!
|
 |
« Reply #3 on: July 15, 2009, 01:32:27 PM » |
|
Have you been able to fix the projection code? I have found out that it becomes unstable with light directions where one component is 1 and the others 0, like [0, -1, 0]. This is where the dot product screws up. A crappy solution would be to clamp it to |0.999999| or something.
|
|
|
|
|
Logged
|
|
|
|
Toaster
Community Member

Posts: 378
|
 |
« Reply #4 on: July 15, 2009, 01:39:44 PM » |
|
hmm I don't think my light direction ever reaches a 0, -1, 0 stage. Its all calculated via zak's sky shader and it always spits back directions that are like: .9255235325, .3251326, -.235235235 well you get the idea. 
|
|
|
|
|
Logged
|
|
|
|
|
Brac
|
 |
« Reply #5 on: July 15, 2009, 03:26:58 PM » |
|
I cant seem to download the file successfully. Tried 5 times and it always ends up damaged (and a different filesize).
Something wrong with your host?
|
|
|
|
|
Logged
|
|
|
|
Toaster
Community Member

Posts: 378
|
 |
« Reply #6 on: July 15, 2009, 03:45:40 PM » |
|
Yeah there appears to be a problem with my host either that or my download script. You can download it here at: http://treegen.pipedreamgames.com/downloads.phpEdit: I noticed a bug in my php download script it should be fixed now. I hope this helps! -Toaster
|
|
|
|
« Last Edit: July 15, 2009, 07:23:42 PM by Toaster »
|
Logged
|
|
|
|
Lenn
Customers
Community Member
    
Posts: 876
+/-
|
 |
« Reply #7 on: July 16, 2009, 02:11:21 AM » |
|
Well, that worked out nicely! Great stuff. 
|
|
|
|
|
Logged
|
|
|
|
Raul
Customers
Community Member
    
Posts: 550
I like games.
|
 |
« Reply #8 on: July 16, 2009, 02:43:47 AM » |
|
Thank you for this amazing tool.
|
|
|
|
|
Logged
|
|
|
|
|
zwiglm
|
 |
« Reply #9 on: July 16, 2009, 05:09:48 AM » |
|
Wow. Thx for the cool work.
A few days ago, I was thinking about asking "West", what happenend to his Tree Generator.
Cheers, Martin
|
|
|
|
|
Logged
|
Cheers, Martin
|
|
|
|
zwiglm
|
 |
« Reply #10 on: July 16, 2009, 05:11:10 AM » |
|
Erm. BTW... any chances for the source?
*greedy smile*
Cheers, Martin
|
|
|
|
|
Logged
|
Cheers, Martin
|
|
|
Toaster
Community Member

Posts: 378
|
 |
« Reply #11 on: July 16, 2009, 09:15:25 AM » |
|
Sorry there will be no source.  Eventually I plan on releasing a .dll you use. It will either spit back a TVMesh and TVMiniMesh or the vertices. It will also support LOD and other such things. -Toaster
|
|
|
|
|
Logged
|
|
|
|
WEst
Customers
Community Member
    
Posts: 945
Daniel Martinek
|
 |
« Reply #12 on: July 16, 2009, 01:08:08 PM » |
|
I think the next weeks will be a great time for all botanists in the forum  Good work Toaster.
|
|
|
|
|
Logged
|
Greetings
Daniel Martinek Technical Director 23 Volts
|
|
|
Toaster
Community Member

Posts: 378
|
 |
« Reply #13 on: July 16, 2009, 03:05:58 PM » |
|
Thanks WEst! Thanks for all your help with the trunk generation too  Once I get around to making an about box your name will be in the credits for sure! 
|
|
|
|
|
Logged
|
|
|
|
|
zwiglm
|
 |
« Reply #14 on: July 16, 2009, 04:43:10 PM » |
|
Sorry there will be no source.  Eventually I plan on releasing a .dll you use. It will either spit back a TVMesh and TVMiniMesh or the vertices. It will also support LOD and other such things. -Toaster Woah. That would be great. ...and very generous.
|
|
|
|
|
Logged
|
Cheers, Martin
|
|
|
|
Shargot
|
 |
« Reply #15 on: July 16, 2009, 07:08:14 PM » |
|
great work. but why your trees (export to tvm) Such slow? in my editor if i place 10 your trees fps drop down from 200 to 45 (( with my trees The same situation at 100 trees with the same face and vertex count. not optimized geometry? and in your editor very low fps
|
|
|
|
|
Logged
|
|
|
|
Toaster
Community Member

Posts: 378
|
 |
« Reply #16 on: July 16, 2009, 10:31:26 PM » |
|
Your tree's that you are exporting probably have a high poly count. I would suggest lowering the poly's by either:
A. Lowering the Tree's sides. or B. Use less depth
You can also use less leafs in an effort to lower the poly count. If you have low FPS in my editor I suggest turning down the settings and if you have the shadows off and the grass off and your still getting slow downs then I recommend getting a new GFX card. I have a geforce 7900 gs AGP 8x that can achieve 40 fps with Medium settings and 60-70 fps on low and with everything off I get around 120-130 fps. For a geforce 7900 gs this is good for my app. With my nvidia GTS 250 I get well above 100 fps with the settings on high and on Epic High I get around 60 fps. Epic high is really only for the best systems out there(which my CPU is rather old so it doesn't run epic high like it should).
Another thing you can try is to not have multiple windows open. Mainly stuff that uses alot of CPU power or GPU power. In example I wouldn't recommend running your editor when my tree gen is running. Really though this editor was designed to create next gen tree's and not low poly trees.
-Toaster
|
|
|
|
|
Logged
|
|
|
|
|
xx396
|
 |
« Reply #17 on: July 17, 2009, 08:48:30 AM » |
|
Very nice Toaster! Do you render the trees with each leaf quad billboarded to the camera because the exported files viewed in ModelView don't look quite as good
|
|
|
|
|
Logged
|
|
|
|
Toaster
Community Member

Posts: 378
|
 |
« Reply #18 on: July 18, 2009, 11:27:16 PM » |
|
Tree Gen v1.1 has been released! http://treegen.pipedreamgames.com/Some new features have been added as well as some bugs fixed. Here's a list: Features Added: ================================== -Day Night Cycle. -Wind added for the leafs. -Volumetric Lighting -About box -Help File Fixed This Version: ================================== -Trunk options not scrolling when needed (Auto scrollbars set to true). -Generate button disapearing when window is resized. (Not Anchored). -String localization errors (Fixed). -Volumetric Lighting Settings did nothing (Added tree leaves to the VL rendering). You can download the newest editor from the Download Section of the website: http://treegen.pipedreamgames.com/downloads.phpEnjoy!  Very nice Toaster! Do you render the trees with each leaf quad billboarded to the camera because the exported files viewed in ModelView don't look quite as good
The leafs are minimeshes that are axis aligned to the camera. If you wait till the dll is released you will get this as well as dynamic LOD and generating trees on the fly. Plus a little shader with wind.  -Toaster
|
|
|
|
« Last Edit: July 19, 2009, 12:17:49 AM by Toaster »
|
Logged
|
|
|
|
|
|
|