Simple Shape Shader: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Image:drex_module_168_image_0.png|485pxpx|Simple Shape Shader]]
[[Image:drex_module_168_image_0.png|center|Simple Shape Shader]]


'''Node Type:''' Shader
'''Node Type:''' Shader

Revision as of 11:15, 31 July 2013

Simple Shape Shader
Simple Shape Shader

Node Type: Shader

Node Description and Purpose
The Simple shape shader is a node which makes it easy to create simple shapes such as circles/ellipses, squares/rectangles, triangles and regular polygons like pentagons and octagons. It can generate both colour and displacement. It can also apply different effects to the edges of the shape.

Currently the Simple shape shader is only applied in a straight-up-and-down Plan Y projection.

Edge profiles
These are the different profiles the shader can apply to the edges of shapes:


Smooth step creates a smooth transition between the edge and the interior of the shape. Bevel creates a straight line or linear ramp and Radius makes a quarter circle shape. Stroke is not shown here. It creates a solid stroke or border around the inside of the shape. Stroke can only be used in colour mode.

Simple shape shader examples

These are project files showing some different ways of using the Simple shape shader. The projects are explained in greater detail in the Comments section of the project settings. To view this click the Project Settings button in the bottom left of the main window. You might need to right click and choose "Save as" (Windows) or option-click (Mac) on the project file links to download them directly and prevent them opening in your browser.

Population density

This project shows how to use a Simple shape shader to control the density of a population. This example combines two Simple shape shaders using a Merge shader to make a more complex shape.

Media:simple_shape_shader_population_density.tgd

Displacement

This project is an example of using the Simple shape shader to create displacement on the terrain.

Media:simple_shape_shader_displacement.tgd


Surface layer blending

This project shows how to use a Simple shape shader to control the blending of a surface layer.

Media:simple_shape_shader_layer_blending.tgd


Settings:

  • Type of shape: This setting lets you choose the type of shape generated by the shader. You can choose from "Square/Rectangle", "Circle/Ellipse" or "Polygon". To create a triangle use a polygon with 3 sides.
  • Position: This sets the position of the centre of the shape.
  • Size: You can use this to set the width and height of the shape. N.B. an ellipse is a circle where the height is a different size to the width.
  • Rotation: This param sets the rotation of the shape around its centre. You can only rotate the array around the Y (upright) axis.
  • Polygon sides: This setting lets you control the number of sides when Type of shape is set to "Polygon".

Colour tab

  • Apply colour: If this is checked the shader will generate colour information.
  • Colour: This sets the colour for the shape.
  • Edge colour: The shader can apply a separate colour to the edge of the shape. To show the edge colour the Colour edge profile popup needs to set to something other than "None" and the Colour edge width needs to be more than 0.
  • Colour edge profile: This controls the edge profile or blending which is applied to the edge of the shape. See above for examples of the different edge profiles.
  • Colour edge width: This param lets you set the width of the edge area of the shape. To show the edge colour the Colour edge profile popup needs to set to something other than "None".
  • Position key:


Additional tabs for Simple Shape Shader