My Account


RSS
oZone3D.Net RSS Feeds»RSS 2.0 Feeds

Blogs
»Demoniak3D Blog
»JeGX's Infamous Lab

Sponsors

Modul8: real time video mixing and compositing


Link to Us

oZone3D.Net 100% Realtime 3D

»All Links

Web Partners

www.geeks3d.com
www.benchmarkhq.ru
www.tdt3d.com
www.steph3d.net
www.g-truc.net
www.worldpcspecs.com


Banners Exchange

www.jmax-hardware.com
cgindia.blogspot.com
grapejuice.c.la
www.game-lab.com


Links Exchange

»CYGAD's 3DXtra

Search
Google
Web
oZone3D.Net
 
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.




Language:


Demoniak3D
Current Version: 1.23.0
»Demoniak3D
»Download
»Libraries and Plugins
»Demos
»Online Help - Reference Guide
»Codes Samples


GPU Caps Viewer
Current Version: 1.4.2
»GPU Caps Viewer
»GPU DB Submissions


FurMark
Current Version: 1.4.0
»FurMark
»Benchmark Submissions


Geeks3D News
Page generated in 0.091038942337036 seconds.