<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://horde3d.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dithi</id>
		<title>Horde3D Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://horde3d.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dithi"/>
		<link rel="alternate" type="text/html" href="http://horde3d.org/wiki/index.php?title=Special:Contributions/Dithi"/>
		<updated>2026-04-15T12:20:54Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.29.3</generator>

	<entry>
		<id>http://horde3d.org/wiki/index.php?title=Tutorial_-_Hello_World&amp;diff=413</id>
		<title>Tutorial - Hello World</title>
		<link rel="alternate" type="text/html" href="http://horde3d.org/wiki/index.php?title=Tutorial_-_Hello_World&amp;diff=413"/>
				<updated>2008-11-02T19:02:13Z</updated>
		
		<summary type="html">&lt;p&gt;Dithi: Undo (the problem was with my app)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|  border=&amp;quot;0&amp;quot; &lt;br /&gt;
| {{ContentBlock|width=800|color=white&lt;br /&gt;
|content='''In this section we will create a simple application that loads a character and animates it using a walk cycle. You will see how straightforward it is to use the Horde3D API.''' &lt;br /&gt;
&lt;br /&gt;
As a first step you have to create an application that opens a window which can be used for rendering. This is a pretty standard task and if you are a novice and have problems with that on your platform use Google to find one of the numerous good tutorials on the net or have a look at the samples that come with the Horde3D SDK. The next step is to initialize an OpenGL context for our rendering window. You can do this manually or use the Horde3D Utility Library to make your life easier. After that is done we can finally get to the engine related part.&lt;br /&gt;
&lt;br /&gt;
{{CppSourceCode|&lt;br /&gt;
description= Simple Setup of the Horde3D renderer.|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
NodeHandle model = 0, cam = 0;&lt;br /&gt;
&lt;br /&gt;
void initGame( int winWidth, int winHeight )&lt;br /&gt;
{&lt;br /&gt;
    // Initialize engine&lt;br /&gt;
    Horde3D::init();&lt;br /&gt;
    Horde3D::resize( 0, 0, winWidth, winHeight );&lt;br /&gt;
    &lt;br /&gt;
    // Add pipeline resource&lt;br /&gt;
    ResHandle pipeRes = Horde3D::addResource( ResourceTypes::Pipeline, &amp;quot;standard.pipeline.xml&amp;quot;, 0 );&lt;br /&gt;
    // Add model resource&lt;br /&gt;
    ResHandle modelRes = Horde3D::addResource( ResourceTypes::SceneGraph, &amp;quot;character.scene.xml&amp;quot;, 0 );&lt;br /&gt;
    // Add animation resource&lt;br /&gt;
    ResHandle animRes = Horde3D::addResource( ResourceTypes::Animation, &amp;quot;walk.anim.xml&amp;quot;, 0 );&lt;br /&gt;
    // Load added resources&lt;br /&gt;
    Horde3DUtils::loadResourcesFromDisk( &amp;quot;&amp;quot; );&lt;br /&gt;
    &lt;br /&gt;
    // Add model to scene&lt;br /&gt;
    model = Horde3D::addNodes( RootNode, modelRes );&lt;br /&gt;
    // Apply animation&lt;br /&gt;
    Horde3D::setupModelAnimStage( model, 0, animRes, &amp;quot;&amp;quot; );&lt;br /&gt;
    &lt;br /&gt;
    // Add light source&lt;br /&gt;
    NodeHandle light = Horde3D::addLightNode( RootNode, &amp;quot;Light1&amp;quot;, 0, &amp;quot;LIGHTING&amp;quot;, &amp;quot;SHADOWMAP&amp;quot; );&lt;br /&gt;
    // Set light position and radius&lt;br /&gt;
    Horde3D::setNodeTransform( light, 0, 20, 0, 0, 0, 0, 1, 1, 1 );&lt;br /&gt;
    Horde3D::setLightParam( light, LightNodeParams::Radius, 50.0f );&lt;br /&gt;
	&lt;br /&gt;
    // Add camera&lt;br /&gt;
    NodeHandle cam = Horde3D::addCameraNode( RootNode, &amp;quot;Camera&amp;quot;, pipeRes );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The first line of the code above declares two global handles to Horde scene graph nodes. All objects in Horde are accessible via handles, a concept similar to pointers. The first thing we need to do in our initGame function to use Horde3D is initializing the engine. This happens with the function init. After that we tell the engine the size of our rendering window so that it can adjust the viewport.&lt;br /&gt;
&lt;br /&gt;
The next step is to load the required resources. In Horde resources are data files that are loaded once and can be referenced by several objects for rendering. The function addResource takes the resource type we want to add and the name of the resource (usually the filename) as parameters and returns a handle to the created resource object. In our case we want a model which is represented as a scene graph file in Horde and additionally an animation. Now the resources are created but we still need to load them. Horde supports loading from any sources including encrypted archives or a network but in this case we just want to load our resources from the local hard disk which is done with the utility function loadResourcesFromDisk. Besides our model and animation we also load a pipeline resource. A pipeline defines how the the scene is rendered and can be used to realize post-processing effects or high dynamic range rendering. For the beginning you can just use the files that come with the SDK samples.&lt;br /&gt;
&lt;br /&gt;
After we have loaded the required resources we can finally build up the scene graph. The scene graph represents the objects in our virtual world in a hierarchical tree structure. First we add the model that we have loaded before. We use the function addNodes for doing this which takes a scene graph resource and a parent node. The parent is the scene object to which the new node is attached, in our case just the root node which is the base of the virtual world. Similar to addResource this function also returns a handle to the created scene graph subtree. After that we assign the loaded animation to our model node with the function setupModelAnimStage. Horde allows you to apply several different animations to a model and makes it possible to blend and mix them but for the beginning one should be enough. Now that adding the model is finished we still need a light source. It would be possible to load another scene graph file which contains the light source but we want to add it manually by using the addLightNode function. This function requires several parameters specifying the shaders used for rendering. More information on this can be found in other sections of the manual. The next step is to set the position and orientation which is done with setNodeTransform. After that we specify the light radius which defines the zone of influence using setLightParam. Finally we still need a camera which represents the viewer. It is added with the function addCameraNode and takes our loaded pipeline resource as parameter.&lt;br /&gt;
&lt;br /&gt;
{{CppSourceCode|&lt;br /&gt;
description= Game Loop and Destructor|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
void gameLoop( float fps )&lt;br /&gt;
{&lt;br /&gt;
    static float t = 0;&lt;br /&gt;
    &lt;br /&gt;
    // Increase animation time&lt;br /&gt;
    t = t + 10.0f * (1 / fps);&lt;br /&gt;
    &lt;br /&gt;
    // Play animation&lt;br /&gt;
    Horde3D::setModelAnimParams( model, 0, t, 1.0f );&lt;br /&gt;
    &lt;br /&gt;
    // Set new model position&lt;br /&gt;
    Horde3D::setNodeTransform( model, t * 10, 0, 0,     // Translation&lt;br /&gt;
                                           0, 0, 0,     // Rotation&lt;br /&gt;
                                           1, 1, 1 );   // Scale&lt;br /&gt;
										   &lt;br /&gt;
    // Render scene &lt;br /&gt;
    Horde3D::render( cam );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void releaseGame()&lt;br /&gt;
{&lt;br /&gt;
    // Release engine&lt;br /&gt;
    Horde3D::release();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The next function in our sample is the game loop which is called once every frame. Here we will animate our character model. For doing this we define a time counter which is increased in every frame. To make the animation speed independent from the framerate, we scale the time step by the inverse of the current frames per second value. After that we tell the engine to update the model animation using the setModelAnimParams function. We could also specify a blend weight for combining animations here but since we have only one animation we don't need that. Now we can displace our character a bit so that it moves through the scene. This is achieved by updating the model node transformation. Finally we need to tell the engine to render the scene and recalculate the model animation. This happens with the function render that expects the camera from which the scene is viewed.&lt;br /&gt;
&lt;br /&gt;
The last function releaseGame is called when the application is closed. All we have to do here is freeing the engine with the release function.&lt;br /&gt;
&lt;br /&gt;
That's it so far with the basic tutorial. You can have a look at the Usage Guide now to learn more details.&lt;br /&gt;
}}&lt;br /&gt;
|  valign=&amp;quot;top&amp;quot; | {{Extension_Summary|&lt;br /&gt;
name = Hello World Tutorial|&lt;br /&gt;
screenshot = H3DPlaceHolder.png|&lt;br /&gt;
description = This tutorial introduces the basic steps necessary to setup horde3d|&lt;br /&gt;
version = 1.0|&lt;br /&gt;
horde3dversion = 1.0 beta|&lt;br /&gt;
released = 2008-03-30|&lt;br /&gt;
author = Nicolas Schulz|&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
[[category: Tutorials]]&lt;/div&gt;</summary>
		<author><name>Dithi</name></author>	</entry>

	<entry>
		<id>http://horde3d.org/wiki/index.php?title=Tutorial_-_Hello_World&amp;diff=412</id>
		<title>Tutorial - Hello World</title>
		<link rel="alternate" type="text/html" href="http://horde3d.org/wiki/index.php?title=Tutorial_-_Hello_World&amp;diff=412"/>
				<updated>2008-11-02T18:36:26Z</updated>
		
		<summary type="html">&lt;p&gt;Dithi: Fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|  border=&amp;quot;0&amp;quot; &lt;br /&gt;
| {{ContentBlock|width=800|color=white&lt;br /&gt;
|content='''In this section we will create a simple application that loads a character and animates it using a walk cycle. You will see how straightforward it is to use the Horde3D API.''' &lt;br /&gt;
&lt;br /&gt;
As a first step you have to create an application that opens a window which can be used for rendering. This is a pretty standard task and if you are a novice and have problems with that on your platform use Google to find one of the numerous good tutorials on the net or have a look at the samples that come with the Horde3D SDK. The next step is to initialize an OpenGL context for our rendering window. You can do this manually or use the Horde3D Utility Library to make your life easier. After that is done we can finally get to the engine related part.&lt;br /&gt;
&lt;br /&gt;
{{CppSourceCode|&lt;br /&gt;
description= Simple Setup of the Horde3D renderer.|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
NodeHandle model = 0, cam = 0;&lt;br /&gt;
&lt;br /&gt;
void initGame( int winWidth, int winHeight )&lt;br /&gt;
{&lt;br /&gt;
    // Initialize engine&lt;br /&gt;
    Horde3D::init();&lt;br /&gt;
    Horde3D::resize( 0, 0, winWidth, winHeight );&lt;br /&gt;
    &lt;br /&gt;
    // Add pipeline resource&lt;br /&gt;
    ResHandle pipeRes = Horde3D::addResource( ResourceTypes::Pipeline, &amp;quot;standard.pipeline.xml&amp;quot;, 0 );&lt;br /&gt;
    // Add model resource&lt;br /&gt;
    ResHandle modelRes = Horde3D::addResource( ResourceTypes::SceneGraph, &amp;quot;character.scene.xml&amp;quot;, 0 );&lt;br /&gt;
    // Add animation resource&lt;br /&gt;
    ResHandle animRes = Horde3D::addResource( ResourceTypes::Animation, &amp;quot;walk.anim.xml&amp;quot;, 0 );&lt;br /&gt;
    // Load added resources&lt;br /&gt;
    Horde3DUtils::loadResourcesFromDisk( &amp;quot;&amp;quot; );&lt;br /&gt;
    &lt;br /&gt;
    // Add model to scene&lt;br /&gt;
    model = Horde3D::addNodes( RootNode, modelRes );&lt;br /&gt;
    // Apply animation&lt;br /&gt;
    Horde3D::setupModelAnimStage( model, 0, animRes, &amp;quot;&amp;quot; );&lt;br /&gt;
    &lt;br /&gt;
    // Add light source&lt;br /&gt;
    NodeHandle light = Horde3D::addLightNode( RootNode, &amp;quot;Light1&amp;quot;, 0, &amp;quot;LIGHTING&amp;quot;, &amp;quot;SHADOWMAP&amp;quot; );&lt;br /&gt;
    // Set light position and radius&lt;br /&gt;
    Horde3D::setNodeTransform( light, 0, 20, 0, 0, 0, 0, 1, 1, 1 );&lt;br /&gt;
    Horde3D::setLightParam( light, LightNodeParams::Radius, 50.0f );&lt;br /&gt;
	&lt;br /&gt;
    // Add camera&lt;br /&gt;
    NodeHandle cam = Horde3D::addCameraNode( RootNode, &amp;quot;Camera&amp;quot;, pipeRes );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The first line of the code above declares two global handles to Horde scene graph nodes. All objects in Horde are accessible via handles, a concept similar to pointers. The first thing we need to do in our initGame function to use Horde3D is initializing the engine. This happens with the function init. After that we tell the engine the size of our rendering window so that it can adjust the viewport.&lt;br /&gt;
&lt;br /&gt;
The next step is to load the required resources. In Horde resources are data files that are loaded once and can be referenced by several objects for rendering. The function addResource takes the resource type we want to add and the name of the resource (usually the filename) as parameters and returns a handle to the created resource object. In our case we want a model which is represented as a scene graph file in Horde and additionally an animation. Now the resources are created but we still need to load them. Horde supports loading from any sources including encrypted archives or a network but in this case we just want to load our resources from the local hard disk which is done with the utility function loadResourcesFromDisk. Besides our model and animation we also load a pipeline resource. A pipeline defines how the the scene is rendered and can be used to realize post-processing effects or high dynamic range rendering. For the beginning you can just use the files that come with the SDK samples.&lt;br /&gt;
&lt;br /&gt;
After we have loaded the required resources we can finally build up the scene graph. The scene graph represents the objects in our virtual world in a hierarchical tree structure. First we add the model that we have loaded before. We use the function addNodes for doing this which takes a scene graph resource and a parent node. The parent is the scene object to which the new node is attached, in our case just the root node which is the base of the virtual world. Similar to addResource this function also returns a handle to the created scene graph subtree. After that we assign the loaded animation to our model node with the function setupModelAnimStage. Horde allows you to apply several different animations to a model and makes it possible to blend and mix them but for the beginning one should be enough. Now that adding the model is finished we still need a light source. It would be possible to load another scene graph file which contains the light source but we want to add it manually by using the addLightNode function. This function requires several parameters specifying the shaders used for rendering. More information on this can be found in other sections of the manual. The next step is to set the position and orientation which is done with setNodeTransform. After that we specify the light radius which defines the zone of influence using setLightParam. Finally we still need a camera which represents the viewer. It is added with the function addCameraNode and takes our loaded pipeline resource as parameter.&lt;br /&gt;
&lt;br /&gt;
{{CppSourceCode|&lt;br /&gt;
description= Game Loop and Destructor|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
static float t = 0;&lt;br /&gt;
&lt;br /&gt;
void gameLoop( float fps )&lt;br /&gt;
{&lt;br /&gt;
    // Increase animation time&lt;br /&gt;
    t = t + 10.0f * (1 / fps);&lt;br /&gt;
    &lt;br /&gt;
    // Play animation&lt;br /&gt;
    Horde3D::setModelAnimParams( model, 0, t, 1.0f );&lt;br /&gt;
    &lt;br /&gt;
    // Set new model position&lt;br /&gt;
    Horde3D::setNodeTransform( model, t * 10, 0, 0,     // Translation&lt;br /&gt;
                                           0, 0, 0,     // Rotation&lt;br /&gt;
                                           1, 1, 1 );   // Scale&lt;br /&gt;
										   &lt;br /&gt;
    // Render scene &lt;br /&gt;
    Horde3D::render( cam );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void releaseGame()&lt;br /&gt;
{&lt;br /&gt;
    // Release engine&lt;br /&gt;
    Horde3D::release();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The next function in our sample is the game loop which is called once every frame. Here we will animate our character model. For doing this we define a time counter which is increased in every frame. To make the animation speed independent from the framerate, we scale the time step by the inverse of the current frames per second value. After that we tell the engine to update the model animation using the setModelAnimParams function. We could also specify a blend weight for combining animations here but since we have only one animation we don't need that. Now we can displace our character a bit so that it moves through the scene. This is achieved by updating the model node transformation. Finally we need to tell the engine to render the scene and recalculate the model animation. This happens with the function render that expects the camera from which the scene is viewed.&lt;br /&gt;
&lt;br /&gt;
The last function releaseGame is called when the application is closed. All we have to do here is freeing the engine with the release function.&lt;br /&gt;
&lt;br /&gt;
That's it so far with the basic tutorial. You can have a look at the Usage Guide now to learn more details.&lt;br /&gt;
}}&lt;br /&gt;
|  valign=&amp;quot;top&amp;quot; | {{Extension_Summary|&lt;br /&gt;
name = Hello World Tutorial|&lt;br /&gt;
screenshot = H3DPlaceHolder.png|&lt;br /&gt;
description = This tutorial introduces the basic steps necessary to setup horde3d|&lt;br /&gt;
version = 1.0|&lt;br /&gt;
horde3dversion = 1.0 beta|&lt;br /&gt;
released = 2008-03-30|&lt;br /&gt;
author = Nicolas Schulz|&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
[[category: Tutorials]]&lt;/div&gt;</summary>
		<author><name>Dithi</name></author>	</entry>

	<entry>
		<id>http://horde3d.org/wiki/index.php?title=Tutorial_-_Setup_Horde_with_SDL&amp;diff=411</id>
		<title>Tutorial - Setup Horde with SDL</title>
		<link rel="alternate" type="text/html" href="http://horde3d.org/wiki/index.php?title=Tutorial_-_Setup_Horde_with_SDL&amp;diff=411"/>
				<updated>2008-10-26T02:23:30Z</updated>
		
		<summary type="html">&lt;p&gt;Dithi: make it work&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|  border=&amp;quot;0&amp;quot; &lt;br /&gt;
| {{ContentBlock|width=800|color=white&lt;br /&gt;
|content='''Here is a small example on how to use Horde with sdl.''' &lt;br /&gt;
Its a simple window that closes when the x is clicked&lt;br /&gt;
{{CppSourceCode|&lt;br /&gt;
description= Simple SDL Frame|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;Horde3DUtils.h&amp;gt;&lt;br /&gt;
#include &amp;lt;SDL.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
NodeHandle model = 0, cam = 0;&lt;br /&gt;
&lt;br /&gt;
int main(int argc, char* args[]){&lt;br /&gt;
    //Creates are bool value for the while loop.&lt;br /&gt;
    bool running = true;&lt;br /&gt;
  &lt;br /&gt;
    //Inits sdl with only the video extention.&lt;br /&gt;
    if (SDL_Init(SDL_INIT_VIDEO) != 0) {&lt;br /&gt;
        std::cerr &amp;lt;&amp;lt; &amp;quot;SDL_Init failed: &amp;quot; &amp;lt;&amp;lt; SDL_GetError() &amp;lt;&amp;lt; std::endl;&lt;br /&gt;
        return 0;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    //Sets are window Caption&lt;br /&gt;
    SDL_WM_SetCaption(&amp;quot;Simple SDL Frame&amp;quot;,NULL);&lt;br /&gt;
&lt;br /&gt;
    //Sets the sdl video mode width and height as well has creates are opengl context.&lt;br /&gt;
    if (!SDL_SetVideoMode(800,600,32,SDL_OPENGL)) {&lt;br /&gt;
        std::cerr &amp;lt;&amp;lt; &amp;quot;SDL_SetVideoMode failed: &amp;quot; &amp;lt;&amp;lt; SDL_GetError() &amp;lt;&amp;lt; std::endl;&lt;br /&gt;
        return 0;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    //Creates Our Event Reciver&lt;br /&gt;
    SDL_Event event;&lt;br /&gt;
    &lt;br /&gt;
    //Inits Horde3D&lt;br /&gt;
    Horde3D::init();&lt;br /&gt;
    &lt;br /&gt;
    //Sizes the Horde3D View&lt;br /&gt;
    Horde3D::resize( 0, 0, 800, 600 );&lt;br /&gt;
&lt;br /&gt;
    // Add pipeline resource&lt;br /&gt;
    ResHandle pipeRes = Horde3D::addResource( ResourceTypes::Pipeline, &amp;quot;standard.pipeline.xml&amp;quot;, 0 );&lt;br /&gt;
    // Add model resource&lt;br /&gt;
    ResHandle modelRes = Horde3D::addResource( ResourceTypes::SceneGraph, &amp;quot;character.scene.xml&amp;quot;, 0 );&lt;br /&gt;
    // Add animation resource&lt;br /&gt;
    ResHandle animRes = Horde3D::addResource( ResourceTypes::Animation, &amp;quot;walk.anim.xml&amp;quot;, 0 );&lt;br /&gt;
    // Load added resources&lt;br /&gt;
    Horde3DUtils::loadResourcesFromDisk( &amp;quot;&amp;quot; );&lt;br /&gt;
    &lt;br /&gt;
    // Add model to scene&lt;br /&gt;
    model = Horde3D::addNodes( RootNode, modelRes );&lt;br /&gt;
    // Apply animation&lt;br /&gt;
    Horde3D::setupModelAnimStage( model, 0, animRes, &amp;quot;&amp;quot;, false );&lt;br /&gt;
    &lt;br /&gt;
    // Add light source&lt;br /&gt;
    NodeHandle light = Horde3D::addLightNode( RootNode, &amp;quot;Light1&amp;quot;, 0, &amp;quot;LIGHTING&amp;quot;, &amp;quot;SHADOWMAP&amp;quot; );&lt;br /&gt;
    // Set light position and radius&lt;br /&gt;
    Horde3D::setNodeTransform( light, 0, 20, 0, 0, 0, 0, 1, 1, 1 );&lt;br /&gt;
&lt;br /&gt;
    //Sets the lightnodes radius&lt;br /&gt;
    Horde3D::setNodeParamf( light, LightNodeParams::Radius, 50 );&lt;br /&gt;
    //Sets the lightnodes Field of view&lt;br /&gt;
    Horde3D::setNodeParamf( light, LightNodeParams::FOV, 90 );&lt;br /&gt;
    //Sets the lightnodes ShadowMapCOunt&lt;br /&gt;
    Horde3D::setNodeParami( light, LightNodeParams::ShadowMapCount, 3 );&lt;br /&gt;
    //Sets the lightnodes ShadowSplitLambda&lt;br /&gt;
    Horde3D::setNodeParamf( light, LightNodeParams::ShadowSplitLambda, 0.9f );&lt;br /&gt;
    //Sets the lightnodes ShadowMapBias&lt;br /&gt;
    Horde3D::setNodeParamf( light, LightNodeParams::ShadowMapBias, 0.001f );&lt;br /&gt;
    //Sets the lightnodes red value&lt;br /&gt;
    Horde3D::setNodeParamf( light, LightNodeParams::Col_R, 0.9f );&lt;br /&gt;
    //Sets the lightnodes green value&lt;br /&gt;
    Horde3D::setNodeParamf( light, LightNodeParams::Col_G, 0.7f );&lt;br /&gt;
    //Sets the lightnodes blue value&lt;br /&gt;
    Horde3D::setNodeParamf( light, LightNodeParams::Col_B, 0.75f );    &lt;br /&gt;
	&lt;br /&gt;
    // Add camera&lt;br /&gt;
    cam = Horde3D::addCameraNode( RootNode, &amp;quot;Camera&amp;quot;, pipeRes );&lt;br /&gt;
&lt;br /&gt;
    // Our While loop&lt;br /&gt;
    while(running == true){&lt;br /&gt;
      static float t = 0;&lt;br /&gt;
    &lt;br /&gt;
      // Increase animation time&lt;br /&gt;
      t = t + 10.0f * (1 / 60);&lt;br /&gt;
      //Checks if there is a event that needs processing&lt;br /&gt;
      if(SDL_PollEvent(&amp;amp;event)){&lt;br /&gt;
         //Checks to see if the event is a SDL_QUIT*x on the window is clicked*&lt;br /&gt;
         if(event.type == SDL_QUIT){&lt;br /&gt;
            //Sets the while loop to false and ends program&lt;br /&gt;
            running = false;&lt;br /&gt;
         }&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
      // Play animation&lt;br /&gt;
      Horde3D::setModelAnimParams( model, 0, t, 1.0f );&lt;br /&gt;
    &lt;br /&gt;
      // Set new model position&lt;br /&gt;
      Horde3D::setNodeTransform( model, t * 10, 0, 0,     // Translation&lt;br /&gt;
                                           0, 0, 0,     // Rotation&lt;br /&gt;
                                           1, 1, 1 );   // Scale									   &lt;br /&gt;
      // Render scene &lt;br /&gt;
      Horde3D::render( cam );&lt;br /&gt;
      &lt;br /&gt;
      //Swaps the sdl opengl buffers&lt;br /&gt;
      SDL_GL_SwapBuffers();&lt;br /&gt;
    }&lt;br /&gt;
    //Releases the Horde3D Engine&lt;br /&gt;
    Horde3D::release();&lt;br /&gt;
    //Releases SDL and quits the program&lt;br /&gt;
    SDL_Quit();  &lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
--[[User:Wild13|Rj]] 05:28, 1 August 2008 (CEST)&lt;br /&gt;
}}&lt;br /&gt;
|  valign=&amp;quot;top&amp;quot; | {{Extension_Summary|&lt;br /&gt;
name = Horde With SDL|&lt;br /&gt;
screenshot = H3DPlaceHolder.png|&lt;br /&gt;
description = This tutorial introduces the use of Horde3D with SDL|&lt;br /&gt;
version = 1.0|&lt;br /&gt;
horde3dversion = 1.0 beta|&lt;br /&gt;
released = 2008-07-31|&lt;br /&gt;
author = Raynaldo Rivera|&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
[[category: Tutorials]]&lt;/div&gt;</summary>
		<author><name>Dithi</name></author>	</entry>

	</feed>