Hi All,

I've been working on a shader-based approach to creating random trees with help
from Tim Moore.

Here's a screenshot of what I've managed to achieve so far:

http://www.nanjika.co.uk/flightgear/forest.jpg

A patch which includes both the shader trees and improvements to the random
object placement is available from 

http://www.nanjika.co.uk/flightgear/trees.tar.gz

This isn't yet ready for inclusion in CVS, but worth having a play about with.

Notes:
- Currently all the trees of a given type on a tile will be the same size, shape
and texture.
- It's highly likely that this code leaks memory like a sieve.
- The shader currently doesn't perform any diffuse lighting calculations. For
some reason including the diffuse lighting causes a "flickering" effect, 
possibly
due to the light source being so far away.

Comments are of course welcome.

-Stuart


      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good 
http://uk.promotions.yahoo.com/forgood/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to