Search found 16 matches

by Digan
Mon May 09, 2011 6:38 pm
Forum: Beginners Help
Topic: Gizmo SceneNode
Replies: 11
Views: 2781

Many thanks :)

It work.

Image

My Gizmo Example: gizmoTest.7z

It remains to scale the axes.
by Digan
Mon May 09, 2011 2:56 pm
Forum: Beginners Help
Topic: Gizmo SceneNode
Replies: 11
Views: 2781

Many thanks.
To render the gizmo in front of the object you could draw the gizmo after everything else in a separate pass
Do not quite understand. Can be an example?
by Digan
Mon May 09, 2011 2:50 pm
Forum: Beginners Help
Topic: Bug? Focused window ruins EGET_MENU_ITEM event?
Replies: 17
Views: 754

Maybe elements of the ContextMenu and elements of tables have the equal ID?
by Digan
Mon May 09, 2011 2:36 pm
Forum: Beginners Help
Topic: Gizmo SceneNode
Replies: 11
Views: 2781

Thanks for reply. Now the position of the arrows at the movement is correct. But I still have a few questions. 1. How to make the scale of the axis was always the same? Relative to the camera. vector3d<f32> CamFwd = vector3d<f32>((GizmoSceneNode->getAbsolutePosition()) - (Device->getSceneManager()->...
by Digan
Sun May 08, 2011 6:55 pm
Forum: Beginners Help
Topic: Gizmo SceneNode
Replies: 11
Views: 2781

And why do you insist on using an empty scene node as a base for the gizmo? Now only three arrows. I can't really decipher your last sentences, so I don't completely understand what you're asking there I asked for help to fix bugs. Now the position of the arrows at the beginning of the movement is ...
by Digan
Sun May 08, 2011 6:18 pm
Forum: Beginners Help
Topic: Gizmo SceneNode
Replies: 11
Views: 2781

Please test this sample.

gizmoTest.7z

I would be grateful for advice on fixing bugs.
by Digan
Sat May 07, 2011 3:50 pm
Forum: Beginners Help
Topic: Gizmo SceneNode
Replies: 11
Views: 2781

Thanks for reply. 1. Protip: Just saying "it's not working correctly" won't do a thing, please describe what is not working Bug with this: case EMIE_LMOUSE_PRESSED_DOWN : { LMouseButtonDown = true; SelectedNode = CollMan->getSceneNodeFromScreenCoordinatesBB(Device->getCursorControl()->getP...
by Digan
Sat May 07, 2011 12:39 pm
Forum: Beginners Help
Topic: Gizmo SceneNode
Replies: 11
Views: 2781

Gizmo SceneNode

Please help me to write a class of gizmo-manipulator. cgizmoscenenode.cpp #include "cgizmoscenenode.h" CGizmoSceneNode::CGizmoSceneNode(IrrlichtDevice *device, scene::ISceneNode* parent, scene::ISceneManager* mgr, s32 id) : scene::ISceneNode(parent, mgr, id) { #ifdef _DEBUG setDebugName(&q...
by Digan
Fri May 06, 2011 11:37 am
Forum: Beginners Help
Topic: Irrlicht Qt-widget in Linux
Replies: 4
Views: 1406

The problem is solved in the following code:

Code: Select all

setAttribute(Qt::WA_PaintOnScreen);
by Digan
Fri May 06, 2011 10:39 am
Forum: Beginners Help
Topic: Irrlicht Qt-widget in Linux
Replies: 4
Views: 1406

Did you create an opengl window? Yes. ... params.DriverType = EDT_OPENGL; ... device = createDeviceEx(params); You need to upgrade to a newer version of Qt4. That is a know bug on linux. I think 4.6, 4.7.0 and 4.7.1 are all effected. Try the newest version Qt 4.7.3. And yes it is a problem with win...
by Digan
Thu May 05, 2011 2:17 pm
Forum: Beginners Help
Topic: Irrlicht Qt-widget in Linux
Replies: 4
Views: 1406

Irrlicht Qt-widget in Linux

I wrote own Qt - widget for irrlicht. In Windows, all is OK. In Linux irrlicht - log display the following text: Irrlicht Engine version 1.7.2 Linux 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 06:07:29 UTC 2010 i686 Creating X window... Visual chosen: : 209 X Error: BadWindow (invalid Window paramet...
by Digan
Mon Apr 04, 2011 4:21 pm
Forum: Beginners Help
Topic: Irrlicht log in QTextEdit
Replies: 6
Views: 797

Thanks for reply. I tried again to create a event receiver class. #pragma once #include <irrlicht.h> #include <QTextEdit> using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace io; class MyEventReceiver : public IEventReceiver { public: MyEventReceiv...
by Digan
Mon Apr 04, 2011 3:02 pm
Forum: Beginners Help
Topic: Irrlicht log in QTextEdit
Replies: 6
Views: 797

Look carefully, you are NOT "listening" for an Irrlicht event, but for a Qt event and then when this Qt event triggers, you "generate" an Irrlicht event using device->postEventFromUser(irrEvent). Yes. You are right. This is an event from the user. Can I get current event of engi...
by Digan
Mon Apr 04, 2011 2:41 pm
Forum: Beginners Help
Topic: Irrlicht log in QTextEdit
Replies: 6
Views: 797

First off, if you just wanna display the text to user, better use a QLabel insted of QTextEdit. No. This is needed for log in an editor. http://s009.radikal.ru/i307/1104/c8/d2f80e917b14.png QTextEdit is well applied for this purpose. Second, unless I'm misunderstanding you, it seems to me you dont ...
by Digan
Mon Apr 04, 2011 2:04 pm
Forum: Beginners Help
Topic: Irrlicht log in QTextEdit
Replies: 6
Views: 797

Irrlicht log in QTextEdit

Hello I wrote a Qt-widget based on this topic . Render works fine. Now I want to take the irrlicht - log through a QTextEdit - object. I know how to display the log on messageBox through OnEvent in EventReceiver. bool EventReceiver::OnEvent(const irr::SEvent &event) { switch(event.EventType) { ....