Irrlicht and Nokia Qt

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
irrspring
Posts: 10
Joined: Tue Oct 05, 2010 6:38 am

Irrlicht and Nokia Qt

Post by irrspring »

Hello
I'm Irrlicht beginner and I wish to learn Irrlicht by creating games for Nokia mobile devices.
I see that Nokia provide Qt SDK and I see that Nokia main platform is OS called Symbian. As I see that Qt can enforce OpenGL ES API .
Also as I read about Irrlicht it's a multi platform engine , so I was interesed in can I provide Irrlicht in Qt creator , and how.
How can I setup Qt project to use Irrlicht engine ?
PS.
I read this thread http://irrlicht.sourceforge.net/phpBB2/ ... ichtwidget it's looks helpful but I don't now how to include Irrlicht in Qt , how to setup project.
I have Nokia N95 device for test.

Thanks

[/url]
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Once you have set up a project for your qt things, you just add the .lib and include from Irrlicht and it should compile. If you have an ogl-es widget, you can pass this into Irrlicht as a windowid. You need to use the ogl.-es branch of Irrlicht, though, because the main version does not have the OpenGL-ES included so far. I'm also not sure if the window passing works for ogl-es, as this depends on the OS and the way that window creation is handled there. You need to give it a try and report back if it does not work.
It's at least possible to use Irrlicht on Symbian, there has been a port some month ago already.
irrspring
Posts: 10
Joined: Tue Oct 05, 2010 6:38 am

Post by irrspring »

Thanks
I find this thread : http://irrlicht.sourceforge.net/phpBB2/ ... ight=nokia
I download a project files and I see in source there is there is sub folder
\irrlichtfors60\irrlichtfors60\source\Irrlicht\S60
But how can I setup this into my Nokia Qt project
irrspring
Posts: 10
Joined: Tue Oct 05, 2010 6:38 am

Post by irrspring »

I manage to include irrlicht 1.7.1 into Qt creator ( I followed by this example http://de.wikibooks.org/wiki/Irrlicht_- ... einrichten ) , now I setup my project as widget and I add into .pro all LIB include paths.
Now it's seams all works well, everything are included now , so I was jumpt into my first Irrlicht example project and I chose thi example : http://irrlicht.sourceforge.net/phpBB2/ ... ichtwidget , no there problems come :
I got error :

Code: Select all

void setupIrrlicht( IrrlichtDevice* device )
{
    // Get the scene manager
    scene::ISceneManager* manager = device->getSceneManager();

    // Create a small box
    scene::ISceneNode* node = manager->addTestSceneNode();
    
    node->setMaterialFlag( video::EMF_LIGHTING, false );

    // Create a camera to view the box
    scene::ICameraSceneNode* cam = manager->addCameraSceneNode();

    cam->setPosition( core::vector3df(100,100,0) );
    cam->setTarget( core::vector3df(0,0,0) );

    scene::ISceneNodeAnimator* anim = manager->createFlyCircleAnimator( core::vector3df(0,0,0), 20 );
    node->addAnimator(anim);
    anim->drop();
}
in line :

Code: Select all

 scene::ISceneNode* node = manager->addTestSceneNode();
Writes addSceneNode is not a member of irr::scene::ISceneManager

also here i got an error

Code: Select all

void QIrrlichtWidget::resizeEvent( QResizeEvent* event )
{
    if ( device != 0 )
    {
        irr::core::dimension2d<int> size;
        size.Width = event->size().width();
        size.Height = event->size().height();
        device->getVideoDriver()->OnResize( size );

        irr::scene::ICameraSceneNode *cam = device->getSceneManager()->getActiveCamera();
        if ( cam != 0 )
        {
            cam->setAspectRatio( size.Height / size.Width );
        }
    }
    QWidget::resizeEvent(event);
}
in line :

Code: Select all

 device->getVideoDriver()->OnResize( size );
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Maybe wrong includes, or you messed up the namespaces.
irrspring
Posts: 10
Joined: Tue Oct 05, 2010 6:38 am

Post by irrspring »

I use above example, so I will be appreciate for any detail help of how implement Irrlicht on Qt Creator properly and run the same on device.
Thanks
irrspring
Posts: 10
Joined: Tue Oct 05, 2010 6:38 am

Post by irrspring »

So no one know how setup irrlich for Ot !?
irrspring
Posts: 10
Joined: Tue Oct 05, 2010 6:38 am

Post by irrspring »

UP :D
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

just follow this thread it works http://irrlicht.sourceforge.net/phpBB2/ ... ichtwidget

i'm using that for some time now
Post Reply