RSL to RealMan conversion

From Realsoft3D Wiki

Shaders

RSL name
RealMan name
Notes
Surface
Surface properties,

illumination, filtering, finishing

RSL illuminance statements 

= RM Surface illumination

Displacement
Surface geometry
Displacement value has to be set in the displaced object
Volume
Volume shaders

Light
Light properties

Imager
Post image

Surface shader variables

RSL name
RSL type
RealMan name
RealMan type
description
notes
Cs
color
Surface.Color
color
Initial surface color

Os
color
Surface.Transparency
color
Initial surface opacity
Os = (1,1,1 -

Surface.Transparency)

P
point
Surface.Coordinates
vector
Surface position
Static in Realman
dPdu
vector
-
-
Derivative of surface position

along u

not available in Realman
dPdv
vector
-
-
Derivative of surface position

along v

not available in Realman
N
normal
Surface.Bumpnormal
vector
Surface shading normal

Ng
normal
Surface.Normal
vector
Surface geometric normal
Static in Realman
u, v
float
Surface.UVcoords
vector
Surface parameters

du, dv
float
(directions ?)
vector
Change in surface parameters

s, t
float
UV...
vector
Surface texture coordinates

L
vector
Light.Ray
vector
Incoming light ray direction

Cl
color
ray.color
color
Incoming light ray color
surface illumination
Ol
color
Light.Illumination/Light.Color ?

Incoming light ray opacity

E
point
coordinates-(incoming

ray*distance)


Position of the eye/camera
not foolproof, might work wrong

in reflections and such

I
vector


Incident ray direction

ncomps
float


Number of color components

time
float
-
-
current shutter time
not available in Realman
dtime
float
-
-
the amount of time covered by

this shading sample

not available in Realman
dPdtime
vector
-
-
How the surface position P is

changing per unit time, as descibed by motion blur in the scene

not available in Realman
Ci
color
Surface.Illumination
color
Surface illumination

Oi
color
Surface.Transparency
color
Surface opacity
Oi = (1,1,1 -

Surface.Transparency)