return from scene to node?

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
husqvarna
Posts: 39
Joined: Thu Mar 09, 2006 9:37 am

return from scene to node?

Post by husqvarna »

Hello,

I have an ISceneNode and I want to modify some of the Z values of the points of this ISceneNode (after the load of the mesh). I found set Position, but it is for all the IScene and I want to interact only with some point and give different value.

How to do that?

Code: Select all

	scene::ISceneNode* myISceneNode ;
	myISceneNode ->setPosition(…) ; // only for all the sceneNode
Thanks
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

An ISceneNode doesn't have any points [vertices]. IMeshBuffers have vertices. If you have a derived scene node that has vertices or exposes it mesh buffers, you can modify the vertices there or you can use a vertex shader to do it.

Travis
husqvarna
Posts: 39
Joined: Thu Mar 09, 2006 9:37 am

Post by husqvarna »

Thanks
Post Reply