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]
Irrlicht and Nokia Qt
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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.
It's at least possible to use Irrlicht on Symbian, there has been a port some month ago already.
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
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
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 :
in line :
Writes addSceneNode is not a member of irr::scene::ISceneManager
also here i got an error
in line :
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();
}
Code: Select all
scene::ISceneNode* node = manager->addTestSceneNode();
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);
}
Code: Select all
device->getVideoDriver()->OnResize( size );
just follow this thread it works http://irrlicht.sourceforge.net/phpBB2/ ... ichtwidget
i'm using that for some time now
i'm using that for some time now
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info