for a new experiment for a terrain map, with saigumis way, i took a customscenenode with two triangles to make the groundtile and to get the terrain, change the vertices from program to the right x,y,z.
the result is that the terrain totally disappears in some angles of the view (maybe 30-70 and 120 to 160 or so)
What basical things have i forgotten ?
in scenenodeclass:
...
virtual void SetPosVertex(int nr, core::vector3df vert)
{
Vertices[nr].Pos=vert;
vert.normalize();
Vertices[nr].Normal=vert;
}
in main:
...
View[i][j]->SetPosVertex(0,ver);
Customscenenode-terrain and changing vertices/normal
-
- Posts: 199
- Joined: Sun Aug 24, 2003 5:47 pm
- Location: Germany
-
- Posts: 199
- Joined: Sun Aug 24, 2003 5:47 pm
- Location: Germany