.
-
- Posts: 3
- Joined: Thu Oct 19, 2006 9:15 pm
Hey Spintz...quick question...
I just implemented the code you provided for GetHeight in the Irrlicht 1.1 source code I downloaded, and when I use it to update the camera's Y position relative to the camera's movement, it looks choppy.
Does your code account for the slope of the terrain when calculating the height? To me, the actual code looks like it does...or tries to...but it's just not working for me the way I thought it would.
Or, would it be possible that the camera is updating the Y axis and that's what's making it look choppy? I'm using the FPS camera scene node.
Thanks.
[EDIT]
I should mention that I'm using Irrlicht.NET CP to do this (I added the necessary code to the IrrlichtW and Irrlicht.NET CP libraries.)
[/EDIT]
I just implemented the code you provided for GetHeight in the Irrlicht 1.1 source code I downloaded, and when I use it to update the camera's Y position relative to the camera's movement, it looks choppy.
Does your code account for the slope of the terrain when calculating the height? To me, the actual code looks like it does...or tries to...but it's just not working for me the way I thought it would.
Or, would it be possible that the camera is updating the Y axis and that's what's making it look choppy? I'm using the FPS camera scene node.
Thanks.
[EDIT]
I should mention that I'm using Irrlicht.NET CP to do this (I added the necessary code to the IrrlichtW and Irrlicht.NET CP libraries.)
[/EDIT]
Oh yes a very usefull method. Now, after I forced myself to have a deeper look into Irrlichts source and add something, I found this a very good method. Because I have thousands of getHeight calls to place my grass. Doing this with the standart way the load time increased drastically, but with this it works very fine!
Thanks!
[Edit] But it doesnt work like it should. There are too high tolerances in calculation of the height to use it in a real game scenario. In many situations the grass is circa 1m above the terrain. In other cases it is under the terrain layer. Thats realy anoying...
Thanks!
[Edit] But it doesnt work like it should. There are too high tolerances in calculation of the height to use it in a real game scenario. In many situations the grass is circa 1m above the terrain. In other cases it is under the terrain layer. Thats realy anoying...