Search found 148 matches
- Tue Jan 11, 2011 5:06 pm
- Forum: Beginners Help
- Topic: Translation and rotation
- Replies: 39
- Views: 4474
Oh, you must put the draw3DLine inside the render loop. This is not a scene node by itself, but needs to be called each frame :wink: #include <irrlicht.h> using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui; #ifdef _IRR_WI...
- Tue Jan 11, 2011 3:28 pm
- Forum: Beginners Help
- Topic: Translation and rotation
- Replies: 39
- Views: 4474
SMaterial m; m.Lighting=false; driver->setMaterial(m); driver->setTransform(video::ETS_WORLD, core::matrix4()); driver->draw3DLine(vector3df(100,100,100),vector3df(0,500,0),SColor(255,255,0,0)); ICameraSceneNode *camera = smgr->addCameraSceneNodeFPS(0, 100.0f, 0.5f); camera->setPosition(vector3df(0...
- Tue Jan 11, 2011 1:51 pm
- Forum: Beginners Help
- Topic: A question about CopperCube
- Replies: 0
- Views: 322
A question about CopperCube
I have created a cube and add some behaviour for it, such as rotation and following a path. I can see the cube rotate and follow a path by pressing Ctrl+F10 Now, I export the whole scene to a *.irr file to be loaded later by smgr->loadScene() in my program. However, when I run my program, the cube d...
- Tue Jan 11, 2011 1:24 pm
- Forum: Beginners Help
- Topic: Translation and rotation
- Replies: 39
- Views: 4474
the code looks fine too me. One thing - propebly not the issue - but ...getAbsolutePosition(), SelectedNode->getAbsolutePosition() + vector3df(0,500,0),... Also make sure backface and frontface culling is off. (am a noob 8) so hope I am helping here) Oops....thanks for pointing out that issue... Bu...
- Tue Jan 11, 2011 7:57 am
- Forum: Beginners Help
- Topic: Translation and rotation
- Replies: 39
- Views: 4474
at this page you can find tutorials http://irrlicht.sourceforge.net/tutorials.html next link is also good for starters http://www.irrlicht3d.org/wiki/ for more advanced info there is http://irrlicht.sourceforge.net/docu/index.html these are the functions to change to pos and rot ISceneNode::setPosi...
- Mon Jan 10, 2011 5:19 pm
- Forum: Beginners Help
- Topic: Translation and rotation
- Replies: 39
- Views: 4474
Translation and rotation
![Image](http://img.photobucket.com/albums/v252/wongsiwai/ScreenHunter_02Jan110112.jpg)
How to make those X, Y, Z axes visible when I translate or rotate a scene node?
How can I translate or rotate it according to the axis?
Could someone give me some example code?
- Mon Jan 10, 2011 9:16 am
- Forum: Beginners Help
- Topic: Tutorial 15, how to create my own *.irr?
- Replies: 3
- Views: 336
- Mon Jan 10, 2011 8:36 am
- Forum: Beginners Help
- Topic: Tutorial 15, how to create my own *.irr?
- Replies: 3
- Views: 336
Tutorial 15, how to create my own *.irr?
I am now learning the tutorial 15 and notice that the scene is generated by the loadScene() method. It seems that there are one terrain node and 2 objects moving in the center in the file called example.irr. I am wondering if there is any software allowing me to take a look in this irr file and cont...
- Sat Jan 08, 2011 7:40 am
- Forum: Beginners Help
- Topic: Collision between scene nodes
- Replies: 1
- Views: 278
Collision between scene nodes
I am now learning tutorial 07 and I notice that the camera cannot move through walls because of the collision response animator. I am wondering if I can use this animator to handle the collision between scene nodes other than camera. That is, if there are 2 scene nodes on the screen, how to move one...
- Mon Jan 03, 2011 5:33 pm
- Forum: Beginners Help
- Topic: Could anyone please help me debug?
- Replies: 3
- Views: 705
Thanks for your reply.
In fact, I just copy and paste the code provided by someone in this forum.
I think I have solved the problem by deleting
Thanks ![Very Happy :D](./images/smilies/icon_biggrin.gif)
In fact, I just copy and paste the code provided by someone in this forum.
I think I have solved the problem by deleting
Code: Select all
return (SelectedNode != 0);
![Very Happy :D](./images/smilies/icon_biggrin.gif)
- Mon Jan 03, 2011 4:40 pm
- Forum: Beginners Help
- Topic: Could anyone please help me debug?
- Replies: 3
- Views: 705
Could anyone please help me debug?
I do not know why I cannot press buttons anymore after I press "Translate" button or 'm' key. Please refer to the following code: #include <irrlicht.h> using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui; #ifdef _...
- Mon Jan 03, 2011 3:27 pm
- Forum: Beginners Help
- Topic: getPosition() and getAbsolutePosition()
- Replies: 3
- Views: 2087
getPosition() and getAbsolutePosition()
I do not quite understand the difference between those 2 APIs.
In ISceneNode.h, it states that getAbsolutePosition() is used to retrieve the world coordinates, while getPosition() is used to get the coordinates relative to the parent.
What is the meaning of world coordinates?
In ISceneNode.h, it states that getAbsolutePosition() is used to retrieve the world coordinates, while getPosition() is used to get the coordinates relative to the parent.
What is the meaning of world coordinates?
- Sat Nov 06, 2010 4:34 pm
- Forum: Beginners Help
- Topic: Problems with Tutorial 09
- Replies: 2
- Views: 265
- Sat Nov 06, 2010 2:44 pm
- Forum: Beginners Help
- Topic: Problems with Tutorial 09
- Replies: 2
- Views: 265
Problems with Tutorial 09
I find the camera quite inconvenient to explore the whole 3D environment. For Maya camera, using arrow keys to control camera movement is not allowed. It is not so user friendly if I want to go deeper in the scene (z-axis). For First person view, although this time I can use arrow keys, I need to pr...
- Tue Nov 02, 2010 1:49 pm
- Forum: Beginners Help
- Topic: How to elaborate the GUI using GUI Editor
- Replies: 5
- Views: 494