This project is read-only.

General comments

Nov 6, 2007 at 6:15 PM
General comments about the project are welcome here. I enjoy all kinds of feedback, so don't restrain yourself.
Feb 1, 2009 at 2:04 PM
I like your tree systems. But when i run LTrees on my computer, the leafs on the trees are invisible (not rendered) :S. I have a ATI Mobility HD 3450 video card
Feb 1, 2009 at 10:26 PM
Thank you for your bug report. I looked into it and I think it is because I used too many constant float registers than permitted by vertex shader model 1.1. It should be solvable by changing the vertex shader model in the Leaves.fx file from vs_1_1 to vs_2_0 or vs_3_0, but I am uncomfortable with releasing new code until someone can confirm this.
Feb 1, 2009 at 11:06 PM
A friend of mine with an ATI card apparently gets the same problem, but my theory was refuted as it using vs_2_0 changed nothing, as did reducing the bone count to 15. I will continue to look into it.
Feb 2, 2009 at 12:05 AM
Edited Feb 2, 2009 at 12:08 AM
I changed the shader code, so that it would use vertex shader 3.0 to render the leafs. This fixed the problem for me :D.

Setting both pixel and vertex shader to 2.0 also fixes the problem. Can i ask why the lib uses shader model 3.0 to render the leafs, when it works fine in shader model 2.0?
Feb 2, 2009 at 12:26 AM
I discovered the same thing after reading on XNA forums that using pixel shader 3.0 requires that the corresponding vertex shader also uses 3.0. Nvidia cards just bend this rule to be more compatible I guess.

Changing it to pixel shader ps_2_0 or ps_2_b makes the leaves lose some of their color (on my card at least), even though it still compiles. I will release a new version with vs_3_0 to fix the issue.

Thank you for your help.
Feb 2, 2009 at 1:15 PM
I dont see any leaves too. ATI X1550
Feb 2, 2009 at 4:40 PM
@Zulkar: Are you using version 2.0a uploaded yesterday or the original 2.0? Because that contains the fix that apparently worked for seffanp.
Feb 2, 2009 at 5:03 PM
I've grabbed new version now, all works fine, thank you!!!
Feb 6, 2009 at 1:52 AM
Is there going to be support for a 2D version that might easily integrate with XNA devs using SpriteBatch? I think this would be awesome for alot of side scrolling games that needs trees for the background and such :)
Feb 6, 2009 at 7:28 AM
I have no plans for 2D trees.
Aug 3, 2009 at 5:36 PM

It should be easy to generate a bunch of 2D trees yourself, by rendering a 3D tree in an orthogonal projection to a Texture2D.