Using 3d models (.obj) AND materials (.mtl) in an opengl application
-
Laumaya, I am trying to build glc_lib and the examples. The main glc library builds fine. But when I tried to build example09, I get a linker error. Any idea? I have the .pro file configured to find the include files and libs.
@release/glwidget.o:glwidget.cpp:(.text+0x18c): undefined reference to
_imp___ZN20GLC_3DViewCollection11boundingBoxEv' release/glwidget.o:glwidget.cpp:(.text+0x600): undefined reference to
_imp___ZN20GLC_3DViewCollection11boundingBoxEv'
release/glwidget.o:glwidget.cpp:(.text+0x7d4): undefined reference to_imp___ZN9GLC_3DRepaSERKS_' release/glwidget.o:glwidget.cpp:(.text+0x11fb): undefined reference to
_imp___ZN20GLC_3DViewCollection11boundingBoxEv'@ -
It seems that you have not installed GLC_lib correctly.
Please, check the help page of GLC_lib : "http://www.glc-lib.net/help.php":http://www.glc-lib.net/help.php -
ZapB, I tried Qt3d and the model viewer example directly loaded the obj file along with mtl files! Thanks!
I however had some difficulty loading the 3ds format of the same model though. -
[quote author="laumaya" date="1300786694"]It seems that you have not installed GLC_lib correctly.
Please, check the help page of GLC_lib : "http://www.glc-lib.net/help.php":http://www.glc-lib.net/help.php
[/quote]Thanks! I was using qt creator and I didn't realize that I had forgotten the make install.
Another quick question. Can I load animated models too using GLC_lib? -
[quote author="hurricane" date="1313478252"]hi karthik,
i have just started learning Qt.I m getting problems in loading 3D textures from obj files.Can u please send me some examples showing how to load 3d textures from obj files...
Regards
hurr[i]cane [/quote]You can use both Qt 3D and GLC_Lib as mentioned. Both these have examples. I was able to directly load them using the examples.
-
[quote author="hurricane" date="1313562019"]I want to load 3D models and textures for symbian 3 devices using Qt with openGL ES 1.1 . Can u provide some example for that...
Regards
hurr[i]cane[/quote]Ah, for symbian... Then I guess you can't use GLC Lib. (laumaya?)
However I think you should be able to use Qt 3d. I haven't tried it on symbian. So I don't have exact pointers for you there.