Horde3D http://horde3d.org/forums/ |
|
h3dSetNodeParamF's fourth parameter? http://horde3d.org/forums/viewtopic.php?f=2&t=1140 |
Page 1 of 1 |
Author: | dellwood [ 01.04.2010, 23:43 ] |
Post subject: | h3dSetNodeParamF's fourth parameter? |
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 ![]() |
Author: | Codepoet [ 02.04.2010, 09:52 ] |
Post subject: | Re: h3dSetNodeParamF's fourth parameter? |
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 |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |