Warning: Undefined array key "HTTP_ACCEPT_LANGUAGE" in /home/clients/50536745d503cc9bd290722a231d5f8f/web/includes/o3_common.php on line 79

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/clients/50536745d503cc9bd290722a231d5f8f/web/includes/o3_common.php on line 79
oZone3D.Net - Demoniak3D Developer Guide




GeeXLab
Current version: 0.45.1
>GeeXLab homepage

FurMark
Current version: 1.30.0
>FurMark homepage

GPU Caps Viewer
Current version: 1.55.0.0
>GPU Caps Viewer homepage

GPU Shark
Current version: 0.26.0.0
>GPU Shark homepage


Blogs
>JeGX's HackLab

Geeks3D's Articles
>GPU Memory Speed Demystified

>Multi-Threading Programming Resources

>GeForce and Radeon OpenCL Overview

>How to Get your Multi-core CPU Busy at 100%

>How To Make a VGA Dummy Plug

>Night Vision Post Processing Filter

PhysX FluidMark
Current version: 1.5.4
>FluidMark homepage

TessMark
Current version: 0.3.0
>TessMark homepage

ShaderToyMark
Current version: 0.3.0
>ShaderToyMark homepage
>ShaderToyMark Scores

Demoniak3D
Current Version: 1.23.0
>Demoniak3D
>Download
>Libraries and Plugins
>Demos
>Online Help - Reference Guide
>Codes Samples
 
oZone3D.Net - Demoniak3D Developer Guide


» Back To Index

Api Demoniak3D/LUA: Curves control library

HYP_Curve is the library of the LUA API host responsible for the curves management. These functions make it possible to initialize and modify the properties of a curve object (position of the points, color).
HYP_Curve.GetNumPoints
HYP_Curve.GetValue
HYP_Curve.SetColor
HYP_Curve.SetValue

GetValue

GetValue allows to get the particular coordinates of a point on the curve.
Syntax
x, y, z = HYP_Curve.GetValue( curve_name, index );
  • curve_name - [STR127] - name of the curve as defined in the XML script by the "name" attribute.
  • index - [INTEGER] - index of the point you want to know the value. The index lies between 0 and HYP_Curve.GetNumPoints()-1.
  • x - [REAL] - X coordinate of the point.
  • y - [REAL] - Y coordinate of the point.
  • z - [REAL] - Z coordinate of the point.

SetValue

SetValue allows to set the value of the punctual coordinates particular of the curve.
Syntax
HYP_Curve.SetValue( curve_name, index, x, y, z );
  • curve_name - [STR127] - name of the curve as defined in the XML script by the "name" attribute.
  • index - [INTEGER] - index of the point you want to change the value. The index lies between 0 and HYP_Curve.GetNumPoints()-1.
  • x - [REAL] - X coordinate of the point.
  • y - [REAL] - Y coordinate of the point.
  • z - [REAL] - Z coordinate of the point.

GetNumPoints

GetNumPoints allows to get the number of points of a curve. This number has been initialized in the XML main script in the curve node.
Syntax
num_points = HYP_Curve.GetNumPoints( curve_name );
  • curve_name - [STR127] - name of the curve as defined in the XML script by the "name" attribute.
  • num_points - [INTEGER] - number of points of the curve.

SetColor

SetColor allows to change the color of the rendered curve. By default, the value of the rendering color is green (0.0, 1.0, 0.0).
Syntax
HYP_Curve.SetColor( curve_name, r, b, b );
  • curve_name - [STR127] - name of the curve as defined in the XML script by the "name" attribute.
  • r - [CLAMPED_REAL] - value of the red component of the color.
  • g - [CLAMPED_REAL] - value of the green component of the color.
  • b - [CLAMPED_REAL] - value of the blue component of the color.


GeeXLab demos


GLSL - Mesh exploder


PhysX 3 cloth demo


Normal visualizer with GS


Compute Shaders test on Radeon


Raymarching in GLSL



Misc
>Texture DataPack #1
>Asus Silent Knight CPU Cooler
Page generated in 0.003119945526123 seconds.