Search found 5 matches

by Ryssus
Sun Sep 19, 2010 10:36 am
Forum: Beginners Help
Topic: Rotation and movement problem.
Replies: 3
Views: 1344

I am not really sure if these response is what I wanted. I know functions getRotation() and setRotation(). But what if I apply some keybord in way that W and S is moving forward and backward when A and D is turning left and right. When I press W I will translate (setPosition) for example 10 units in...
by Ryssus
Sun Sep 19, 2010 10:00 am
Forum: Beginners Help
Topic: Rotation and movement problem.
Replies: 3
Views: 1344

Rotation and movement problem.

I recently tried to write code for moving my camera. I read some old articles about using quaternions or transformation matrix, but none of them works for me. Can someone post code for rotating and moving objects? For example I need a function which takes 2 arguments: Move(node, vector) or Rotate(no...
by Ryssus
Fri Sep 17, 2010 12:33 pm
Forum: Beginners Help
Topic: Problems with loading x files
Replies: 5
Views: 323

Yes, that's what I wanted to say. But my scene is static, so the code I posted earlier should work, but it doesn't.
by Ryssus
Fri Sep 17, 2010 11:48 am
Forum: Beginners Help
Topic: Problems with loading x files
Replies: 5
Views: 323

In irrlicht media folder is file dwarf.x. To load this file I simple use AnimatedMesh* mesh = smgr->getMesh("xxx/irrlicht-1.7.1/media/dwarf.x"); scene::IMeshSceneNode* Model = 0; Model = smgr->addMeshSceneNode(mesh->getMesh(0)); All works fine, but dwarf doesn't move and it is what I wante...
by Ryssus
Fri Sep 17, 2010 10:39 am
Forum: Beginners Help
Topic: Problems with loading x files
Replies: 5
Views: 323

Problems with loading x files

Hi. I tried to load x file exported from blender. When I use meshviewer everything loads fine, the model looks just as I wanted so as all the textures. But when I try to load it by myself, everything is messed up. Textures are on opposite sites of walls and it doesn't look like one I made. What am I...