documentation:vegetation:grass
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:vegetation:grass [2010/12/20 21:51] – created btrix | documentation:vegetation:grass [2024/08/26 13:27] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Grass ====== | ||
+ | |||
Grass, one of the key elements of making a computerworld look lush. | Grass, one of the key elements of making a computerworld look lush. | ||
+ | ===== Rendering Countless Blades of Grass ===== | ||
The basic idea came from Nvidia [[http:// | The basic idea came from Nvidia [[http:// | ||
From This moment we had thousands blades of grass rendered in one piece. The simulation of the waving is being done in the shader. | From This moment we had thousands blades of grass rendered in one piece. The simulation of the waving is being done in the shader. | ||
+ | |||
+ | ===== Rendering Different Types of Grass ===== | ||
The next idea was it's dull to have just one type of grass so, the we putt several types of grass on one texture. To make it more usual we created a little tool, here you could drag around textures put them in structured or filling manor. The tool would then export the texture and along with it an XML file where all the UV-coords are stored. | The next idea was it's dull to have just one type of grass so, the we putt several types of grass on one texture. To make it more usual we created a little tool, here you could drag around textures put them in structured or filling manor. The tool would then export the texture and along with it an XML file where all the UV-coords are stored. | ||
+ | |||
+ | ===== Make The Grass look less dull ===== | ||
The next idea was another one from Nvidia[[http:// | The next idea was another one from Nvidia[[http:// | ||
We did by using a noise randomisation between 2 colors green and brown | We did by using a noise randomisation between 2 colors green and brown | ||
- | http:// | + | \\ |
- | the scene without | + | {{: |
- | http:// | + | \\ |
- | the scene with color noise | + | without |
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | with NoiseColoring | ||
+ | |||
+ | ===== Future Ideas ===== | ||
+ | *Using a textureMap to make grass fall down when you walk on it or when something is rolled over it. | ||
+ | *Using a textureMap make the color change, this way you could fire a fireball that burn the grass it fly's over and destroys the grass where it lands | ||
+ | |||
+ | ===== TODO? ===== | ||
+ | |||
+ | |||
+ | * TextureAtlas | ||
+ | * To solve this we give an extra uv coord through with the VertexData | ||
+ | * TextureAtlasCreationTool | ||
+ | * Manual drag and drop | ||
+ | * Scale function | ||
+ | * Later algorithm that automatically puts textures in an optimal arrangement | ||
+ | * Output XML file with all the uvCoords for each texture on the map | ||
+ | * Use random color diversions to get rid of repetition(nvidia site) | ||
+ |
documentation/vegetation/grass.1292881903.txt.gz · Last modified: 2024/08/26 13:25 (external edit)