K3dScript documentation

0.2.0.0

K3dScript documentation

K3dEngine using Lua script language. You can use all Lua 5.1 features.
K3dEngine scripts have following function form K3d_(function name).

Script examples

First is calling default initialization script main_script.lua

main_menu_script.lua
Initialized gui and show main menu window

global_var_script.lua
Initialized global variables

add_ray_script.lua
Test script how add and draw ray object

add_vertex_script.lua
Test script how add and draw vertex object

get_cam_pos_script.lua
Load camera from map file and draw camera position

get_plane_script.lua
Load plane from map file and draw this plane

gui_script.lua
Load all gui objects from map file and draw this gui

hallo_world_script.lua
Simple script example

intr_line_plane_script.lua
Intersection between line and plane

intr_ray_sphere_script.lua
Intersection between ray and sphere

print_value_script.lua
Print some value to the screen

triangulation_script.lua
Load vertex array from map file and triangulate vertices to the convex polyhedron

Map files

Required map files


Generated on Fri Aug 10 13:11:39 2007 for K3dScript by  doxygen 1.5.0