Difference between revisions of "User:Le Forgeron"
Jump to navigation
Jump to search
Le Forgeron (talk | contribs) |
Le Forgeron (talk | contribs) |
||
Line 25: | Line 25: | ||
===Access to camera information=== | ===Access to camera information=== | ||
+ | <p>These pieces of information are in read-only mode. You cannot use them to modify the actual value (no <code>#declare</code> or <code>#local</code>). The various vectors might have been updated by transform and <code>look_at</code>.</p> | ||
+ | * <code>camera_type</code> is a string containing the type of the camera (but not its subtype, so cylinder camera might be ambiguous). | ||
+ | * <code>camera_up</code> is the actual up vector of the camera. | ||
+ | * <code>camera_right</code> is the actual right vector of the camera. | ||
+ | * <code>camera_direction</code> is the actual direction vector of the camera. | ||
+ | <p>In case of scene with multiple cameras, each keyword can be followed by an usual array notation to access the relevant camera. (e.g. <code>camera_up[3]</code>)</p> | ||
===Tesselation & mesh play=== | ===Tesselation & mesh play=== |
Revision as of 19:53, 9 February 2011
I use this page to pre-document some experimental code (as experimental, not distributed in official release)
Splines
Imported from Megapov Relicensing from ABX is needed before allowing distribution (some bugs get fixed in the process)
Colour space interpolation
The colour interpolation is available for:
- mesh
- blob
- polygon
It can be used with texture_map, pigment_map or colour_map.
The interpolation is performed between the resulting colours from the evaluation, not along the map.
Which colourspace ?
Interpolation for polygon
Access to camera information
These pieces of information are in read-only mode. You cannot use them to modify the actual value (no #declare
or #local
). The various vectors might have been updated by transform and look_at
.
camera_type
is a string containing the type of the camera (but not its subtype, so cylinder camera might be ambiguous).camera_up
is the actual up vector of the camera.camera_right
is the actual right vector of the camera.camera_direction
is the actual direction vector of the camera.
In case of scene with multiple cameras, each keyword can be followed by an usual array notation to access the relevant camera. (e.g. camera_up[3]
)
Tesselation & mesh play
Yoda: Yes, run! Yes, a Jedi's strength flows from the Renderer. But beware of the dark side. Mesh, Heightfield, Bicubic Patch; the dark side of the Force are they. Easily they flow, quick to join you in a fight. If once you start down the dark path, forever will it dominate your destiny, consume you it will, as it did Isosurface's apprentice. Luke: Parametric precompute... Is the dark side stronger? Yoda: No, no, no. Quicker, easier, more seductive. Luke: But how am I to know the good side from the bad? Yoda: You will know... when you are calm, at peace, passive. A Jedi uses the Renderer for knowledge and defense, NEVER for attack. Luke: But tell my why I can't... Yoda: No, no! There is no "why".