[ First : I searched for this first one.. ]
How do I create custom meshes?(I assume these are called meshes)
in OpenGL would be done glBegin(); - glEnd();(assume you can fill in the rest)
Any information?
[ Second ]
I was thinking of also making a custom camera, the camera stares constantly at an object, then is pulled along to the character, by an invisible string, sound like a good idea?
Two things
Mesh m = new Mesh();
MeshBuffer mb = new MeshBuffer(VertexType.Standard);
Vector3D vec;
vec = new Vector3D(0, 0, 0);
mb.SetVertex(0, new Vertex3D(vec, vec.Normalize(), Color.White, new Vector2D(0, 0)));
vec = new Vector3D(1, 0, 0);
mb.SetVertex(0, new Vertex3D(vec, vec.Normalize(), Color.White, new Vector2D(1, 0)));
vec = new Vector3D(1, 0, 1);
mb.SetVertex(0, new Vertex3D(vec, vec.Normalize(), Color.White, new Vector2D(1, 1)));
vec = new Vector3D(0, 0, 1);
mb.SetVertex(0, new Vertex3D(vec, vec.Normalize(), Color.White, new Vector2D(0, 1)));
m.AddMeshBuffer(mb);
SceneNode me = device.SceneManager.AddMeshSceneNode(m, null, -1);
me.Position = new Vector3D(0, -1, 1);
Is my code.. doesnt seem to display anything though..
(btw am using C# Irrlicht, as you can see)
MeshBuffer mb = new MeshBuffer(VertexType.Standard);
Vector3D vec;
vec = new Vector3D(0, 0, 0);
mb.SetVertex(0, new Vertex3D(vec, vec.Normalize(), Color.White, new Vector2D(0, 0)));
vec = new Vector3D(1, 0, 0);
mb.SetVertex(0, new Vertex3D(vec, vec.Normalize(), Color.White, new Vector2D(1, 0)));
vec = new Vector3D(1, 0, 1);
mb.SetVertex(0, new Vertex3D(vec, vec.Normalize(), Color.White, new Vector2D(1, 1)));
vec = new Vector3D(0, 0, 1);
mb.SetVertex(0, new Vertex3D(vec, vec.Normalize(), Color.White, new Vector2D(0, 1)));
m.AddMeshBuffer(mb);
SceneNode me = device.SceneManager.AddMeshSceneNode(m, null, -1);
me.Position = new Vector3D(0, -1, 1);
Is my code.. doesnt seem to display anything though..
(btw am using C# Irrlicht, as you can see)
Look here for some inspiration:
Add your own cube node by rogerborg
Somebody might made it sticky or even part of the tutorials, I keep posting this link quit often
Add your own cube node by rogerborg
Somebody might made it sticky or even part of the tutorials, I keep posting this link quit often