Powertek.OpenGl.PtMaterial Class Reference

PtMaterial. More...

Collaboration diagram for Powertek.OpenGl.PtMaterial:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PtMaterial ()
object Clone ()
void Init ()
void SetDiffuseSamples (int numThreads, int numDiffuseSamples)
void SetParamChanged ()
Vertex3f SampleDiffuse (int threadId)
void SetMaterial (Vertex3f diffuse, Vertex3f specular)
void SetMaterial (Vertex3f diffuse, Vertex3f specular, Vertex3f reflection)
void SetMaterial (Vertex3f diffuse, Vertex3f specular, Vertex3f reflection, Vertex3f transparency, float shineStrenght, float refractionIndex)
void SetDiffuseOnTransparency ()

Public Attributes

String MatName
String MatClass
Vertex3f Ambient
Vertex3f Diffuse
Vertex3f Specular
Vertex3f ReflectionColor
float Shine
float ShineStrenght
Vertex3f Transparency
PtMatShading MatShading
float EtaIn
float EtaOut
float Roughness
Vertex3f Metallic
float Absorbance
float DiffuseReflectionFac
MatTexture TextureDiffuse
MatTexture TextureReflect
MatTexture TextureShineStrength
MatTexture TextureBump
MatTexture TextureShine
MatTexture TextureTransparence
int[] SubMatIDs = null
int NumSubMaterials
int AseMatNo
int MatID

Properties

bool IsTransparent [get]
bool IsReflective [get]
bool IsMetallic [get]
bool IsDiffuseMat [get]
bool IsSpecular [get]


Detailed Description


Constructor & Destructor Documentation

Powertek.OpenGl.PtMaterial.PtMaterial (  ) 


Member Function Documentation

object Powertek.OpenGl.PtMaterial.Clone (  ) 

create a deep copy object...

Returns:

void Powertek.OpenGl.PtMaterial.Init (  ) 

Init the material.

Vertex3f Powertek.OpenGl.PtMaterial.SampleDiffuse ( int  threadId  ) 

Return a Diffuse Sample.

Parameters:
threadId 
Returns:

void Powertek.OpenGl.PtMaterial.SetDiffuseOnTransparency (  ) 

SetDiffuseOnTransparency, for the raytracer the diffuse must be reduced if we want to render the color transparent.

void Powertek.OpenGl.PtMaterial.SetDiffuseSamples ( int  numThreads,
int  numDiffuseSamples 
)

Set Number of Diffuse Samples.

Parameters:
numThreads 
numDiffuseSamples 

void Powertek.OpenGl.PtMaterial.SetMaterial ( Vertex3f  diffuse,
Vertex3f  specular,
Vertex3f  reflection,
Vertex3f  transparency,
float  shineStrenght,
float  refractionIndex 
)

Set Material Params.

Parameters:
diffuse 
specular 
reflection 
transparency 
shineStrenght 
refractionIndex 

void Powertek.OpenGl.PtMaterial.SetMaterial ( Vertex3f  diffuse,
Vertex3f  specular,
Vertex3f  reflection 
)

Set Material Params.

Parameters:
diffuse 
specular 
reflection 

void Powertek.OpenGl.PtMaterial.SetMaterial ( Vertex3f  diffuse,
Vertex3f  specular 
)

Set Material Params.

Parameters:
diffuse 
specular 

void Powertek.OpenGl.PtMaterial.SetParamChanged (  ) 

SetParamChanged, this validates all mat params, call this on every mat param change.


Member Data Documentation

Absorbance.

Ambient.

Mat Ref in ASE File, the index of the mat in the ase file (MatRef).

Diffuse.

DiffuseReflectionFac.

incoming Refractive index

outgoing Refractive index

MatClass;.

Material ID, internal id to address the mat (also Array Index...).

Name of the Mat.

MatShading.

Metallic.

Number of SubMaterials.

ReflectionColor.

Oren Nayar Roughness.

Shine.

ShineStrenght.

Specular.

Array with SubMaterial ID.

Bump Texture.

Diffuse Texture.

Reflect Texture.

Shine Texture.

ShineStrength Texture.

Transparence Texture.

Transparency.


Property Documentation

bool Powertek.OpenGl.PtMaterial.IsDiffuseMat [get]

Indicates that the Mat is Diffuse.

bool Powertek.OpenGl.PtMaterial.IsMetallic [get]

Indicates that the Mat is Metallic.

bool Powertek.OpenGl.PtMaterial.IsReflective [get]

Indicates that the Mat is Reflective.

bool Powertek.OpenGl.PtMaterial.IsSpecular [get]

Indicates that the Mat is Specular.

bool Powertek.OpenGl.PtMaterial.IsTransparent [get]

Indicates that the Mat is Transparent.


The documentation for this class was generated from the following file:

Generated on Thu Nov 20 04:46:32 2008 for Powertek.OpenGl, 2.0.6.64 by  doxygen 1.5.7.1