Horde3D http://horde3d.org/forums/ |
|
h3d.getCastRayResult signature in .NET bindings http://horde3d.org/forums/viewtopic.php?f=3&t=1123 |
Page 1 of 1 |
Author: | tlaukkan [ 13.03.2010, 18:10 ] |
Post subject: | h3d.getCastRayResult signature in .NET bindings |
Hi I am not sure if this a bug or not but if understand the API correctly h3d.getCastRayResult should return some kind of handle to the intersected node. In .NET binding the node parameter of the method is not defined with out keyword. So the method is taking int parameter as input but not returning horde id of the intersected node. The API documentation for corresponding C++ method is: DLL bool h3dGetCastRayResult(int index, H3DNode* node, float* distance, float* intersection) Parameters index index of result to be accessed (range: 0 to number of results returned by castRay) node handle of intersected node distance distance from ray origin to intersection point intersection coordinates of intersection point (float[3] array) Best regards, Tommi Laukkanen |
Author: | Volker [ 14.03.2010, 00:03 ] |
Post subject: | Re: h3d.getCastRayResult signature in .NET bindings |
Thanks for reporting, fixed it. |
Author: | tlaukkan [ 14.03.2010, 06:00 ] |
Post subject: | Re: h3d.getCastRayResult signature in .NET bindings |
Great, thank you -tommi |
Author: | tlaukkan [ 14.03.2010, 16:37 ] |
Post subject: | Re: h3d.getCastRayResult signature in .NET bindings |
Hi Now that I tried to use the method it seems to find the intersections correctly but when I try to access the result with h3d.getCastRayResult I get access violation with 0 index all though it found intersections and with index 1 the distance and intersection coordinates are all zero. Should the intersection float array also have out parameter by the way? I am using Beta4 bindings but now I should probably update to trunk to get the fix you made to the node parameter. Does this require that I build the C++ part as well from trunk? Best regards, Tommi Laukkanen |
Author: | tlaukkan [ 14.03.2010, 17:28 ] |
Post subject: | Re: h3d.getCastRayResult signature in .NET bindings |
I built just the bindings from trunk and things work now perfectly. -tommi |
Author: | Volker [ 14.03.2010, 21:31 ] |
Post subject: | Re: h3d.getCastRayResult signature in .NET bindings |
Yes we always patch against the trunk. The official packages are only updated when there is a new release. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |