Horde3D

Next-Generation Graphics Engine
It is currently 27.04.2024, 12:54

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 01.04.2010, 23:43 
Offline

Joined: 01.04.2010, 23:29
Posts: 1
I am currently in the process of getting the "Getting Started (http://www.horde3d.org/docs/html/_tutorial.html) tutorial up and running. After reading up on GLFW for a window capable of rendering, I re-created the remaining code from tutorial, which is currently giving me the following error:

Code:
.\app.cpp(33) : error C2660: 'h3dSetNodeParamF' : function does not take 3 arguments


After some forum/google searching, I found from the documentation that the function takes four parameters, but the way it's written in the tutorial:

Code:
h3dSetNodeParamF( light, H3DLight::RadiusF, 50.0f );


contains three. Of the four, my guess would be its missing the "compIdx" parameter, which is "the component of the parameter to be modified." My current knowledge of the engine is very limited, and I am not sure what this value should be.

All help is greatly appreciated :).


Top
 Profile  
Reply with quote  
PostPosted: 02.04.2010, 09:52 
Offline

Joined: 14.04.2008, 15:06
Posts: 183
Location: Germany
The third parameter is used to access the different parts of vector valued parameters and then it's behaves like an index into an array. If the parameter is not vector valued, then this parameter must be zero.

You can take a look at the parameter name: If it ends with a '3' it has three components, if it has no number at the end only one.

The API has a good documentation: Either look directly at the header files or go to http://horde3d.org/docs/manual.html


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 46 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group