Irrlicht / Qt4 integration + QtCreator
Re: Irrlicht / Qt4 integration + QtCreator
i am using visual studio 2008 to do it, not code block.. can you help me? i really need it..
Nobody is Perfect!!
Re: Irrlicht / Qt4 integration + QtCreator
you'd need to state the problems you are having before anyone can help you
Re: Irrlicht / Qt4 integration + QtCreator
yes it works on windowsYankzzDev wrote:it's work on windows? i want integration to windows
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
Re: Irrlicht / Qt4 integration + QtCreator
thank you for the reply...
i got a small error
cannot convert parameter 1 from 'QString' to 'const irr::io::path &'
because i have successful integrated with windows..
n i try to open a model example and import it to irrlicht engine..
i use the qt QFileDialog::getOpenFileName function to open the model file..
here is the code:
and at the irrlicht code, i change this code:
to this code
and got this error
Can you help me solve this problem?
i got a small error
cannot convert parameter 1 from 'QString' to 'const irr::io::path &'
because i have successful integrated with windows..
n i try to open a model example and import it to irrlicht engine..
i use the qt QFileDialog::getOpenFileName function to open the model file..
here is the code:
Code: Select all
QString filename = QFileDialog::getOpenFileName(this);
ui->label->setText(filename);
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh("sydney.md2");
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh(filename);
and got this error
Code: Select all
1>.\mainwindow.cpp(43) : error C2664: 'irr::scene::IAnimatedMesh *irr::scene::ISceneManager::getMesh(const irr::io::path &)' : cannot convert parameter 1 from 'QString' to 'const irr::io::path &'
1> Reason: cannot convert from 'QString' to 'const irr::io::path'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>Build log was saved at "file://d:\QT Project\1011irrlichtqt\debug\BuildLog.htm"
Nobody is Perfect!!
Re: Irrlicht / Qt4 integration + QtCreator
well... as your compiler tells you
you're passing the getMesh function a QString (filename) when it doesn't accept a QString, it accepts an io::path
you could pass qPrintable (filename) to getMesh instead of just filename and it should work
you're passing the getMesh function a QString (filename) when it doesn't accept a QString, it accepts an io::path
you could pass qPrintable (filename) to getMesh instead of just filename and it should work
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh(qPrintable (filename));
Re: Irrlicht / Qt4 integration + QtCreator
aanderse wrote:well... as your compiler tells you
you're passing the getMesh function a QString (filename) when it doesn't accept a QString, it accepts an io::path
you could pass qPrintable (filename) to getMesh instead of just filename and it should work
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh(qPrintable (filename));
thank you very much.. it's work!!
Nobody is Perfect!!
Re: Irrlicht / Qt4 integration + QtCreator
hmmm, i have another question...
after i load the model, it's displayed on the screen, but i load another model, it's displayed 2 model with selected one and previous one...
how i can clear the previous one?
after i load the model, it's displayed on the screen, but i load another model, it's displayed 2 model with selected one and previous one...
how i can clear the previous one?
Nobody is Perfect!!
Re: Irrlicht / Qt4 integration + QtCreator
Read the F***** API and get some c++ skillsYankzzDev wrote:hmmm, i have another question...
after i load the model, it's displayed on the screen, but i load another model, it's displayed 2 model with selected one and previous one...
how i can clear the previous one?
Not trying to be rude, but basically it seams that we're programming for you.
Working on game: Marrbles (Currently stopped).
Re: Irrlicht / Qt4 integration + QtCreator
can you please post your code so i can understand what you mean?YankzzDev wrote:hmmm, i have another question...
after i load the model, it's displayed on the screen, but i load another model, it's displayed 2 model with selected one and previous one...
how i can clear the previous one?
Re: Irrlicht / Qt4 integration + QtCreator
the rude one is you... i not asking you to programming for me.....serengeor wrote:Read the F***** API and get some c++ skillsYankzzDev wrote:hmmm, i have another question...
after i load the model, it's displayed on the screen, but i load another model, it's displayed 2 model with selected one and previous one...
how i can clear the previous one?
Not trying to be rude, but basically it seams that we're programming for you.
Because i don't understand so i ask..
i am not expert like you(C++ Expert maybe than C++ god)..
i am newbie in c++ and irrlicht engine too...
my basic languange is vb.net..
if i don't understand, so i ask? it's fault?
Nobody is Perfect!!
Re: Irrlicht / Qt4 integration + QtCreator
i am so bad luck.. my hard disk is damaged yesterday.. all my files are gone.. so i can't not upload my code to you now.. i will upload it after i fix my computer.. thank's for your helpaanderse wrote:can you please post your code so i can understand what you mean?YankzzDev wrote:hmmm, i have another question...
after i load the model, it's displayed on the screen, but i load another model, it's displayed 2 model with selected one and previous one...
how i can clear the previous one?
Nobody is Perfect!!
Re: Irrlicht / Qt4 integration + QtCreator
here is my code...
http://www.2shared.com/file/U5jXL-fP/Vi ... nning.html
i wish to ask about collada files..
do you try to load a collada files?
i export a collada files using sketch up 8, and show in irrlicht engine.. but it's failed
and i try using sketch up 7, it's can load it, but not exactly what i expected..
do you have any solution?
http://www.2shared.com/file/U5jXL-fP/Vi ... nning.html
i wish to ask about collada files..
do you try to load a collada files?
i export a collada files using sketch up 8, and show in irrlicht engine.. but it's failed
and i try using sketch up 7, it's can load it, but not exactly what i expected..
do you have any solution?
Nobody is Perfect!!
Re: Irrlicht / Qt4 integration + QtCreator
yes it does. Qt is cross platform.YankzzDev wrote:it's work on windows? i want integration to windows
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
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Irrlicht / Qt4 integration + QtCreator
Due to element ordering changes in the last few versions of sketchup, the current Irrlicht loader cannot open those collada files properly. Next version wil have a fixed loader.
Re: Irrlicht / Qt4 integration + QtCreator
hybrid wrote:Due to element ordering changes in the last few versions of sketchup, the current Irrlicht loader cannot open those collada files properly. Next version wil have a fixed loader.
tq admin
Nobody is Perfect!!