camera looking to one point in 3D

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
asanbr
Posts: 5
Joined: Mon Jun 18, 2007 3:42 pm

camera looking to one point in 3D

Post by asanbr »

Hi guys,

I don't speak english, so, forgive me for any error's! I'm learning C++ and Irrlicht. I want to make a program in 3D to show an machine, so the camera can round and zoom it, but ever pointing to the center of the machine but I don't know to do it. I saw the cameras in Irrlicht and I guess that, I need to code this function.

I tried to look for other topic with this help, but, i don't know how to find in english what I want.

Thank you for your consideration,

AsA.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

camera->setTarget(here you put the position of the node, or you can just use node->getPosition());

Good luck with irrlicht it is very easy! :D
asanbr
Posts: 5
Joined: Mon Jun 18, 2007 3:42 pm

Post by asanbr »

BlindSide wrote:camera->setTarget(here you put the position of the node, or you can just use node->getPosition());

Good luck with irrlicht it is very easy! :D
BlindSide, thank you very much for the tip! I'll try this! So, I get your MSN, I'll add you.
asanbr
Posts: 5
Joined: Mon Jun 18, 2007 3:42 pm

Post by asanbr »

BlindSide, I'm moving to Linux/ubuntu and now, I'm using code::blocks now. Every time that I'm trying to compile and execute the build message show the following error:

:: === Irrlicht Example 04 Movement, default ===
main.cpp:(.text+0x79):: undefined reference to `irr::createDevice(irr::video::E_DRIVER_TYPE, irr::core::dimension2d<int> const&, unsigned int, bool, bool, bool, irr::IEventReceiver*, char const*)'
:: === Build finished: 1 errors, 0 warnings ===

What can I do? :)

thanks

asanbr
asanbr
Posts: 5
Joined: Mon Jun 18, 2007 3:42 pm

Post by asanbr »

There's something else!

I ran the irrlicht's example 04 on the Visual Studio 2005. I saw that the camera looked at a specific point, but i can move it to look to the other points and stuff. I want it to point to that specific point all the time, no matter how I move the algles. How can I dio that?
Robert Y.
Posts: 212
Joined: Sun Jan 28, 2007 11:23 pm

Post by Robert Y. »

I want it to point to that specific point all the time, no matter how I move the algles. How can I dio that?
Like Blindside said: use camera->setTarget()
Post Reply