Search found 25 matches

by benjani13
Tue Oct 12, 2010 3:45 pm
Forum: Beginners Help
Topic: How to inherit a GUI element?
Replies: 3
Views: 418

What you want to do is probably to derive from CGUIWindow. CGUIWindow derives from IGUIWindow, so to get a fully working window(while deriving from IGUIWindow) you need to implement everything that CGUIWindow implements, plus your extras.
The easiest solution would liekly be to copy the source from ...
by benjani13
Mon Oct 11, 2010 5:42 pm
Forum: Beginners Help
Topic: How to inherit a GUI element?
Replies: 3
Views: 418

How to inherit a GUI element?

Hi, I'd like to create an inventory for my game, by creating an inventoryWindow class, who derives from the IGUIWindow class. But I don't know how to create my own window inheriting of IGUIWindow.

I tried this:

class InventoryWindow : public irr::gui::IGUIWindow
{
/*
**
** code ...
by benjani13
Sat Oct 09, 2010 6:23 pm
Forum: Beginners Help
Topic: What simple and light GUI lib to use with Irrlicht?
Replies: 3
Views: 350

What simple and light GUI lib to use with Irrlicht?

Hi. The GUI system in Irrlicht is a little poor and... ugly. So I'd like a light and not too difficult GUI lib , with no huge function(but a minimum), completely configurable(if possible), and who integrate easily with Irrlicht.

Thank you if you have a link.
by benjani13
Tue Sep 21, 2010 3:55 pm
Forum: Beginners Help
Topic: How to modify a ISceneNodeAnimatorCollisionResponse
Replies: 3
Views: 462

1) I mean no collisions and no gravity, like if the collision animator doesn't exist anymore.
2) No I haven't called drop()

I create the collision animator like that:
scene::ISceneNodeAnimatorCollisionResponse* playerAnim;
if (selector)
{
playerAnim = smgr->createCollisionResponseAnimator ...
by benjani13
Mon Sep 20, 2010 5:32 pm
Forum: Beginners Help
Topic: How to modify a ISceneNodeAnimatorCollisionResponse
Replies: 3
Views: 462

None have an idea? :(
by benjani13
Sun Sep 19, 2010 10:50 am
Forum: Beginners Help
Topic: How to modify a ISceneNodeAnimatorCollisionResponse
Replies: 3
Views: 462

How to modify a ISceneNodeAnimatorCollisionResponse

Hello, I'd like to know how to modify a parameter of a
ISceneNodeAnimatorCollisionResponse during the rendering loop.
When I try to keep the pointer on the animator, and modify a parameter during the render loop like that:
animPointer->setGravity(core::vector3df(0, -10, 0));
, the animator doesn ...
by benjani13
Sat Sep 18, 2010 5:00 pm
Forum: Beginners Help
Topic: [Resolved]Manual scene node picking with a WOW-like camera
Replies: 2
Views: 916

Thank you very much! I can use this function for a ray/box detection:
pickedNode = collMan->getSceneNodeFromScreenCoordinatesBB(m_device->getCursorControl()->getPosition(), IDFlag_IsPickable);


And these for a ray/box and ray/triangle detection:
ray = collMan->getRayFromScreenCoordinates(m ...
by benjani13
Sat Sep 18, 2010 8:50 am
Forum: Beginners Help
Topic: [Resolved]Manual scene node picking with a WOW-like camera
Replies: 2
Views: 916

[Resolved]Manual scene node picking with a WOW-like camera

Hello, I'm making a camera like in World of Warcraft: a camera always fixing the player SceneNode and rotate around it, with a mouse button to rotate the camera and the player SceneNode, another mouse button to only rotate the camera, and the wheel to zoom.

Except some details, my camera is ...
by benjani13
Sun Aug 29, 2010 11:19 am
Forum: Beginners Help
Topic: A question about the perspective in Irrlicht
Replies: 3
Views: 440

A question about the perspective in Irrlicht

Hi! I have a question about the 3D perspective in Irrlicht. I find this scheme on a website who explain the 3D perspective:
http://img823.imageshack.us/img823/7215/pyramide.png

I'd like to find the angle formed by the lines leak, drawn in red on the image. Is a function in Irrlicht to get this ...
by benjani13
Fri Aug 27, 2010 3:51 pm
Forum: Beginners Help
Topic: How to modify the parameters of a collision animator?
Replies: 2
Views: 292

Up, please if you have an idea of how to modify a parameter of a collision animator. :(
by benjani13
Fri Aug 27, 2010 9:55 am
Forum: Beginners Help
Topic: How to modify the parameters of a collision animator?
Replies: 2
Views: 292

How to modify the parameters of a collision animator?

Hello, I have a model who is moving in the BSP map given with Irrlicht. I attached to the model an "ISceneNodeAnimatorCollisionResponse" and collisions work perfectly.
I'd like to modify one of the parameters of this collision animator during the execution of the program. But when I modify a ...
by benjani13
Thu Aug 26, 2010 9:18 pm
Forum: Beginners Help
Topic: Change the parameters of a collisionAnimator
Replies: 2
Views: 306

If modify whatever parameter of the collision animator in a function of my class like this:
m_playerCollisionAnimator->setGravity(core::vector3df(0, -10, 0));

There's no more collision, the collision animator doesn't work anymore.

Exactely, this happen when the modification is in during the ...
by benjani13
Thu Aug 26, 2010 9:14 am
Forum: Beginners Help
Topic: Problem with the mesh inclination
Replies: 10
Views: 1296

[This message is in French, to help mr.xyz who are French and have some difficulties with English]
mr.xyz, je pense que je vais pouvoir t'aider niveau compréhension, niveau math c'est pas sur^^

Tu veux faire quoi exactement?
by benjani13
Thu Aug 26, 2010 8:39 am
Forum: Beginners Help
Topic: Change the parameters of a collisionAnimator
Replies: 2
Views: 306

Change the parameters of a collisionAnimator

Hi, I have a CollisionResponseAnimator added to the player mesh who work perfectly. I'd like to change the animator parameters in a function of my eventReceiver but that doesn't work.

I create my animator like that:

scene::ISceneNodeAnimatorCollisionResponse* anim;
if (selector)
{
anim = smgr ...
by benjani13
Tue Aug 24, 2010 4:01 pm
Forum: Beginners Help
Topic: How to rotate a sceneNodeAnimator or redefine it.
Replies: 3
Views: 313

hybrid, the ellipsoid can have a different size in x and z, so if you rotate to 90° the x become y and y become x. If you look my screens my ellipsoid is bigger in x than in z. It's not a sphere.