Search found 10 matches

by cdesseno
Sat Mar 07, 2009 7:11 pm
Forum: Beginners Help
Topic: Questions about the ->drop() function
Replies: 1
Views: 200

Questions about the ->drop() function

I'm not sure to what objects I can apply de drop() function. Foe e.g if I have an int functions and I return a value, all the items are dropped themselves?

Thanks in advance.
by cdesseno
Mon Dec 29, 2008 3:50 pm
Forum: Beginners Help
Topic: Image in Background?
Replies: 5
Views: 434

1) If you mean skybox use this: scene::ISceneNode* SkyBox = smgr->addSkyBoxSceneNode( driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg"), driver->getTexture("data/images/sky.jpg"), dr...
by cdesseno
Wed Dec 24, 2008 7:24 pm
Forum: Beginners Help
Topic: Collision "jump"
Replies: 1
Views: 472

Collision "jump"

The collision system works ok. I wonder when the node "jumps" over walls. I have a node that is moved over the x and z directions, but sometimes it jumps (moving over y). When this happens? Another little question: smgr->createCollisionResponseAnimator returns something when it collides? I...
by cdesseno
Mon Dec 22, 2008 6:54 pm
Forum: Beginners Help
Topic: Camera rotation
Replies: 11
Views: 545

Searching I found this and works!

Code: Select all

core::vector3df RelativeToCar(0, 6, -10);
car->getAbsoluteTransformation().transformVect(RelativeToCar);
cam->setPosition(RelativeToCar);
cam->setTarget(car->getAbsolutePosition()); 
by cdesseno
Mon Dec 22, 2008 5:42 pm
Forum: Beginners Help
Topic: Camera rotation
Replies: 11
Views: 545

If I can't I will prefer the first option :lol:
by cdesseno
Mon Dec 22, 2008 1:03 am
Forum: Beginners Help
Topic: Camera rotation
Replies: 11
Views: 545

Sort of. I really doubt that he wants the camera to follow the car as if it were mounted rigidly from a transparent boom sticking out of the rear of the car. He probably wants some smoothing so that if the user makes a hard turn you would see the side of the car for a few seconds, and then the came...
by cdesseno
Sun Dec 21, 2008 11:19 pm
Forum: Beginners Help
Topic: Camera rotation
Replies: 11
Views: 545

Testing the code: scene::ICameraSceneNode * cam = smgr->addCameraSceneNode(0, core::vector3df(0, 0, 0), core::vector3df(0, 0, 0)); cam->bindTargetAndRotation(1); cam->setAutomaticCulling(scene::EAC_FRUSTUM_BOX); cam->setRotation(car->getRotation()); cam->setPosition(core::vector3df(carPosition.X, ca...
by cdesseno
Sun Dec 21, 2008 9:26 pm
Forum: Beginners Help
Topic: Camera rotation
Replies: 11
Views: 545

Thanks:D Now I have this, but it is not working as I expected... scene::ICameraSceneNode * cam = smgr->addCameraSceneNode(0, core::vector3df(0, 0, 0), core::vector3df(0, 0, 0)); cam->bindTargetAndRotation(1); In the loop: cam->setPosition(core::vector3df(carPosition.X, carPosition.Y + 5.0f, carPosit...
by cdesseno
Sun Dec 21, 2008 7:59 pm
Forum: Beginners Help
Topic: Camera rotation
Replies: 11
Views: 545

Camera rotation

I searched over the forums but I only found something about the bindTargetAndRotation() function. I move a car with the keys, so I want a camera following it. In the loop: cam->setTarget(carPosition); cam->setPosition(core::vector3df(carPosition.X - 10.0f, carPosition.Y + 10.0f, carPosition.Z)); cam...
by cdesseno
Sun Dec 14, 2008 8:05 pm
Forum: Beginners Help
Topic: "DIRECT3D9 Driver was not compiled into this dll"
Replies: 1
Views: 1030

"DIRECT3D9 Driver was not compiled into this dll"

That is the message I have using the DIRECT3D9 Driver for the second tutorial. Using OpenGl works. What can I do to solve the problem?

Thanks.