TerraEd and Blitzgrass

Blitz3D Forums/Blitz3D Beginners Area/TerraEd and Blitzgrass

stayne(Posted 2009) [#1]
I have tried for hours to get these two working together but I am failing. The grass is there and I can see it but it is placed far away from the terrain. I understand TerraEd places the world's center pivot at 0,0,0 and I can't seem to find Blitzgrass's pivot.

Lil' help here please.


Charrua(Posted 2009) [#2]
Hi, are you using:
GR_AddGRass(Px#, Py#, Pz#, GR_style)
or
GR_LoadColorMap(nt$,terrainPH,TerscaleTL#)

in the second one you have to have a valid blitz terrain (i donīt know about TerraEd terrains).
In the first case (GR_AddGrass) you have to have a way to determine the height ( Y# ) of the terrain to correctly place the grass.

Juan


stayne(Posted 2009) [#3]
Thanks, I am using GR_LoadColorMap.


Charrua(Posted 2009) [#4]
you could create a new "GR_LoadColorMap" based on the original and modifying the way that the height is calculated.
If TerraEd terrains are meshes you could try LinePick to obtain the Y# component of the terrain at specific x,z

Juan