[ Back to Geeks3D.com ]
 GeeXLab
Laboratory for Real Time 3D Programming (prototyping and demos) OpenGL, Lua, Python, GLSL, PhysX and more...Reference Guide XML Nodes
» Back to homepage
» Back to Developer's Guide Index
<scene> XML Node
<scene
name=""
archive_filename=""
display_fps=""
show_ref_grid=""
vsync=""
msaa=""
physx_mode=""
>
<window_size
width=""
height=""
width_offset=""
height_offset=""
fullscreen=""
>
</window_size>
<background
filename=""
render=""
>
</background>
</scene>
<scene>
The purpose of the scene node is to install the general framework of a 3d scene : background color,
window size, display of various informations. The scene is the main node since it is inside the 3d scene that everything takes
place. The scene has also another fundamental role: it offers the absolute frame of reference (also called world coordinates)
which makes it possible to position the different objects.
scene element has 7 attributes and 2 sub-element(s)
- name [STRING]: name of the HUD
- archive_filename [STRING]: relative path to the ZIP file containing demo data.
- display_fps [BOOLEAN]: displays the FPS (frames per second). - Values = TRUE ,FALSE
- show_ref_grid [BOOLEAN]: displays the reference grid. - Values = TRUE, FALSE
- vsync [BOOLEAN]: enables or disables vertical synchronization. - Values = TRUE, FALSE
- msaa [BOOLEAN]: enables or disables MSAA (multisample anti-aliasing). - Values = TRUE, FALSE
- physx_mode [STRING]: selects the PhysX mode: CPU or GPU. - Values = PHYSX_CPU, PHYSX_GPU
<window_size>
Specifies the size of the window.
window_size element has 5 attributes and 0 sub-element(s)
- width [INTEGER]: window width
- height [INTEGER]: window height
- width_offset [INTEGER]: X-offset of the window position.
- height_offset [INTEGER]: X-offset of the window position.
- fullscreen [BOOLEAN]: switches from windowed mode to fullscreen mode.
<background>
Specifies an image for scene background.
background element has 2 attributes and 0 sub-element(s)
- filename [BOOLEAN]: relative path to the background image.
- render [INTEGER]: enables (TRUE) or disables (FALSE) the render of the background image.
|