This project is read-only.

Scripts

General

All scene descriptions must be enclosed:
scene (

+SCENE DESCRIPTION - LIST OF OBJECTS +

)

Objects' elements

Point
here is (1, 1, 0).
z (3rd coordinate) is the depth.
(x, y, z)
(1.0, 1.0, 0.0)

Color
(red, green, blue). Components are 0-255, integers.
Here is red
(255, 0, 0)

Rotations and translations

Planned in next release

"Homothéties"

Planned in next release

Points

p (1.0, 1.0, 0.0) (255, 0, 0)

Droite

Droite (
	( 0.0 , 0.0 , 0.0 ) 
	( 1.0 , 1.0 , 0.0 ) 
	( 255 , 0 , 0 )
)

Cube as list of triangles

tris (
(			(1, 0, 0), (1, 1, 0), (1, 1, 1), (64,0,0))
(			(1, 0, 0), (1, 0, 1), (1, 1, 1), (128,0,0))
(			(0, 0, 0), (0, 1, 0), (0, 1, 1), (176,0,0))
(			(0, 0, 0), (0, 0, 1), (0, 1, 1), (255,0,0))
(			(0, 1, 0), (1, 1, 0), (1, 1, 1), (0,64,0))
(			(0, 1, 0), (0, 1, 1), (1, 1, 1), (0,128,0))
(			(0, 0, 0), (1, 0, 0), (1, 0, 1), (0,196,0))
(			(0, 0, 0), (0, 0, 1), (1, 0, 1), (0,255,0))
(			(0, 0, 0), (0, 1, 0), (1, 1, 0), (0,0,64))
(			(0, 0, 0), (1, 0, 0), (1, 1, 0), (0,0,128))
(			(0, 0, 1), (0, 1, 1), (1, 1, 1), (0,0,196))
(			(0, 0, 1), (1, 0, 1), (1, 1, 1), (0,0,255))
)

Triangles

tris(
((10, 10, 5), (6, -2, 1), (0, 0, 0), (255, 128, 0))
((-10, 10, 5), (-6, -2, 1), (0, 0, 0), (255, 128, 0))
((3,3,0), (-3,3,0),(0,-2,3), (255,0,0))
((3,3,0),(0,3,0),(5,10,10),(255,0,0))
((-3,3,0),(0,3,0),(-5,10,10),(255,0,0))
((0,3,0),(5,10,10),(0,20,20),(255,0,0))
((0,3,0),(-5,10,10),(0,20,20),(255,0,0))
((10,10,0),(-10,10,0),(0,30,10),(0,0,255))
((10,10,0),(0,15,-20),(0,10,0),(0,0,255))
((-10,10,0),(0,15,-20),(0,10,0),(0,0,255))
((0,15,-20),(0,30,10),(0,15,-20),(0,0,255))
((0,15,-20),(0,30,10),(0,15,-20),(0,0,255))
)


Sphères

simplesphere ( ( 0.0 , 0.0 , 0.0 ) 1.0 (255, 0, 0) )
simplesphere ( ( 2.0 , 0.0 , 0.0 ) 1.0 (255, 0, 0) )
simplesphere ( ( 1.0 , 2.0 , 0.0 ) 2.0 (255, 127, 127) )
tetraedre ( (0.0 , 0.0 , 0.0) (2.0 , 0.0 , 0.0) (1.0 , 2.0, 0.0) (1.0 , 1.0 , 2.0 ) (0, 0, 255) )

Sphère avec texture bitmap

scene 
(

SimpleSphereAvecTexture((0.0,0.0,0.0) 3 (0, 255, 255) "c:\Users\Mary\3854.png" )


)

Tube - tubulaire

tubulaire (
	(
	( 0.0 , 0.0 , 0.0 ) 
	( 0.0 , 5.0 , 0.0 ) 
	( 5.0 , 10.0 , 0.0 ) 
	( 10.0 , 10.0 , 0.0 ) 

	( 10.0 , 10.0 , 0.0 ) 
	( 15.0 , 10.0 , 0.0 ) 
	( 20.0 , 5.0 , 0.0 ) 
	( 20.0 , 0.0 , 0.0 ) 

	( 20.0 , 0.0 , 0.0 ) 
	( 20.0 , 5.0 , 0.0 ) 
	( 15.0 , 10.0 , 0.0 ) 
	( 10.0 , 10.0 , 0.0 ) 

	( 10.0 , 10.0 , 0.0 ) 
	( 5.0 , 10.0 , 0.0 ) 
	( 0.0 , 5.0 , 0.0 ) 
	( 0.0 , 0.0 , 0.0 ) 

)
5.0
(255, 255, 0)
)



Cube

Cube (
  ( 0.0, 0.0, 0.0)  3.0
)

Last edited Mar 21, 2012 at 5:17 AM by ibiiztera, version 14

Comments

No comments yet.