|
OpenGL Shader support
With version 4.0 CADMAI supports beside the standard OpenGL rendering pipeline the programmable OpenGL rendering pipeline by the usage of GLSL shader programs.
The following features can be used with CADMAI shader programs:
- Multiple rendering passes
- Vertex, Fragment and Geometry shader
- DDS file support
- Environment mapping
- Multiple texture units
- Volume textures
- Procedural textures
- Definition of uniform parameters
- Tangent and Binormal attribute parameters for bump mapping
- Override of standard OpenGL functionality (blending, culling, …)
The shaders can be used to render 3D objects (Solids, Solid faces and Greps) in combination with the standard OpenGL rendering.
CADMAI Version 4.0 includes more than 30 shaders, which are available in source code and can be adapted to the user’s requirements. In addition to that they can be used as templates for new shaders which can be made available in CADMAI by configuration only.
Shaders can be used in the CmiObjectApi and the CmiWindowsApi and are thus available in all applications which use these API’s.
The following list is an extract of the delivered CADMAI shaders
- Metal (brushed, matt, polished, …)
- Stone (marble, polished stones, grit, procedural stone textures, …)
- Glass
- Tissue (velvet, …)
- Wood (polished and matt)
- Illustration (cartoon, Gooch, …)
- Effects ( erosion, mirror, …)
- Surface structures
All shaders are based on samples of AMD’s RenderMonkey (http://developer.amd.com/gpu/rendermonkey/Pages/default.aspx) or on samples from the OpenGL Shading Language book (http://www.3dshaders.com/home/) and are adapted to the CADMAI environment.
To be able to use shader programs, the installed OpenGL version must be greater than 2 and the GLSL version must be greater than 1. The determined OpenGL version numbers are displayed in the CADMAI Help dialog.
|