Search found 9 matches

by WLGfx
Sat Jul 13, 2013 9:13 pm
Forum: Beginners Help
Topic: Qt Quick 2 integration
Replies: 3
Views: 2537

Re: Qt Quick 2 integration

I'm about to have a go with Qt5 and Irrlicht so I'll be keeping an eye on this thread in case I end up having issues. The built in GUI just hasn't got everything I'm after.
by WLGfx
Sat Jun 15, 2013 12:59 am
Forum: Beginners Help
Topic: Camera FPS animator changing values?
Replies: 1
Views: 268

Re: Camera FPS animator changing values?

After another thorough search I managed to figure it out by grabbing the list of animators and casting.

core::list<scene::ISceneNodeAnimator*>::ConstIterator anims
=camera->getAnimators().begin();
scene::ISceneNodeAnimatorCameraFPS *anim
=(scene::ISceneNodeAnimatorCameraFPS*)*anims;
anim ...
by WLGfx
Fri Jun 14, 2013 11:50 pm
Forum: Beginners Help
Topic: Camera FPS animator changing values?
Replies: 1
Views: 268

Camera FPS animator changing values?

I've added to my editor an FPS camera which I can switch on and off whether the right mouse button is being used. But in the editor I need to change the movement speed of the camera depending on the size of the scene.

How do I do one of these?

1. Grab the animator from the camera and change the ...
by WLGfx
Fri Jun 07, 2013 9:16 pm
Forum: Beginners Help
Topic: GUI alternatives...
Replies: 13
Views: 2630

Re: GUI alternatives...

I've had partial success with Qt on Linux but when it came to Windows I had a few issues. Might go back to it some time and try again.

There's always wxWidgets too which I haven't yet tried out.
by WLGfx
Sat Jun 01, 2013 7:42 pm
Forum: Beginners Help
Topic: IGUIElement.remove() causes segmentation fault
Replies: 3
Views: 609

Re: IGUIElement.remove() causes segmentation fault

Yeah, it was late when I figured it out. Browsing through and came across it sometime yesterday.

The final piece to the code:

// catch the windows close event to safely remove the handler too

if ( event.GUIEvent.EventType == gui::EGET_ELEMENT_CLOSED )
{
if ( id == 9 )
{
il.remove_gui(1 ...
by WLGfx
Fri May 31, 2013 11:27 pm
Forum: Beginners Help
Topic: IGUIElement.remove() causes segmentation fault
Replies: 3
Views: 609

Re: IGUIElement.remove() causes segmentation fault

Figured it out after more testing.

I replaced:

gui::IGUIElement *parent = gui->addGUIElement(file,0);

if ( !gui->loadGUI(file) )
{
// failed to load the gui file then remove the dummy parent

parent->remove();
}
else
{
// add it to the handlers list

events->gui_handlers.push_back ...
by WLGfx
Fri May 31, 2013 12:07 pm
Forum: Beginners Help
Topic: IGUIElement.remove() causes segmentation fault
Replies: 3
Views: 609

IGUIElement.remove() causes segmentation fault

I'm almost finished with implementing my own GUI handler. Using the GUI editor to generate xml files, my code loads them up when needed and during the event receiver function will call a list of gui handler callbacks. However, when I come to remove a loaded GUI (I've given it a dummy parent element ...
by WLGfx
Tue Dec 04, 2012 4:27 am
Forum: Beginners Help
Topic: My IEventReceiver is just not working...
Replies: 4
Views: 706

Re: My IEventReceiver is just not working...

gc.irr_init(800,600) initialises the event receiver in another class...

But after adding that silly gc.device->run() it all kicked in perfect! I assumed device->run() just returned a flag saying everything was working okay... I'll be checking the source. :-(

I knew I'd feel daft because of ...
by WLGfx
Mon Dec 03, 2012 7:37 pm
Forum: Beginners Help
Topic: My IEventReceiver is just not working...
Replies: 4
Views: 706

My IEventReceiver is just not working...

I'm currently on Linux and was using 1.7.3 (which didn't work either) and now on 1.8 and using Code::Blocks. I've even just copied one of the examples and threw in all my source files into the project so that it uses all the correct settings. The projects settings do pick up the local include and ...