Customscenenode-terrain and changing vertices/normal

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Customscenenode-terrain and changing vertices/normal

Post by knightoflight »

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);
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Maybe it is a bug I fixed in the upcoming 0.4: Try yourSceneNode::setAutomaticCulling(false), maybe its getting better.
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Post by knightoflight »

my king, you saved me, it works! I was searching in vertex/normal-things and was slowly getting mad...
Post Reply