Show Mesh, a mesh viewer using Qt [v1.1 Released!]

A place to show off your latest screenshots and for people to comment on them. Only start a new thread here if you have some nice images to show off!
User avatar
FrameFever
Platinum Sponsor
Platinum Sponsor
Posts: 414
Joined: Fri Apr 27, 2007 10:05 am

Post by FrameFever »

I got I to run... also in Visual Studio, but I had to make many changes in the sourceode.

flyue
Gnoblar
Posts: 2
Joined: Mon Sep 24, 2007 10:58 am

This program can not show OGRE mesh 1.4 version!!!

Post by flyue »

This program can not show OGRE mesh 1.4 version!!!
This will lead to mistakes.

User avatar
xibo
Gnoblar
Posts: 16
Joined: Wed Oct 10, 2007 9:26 pm
Location: Tyrol, Austria

Post by xibo »

I compiled the svn version and started it, but I got a seg fault..

Ogre 1.4.5
Qt 4.3.1
Graphics Intel 915 gm
processor intel pentium m 1.73ghz
linux version 2.6.22
suse 10.2

The ogre demos are working fine..
20:23:50: Creating resource group General
20:23:50: Creating resource group Internal
20:23:50: Creating resource group Autodetect
20:23:50: SceneManagerFactory for type 'DefaultSceneManager' registered.
20:23:50: Registering ResourceManager for type Material
20:23:50: Registering ResourceManager for type Mesh
20:23:50: Registering ResourceManager for type Skeleton
20:23:50: MovableObjectFactory for type 'ParticleSystem' registered.
20:23:50: OverlayElementFactory for type Panel registered.
20:23:50: OverlayElementFactory for type BorderPanel registered.
20:23:50: OverlayElementFactory for type TextArea registered.
20:23:50: Registering ResourceManager for type Font
20:23:50: ArchiveFactory for archive type FileSystem registered.
20:23:50: ArchiveFactory for archive type Zip registered.
20:23:50: DevIL version: Developer's Image Library (DevIL) 1.6.8pre Sep 7 2007
20:23:50: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
20:23:50: DDS codec registering
20:23:50: Registering ResourceManager for type HighLevelGpuProgram
20:23:50: Registering ResourceManager for type Compositor
20:23:50: MovableObjectFactory for type 'Entity' registered.
20:23:50: MovableObjectFactory for type 'Light' registered.
20:23:50: MovableObjectFactory for type 'BillboardSet' registered.
20:23:50: MovableObjectFactory for type 'ManualObject' registered.
20:23:50: MovableObjectFactory for type 'BillboardChain' registered.
20:23:50: MovableObjectFactory for type 'RibbonTrail' registered.
20:23:50: Loading library /usr/lib/OGRE/RenderSystem_GL.so
20:23:50: Installing plugin: GL RenderSystem
20:23:50: OpenGL Rendering Subsystem created.
20:23:50: Plugin successfully installed
20:23:50: Loading library /usr/lib/OGRE/Plugin_ParticleFX.so
20:23:50: Installing plugin: ParticleFX
20:23:50: Particle Emitter Type 'Point' registered
20:23:50: Particle Emitter Type 'Box' registered
20:23:50: Particle Emitter Type 'Ellipsoid' registered
20:23:50: Particle Emitter Type 'Cylinder' registered
20:23:50: Particle Emitter Type 'Ring' registered
20:23:50: Particle Emitter Type 'HollowEllipsoid' registered
20:23:50: Particle Affector Type 'LinearForce' registered
20:23:50: Particle Affector Type 'ColourFader' registered
20:23:50: Particle Affector Type 'ColourFader2' registered
20:23:50: Particle Affector Type 'ColourImage' registered
20:23:50: Particle Affector Type 'ColourInterpolator' registered
20:23:50: Particle Affector Type 'Scaler' registered
20:23:50: Particle Affector Type 'Rotator' registered
20:23:50: Particle Affector Type 'DirectionRandomiser' registered
20:23:50: Particle Affector Type 'DeflectorPlane' registered
20:23:50: Plugin successfully installed
20:23:50: Loading library /usr/lib/OGRE/Plugin_BSPSceneManager.so
20:23:50: Installing plugin: BSP Scene Manager
20:23:50: Plugin successfully installed
20:23:50: Loading library /usr/lib/OGRE/Plugin_OctreeSceneManager.so
20:23:50: Installing plugin: Octree & Terrain Scene Manager
20:23:50: Plugin successfully installed
20:23:50: Loading library /usr/lib/OGRE/Plugin_CgProgramManager.so
20:23:50: Installing plugin: Cg Program Manager
20:23:50: Plugin successfully installed
20:23:50: *-*-* OGRE Initialising
20:23:50: *-*-* Version 1.4.5 (Eihort)
20:23:50: Creating resource group Bootstrap
20:23:50: Added resource location '/usr/share/ogre/Samples/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
20:23:50: Added resource location './data' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/materials/programs' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/materials/scripts' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/materials/textures' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/fonts' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/models' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/overlays' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/particle' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/gui' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location 'Samples/materials/programs' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location 'Samples/media/materials/scripts' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location 'Samples/media/materials/textures' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location 'Samples/media/models' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location './' of type 'FileSystem' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/packs/cubemap.zip' of type 'Zip' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/packs/dragon.zip' of type 'Zip' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
20:23:50: Added resource location '/usr/share/ogre/Samples/packs/skybox.zip' of type 'Zip' to resource group 'General'
20:23:50: CPU Identifier & Features
20:23:50: -------------------------
20:23:50: * CPU ID: GenuineIntel: Intel(R) Pentium(R) M processor 1.73GHz
20:23:50: * SSE: yes
20:23:50: * SSE2: yes
20:23:50: * SSE3: no
20:23:50: * MMX: yes
20:23:50: * MMXEXT: yes
20:23:50: * 3DNOW: no
20:23:50: * 3DNOWEXT: no
20:23:50: * CMOV: yes
20:23:50: * TSC: yes
20:23:50: * FPU: yes
20:23:50: * PRO: no
20:23:50: * HT: no
20:23:50: -------------------------
20:23:50: ******************************
*** Starting GLX Subsystem ***
******************************
20:23:50: GLRenderSystem::createRenderWindow "View", 718x604 windowed miscParams: parentWindowHandle=135006984:62914611
20:23:50: GLXWindow::create
20:23:50: Parsing miscParams
Segmentation fault

ekarulf
Gnoblar
Posts: 5
Joined: Sun Apr 27, 2008 12:51 pm

Post by ekarulf »

Hi All,

I was able to get this running on OS X using:
OS X 10.5.2
XCode 3.0
Qt 4.3.4
Ogre 1.4.7

I had to make the following patch against trunk (currently r37)

Code: Select all

Index: src/OgreView.cpp
===================================================================
--- src/OgreView.cpp	(revision 37)
+++ src/OgreView.cpp	(working copy)
@@ -21,7 +21,7 @@
 #include "MainWindow.h"
 using namespace Ogre;
 
-#if !defined(Q_WS_WIN)
+#if defined(Q_WS_X11)
 #include <QX11Info>
 #endif
 
@@ -239,16 +239,17 @@
 
     NameValuePairList params;
 
-#if !defined(Q_WS_WIN)
-    QWidget *q_parent = dynamic_cast <QWidget *> (parent());
-    QX11Info xInfo = x11Info();
-
-	params["parentWindowHandle"] = Ogre::StringConverter::toString( (unsigned long)xInfo.display() ) +
-		":" + Ogre::StringConverter::toString( (unsigned int)xInfo.screen() ) +
-		":" + Ogre::StringConverter::toString( (unsigned long)q_parent->winId() );
-
+#if defined(Q_WS_MAC) || defined(Q_WS_WIN)
+	params["externalWindowHandle"] = Ogre::StringConverter::toString((size_t) winId());
 #else
-	params["externalWindowHandle"] = Ogre::StringConverter::toString( (size_t)(HWND)winId() );
+    QX11Info info = x11Info();
+	Ogre::String winHandle;
+	winHandle  = Ogre::StringConverter::toString((unsigned long)(info.display()));
+	winHandle += ":";
+	winHandle += Ogre::StringConverter::toString((unsigned int)(info.screen()));
+	winHandle += ":";
+	winHandle += Ogre::StringConverter::toString((unsigned long)(this->parentWidget()->winId()))
+	params["parentWindowHandle"] = winHandle;
 #endif
 
 	mRenderWindow = mRoot->createRenderWindow("View", width(), height(), false, &params);
Index: ShowMesh.pro
===================================================================
--- ShowMesh.pro	(revision 37)
+++ ShowMesh.pro	(working copy)
@@ -27,12 +27,17 @@
     INCLUDEPATH += /usr/include/OGRE
     CONFIG += link_pkgconfig
     PKGCONFIG += OGRE
-} else {
+}
+win32 {
     RC_FILE = resources.rc
     Release:LIBPATH += C:\OgreSDK\bin\release
     Debug:LIBPATH += C:\OgreSDK\bin\debug
     INCLUDEPATH += C:\OgreSDK\include
 }
+macx {
+    LIBS += -framework Ogre
+    INCLUDEPATH += /Library/Frameworks/Ogre.framework/Headers/
+}
 
 # Input
 HEADERS += src/EnvProperties.h \

CpuWhiz
Gnoblar
Posts: 8
Joined: Tue May 31, 2005 1:27 am

Post by CpuWhiz »

Hi ekarulf, thanks for the patch. I will look over it soon. I know I have not been good about working on showmesh, but I will try my best to finish off the next release :oops:

User avatar
LiMuBei
Goblin
Posts: 297
Joined: Mon Jun 09, 2008 3:56 pm
Location: Karlsruhe, Germany
x 9

Post by LiMuBei »

Well, I'm using Qt 4.4 and Ogre 1.4.9 on openSuSE 11.0. I haven't found a way yet to get this working. I'm having the same problem as xibo in that the createRenderWindow method fails with a segfault while parsing the parameters. This is really strange. I also have a feeling that the code is not working when using a multi-monitor setup, because of the QX11Info.

User avatar
LiMuBei
Goblin
Posts: 297
Joined: Mon Jun 09, 2008 3:56 pm
Location: Karlsruhe, Germany
x 9

Post by LiMuBei »

Alright, my fault. Apparently the ordering of the initialization methods is crucial. Got it to work now :) But I still think for X11 the dual monitor thing needs some looking into.

booguy
Gnoblar
Posts: 1
Joined: Wed Sep 24, 2008 8:47 pm

Post by booguy »

I got it running using
Visual Studio express 2008
Qt 4.4
Ogre sdk 1.6

(I compiled QT sources with Qt builder to be able to use it under VC express 2008)

to make it run
1) I loaded the .sln solution from showmesh source zip file
2) I updated *.h and cpp with last svn files
3) I had to moc the *.h and add it to project (otherwise linking crashed)
4) removed "using namespace Ogre;" from OgreView.cpp because of a conflict with qt uint . So I had to add a lot of Ogre:: to quiet the compiler
5) Changed a getSceneManager to CreateSceneManager

The appli launches but crashes when I try to load a mesh (i tried the old media libraries that comes with showmesh but also the new ones that comes with Ogre SDK 1.6. Same result)
Dont know whats happening.
Cant use neither the VS 2008 debugger (step by step) . It fails on this message

Code: Select all

'Show Mesh.exe': Loaded 'C:\Qt4\qt-win-opensource-src-4.4.0\plugins\imageformats\qsvgd4.dll', Symbols loaded.
'Show Mesh.exe': Loaded 'C:\Qt4\qt-win-opensource-src-4.4.0\bin\QtSvgd4.dll', Symbols loaded.
'Show Mesh.exe': Loaded 'C:\Qt4\qt-win-opensource-src-4.4.0\plugins\imageformats\qtiffd4.dll', Symbols loaded.
First-chance exception at 0x7c812aeb in Show Mesh.exe: Microsoft C++ exception: Ogre::FileNotFoundException at memory location 0x0012eb68..
First-chance exception at 0x7c812aeb in Show Mesh.exe: Microsoft C++ exception: Ogre::FileNotFoundException at memory location 0x0012f4f4..
Unhandled exception at 0x7c812aeb in Show Mesh.exe: Microsoft C++ exception: Ogre::FileNotFoundException at memory location 0x0012f4f4..
The program '[1848] Show Mesh.exe: Native' has exited with code 0 (0x0).

I can add a light or play with combo list
Anyone an idea why mesh loading fails ?

Baddcog
Halfling
Posts: 62
Joined: Sat Jul 12, 2008 12:16 am

Post by Baddcog »

I appreciate the effort but from a modelers standpoint I was hoping there was more to it.

Maybe even an improvement over Lexi-View.
-------------------
I can load a mesh exported from Max7 with the OFusion exporter.
I have it in a file with my skeleton mesh, my material file, and all textures used for diffuse, rimlighting, enviro mapping.

But it shows up white, the log says it can't find the material script.

I can only open meshes with it but I can't drag/drop.
-----------------
In Lexi View I can do everything I need basically but it doesn't seem to like anim_scroll or anim_rotate textures.
It will show them but only like one frame at a time, each time you move the model.

I just mention this because those are the kinds of features/improvements I'd like to see in what's currently available in a model viewer.

*drag/drop
*material file detection (auto detection if in same folder)
*auto skeleton mesh detection
*works with anim tex
-----------------
So far i have tried Lexi View and OgreMax Viewer. I think Lexi view is the best/easiest so far. (Just so you know what to beat :) )

mosg
Gnoblar
Posts: 1
Joined: Mon May 26, 2008 7:27 am

Post by mosg »

People! Is this project still alive or totally died? :cry: I have some questions about compilation with MSVC + Qt + OgreSDK ... It seams, that someone, not a good person, commit his changes to svn, and so now project does not compilable - WTF?

User avatar
SomeFusion
Gremlin
Posts: 191
Joined: Sun Dec 01, 2002 12:38 am
x 3

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by SomeFusion »

Hey guys I have updated the tool to the latest versions of Qt and Ogre. it compiles fine now with Qt 4.5 and Ogre 1.6.2 now on Ubuntu. I'll have to see how well it goes with Windows. :)
I have also attached a screen shot on Ubuntu.
Attachments
ShowMesh.png
ShowMesh.png (184.08 KiB) Viewed 7635 times
Summoning Wars is an open source role-playing game, featuring both a single-player and a multiplayer mode for about 2 to 8 players.
http://www.sumwars.org

SwedishWings
Kobold
Posts: 32
Joined: Tue Jul 22, 2008 11:36 am
Location: Manila, Philipines

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by SwedishWings »

SomeFusion wrote:Hey guys I have updated the tool to the latest versions of Qt and Ogre. it compiles fine now with Qt 4.5 and Ogre 1.6.2 now on Ubuntu. I'll have to see how well it goes with Windows. :)
I have also attached a screen shot on Ubuntu.
I'd love to have working this working on Ubuntu as well. Would you mind to share it?

Thanks!

/Mike
It wasn't me...

makiolo
Kobold
Posts: 25
Joined: Tue Feb 19, 2008 1:55 pm

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by makiolo »

I compiled it in ubuntu. I need fix code in rev 38.

It fails in createEntity() because need basename of path.
Example:

mainEnt = mSceneMgr->createEntity("/home/makiolo/bazaar/PFC/build/recursos/models/ogrehead.mesh", "/home/makiolo/bazaar/PFC/build/recursos/models/ogrehead.mesh");

With it fix:

mainEnt = mSceneMgr->createEntity("ogrehead", "ogrehead.mesh");

Sorry my english. i am from spain.
Greets.

Code: Select all

+	size_t found;
+	found=name.rfind("/");
+	if (found!=-1)
+		name = name.substr(found+1);
+	String meshName = name.substr(0, name.size()-5);
PATH:

Code: Select all

Index: src/OgreView.cpp
===================================================================
--- src/OgreView.cpp	(revisión: 38)
+++ src/OgreView.cpp	(copia de trabajo)
@@ -145,23 +145,29 @@
 	mLogListener = new myLogListener();
 	LogManager::getSingletonPtr()->getDefaultLog()->addListener(mLogListener);
 
-	ConfigFile cf;
-	cf.load("resources.cfg");
+        // Load resource paths from config file
+        ConfigFile cf;
+        cf.load("resources.cfg");
 
-	ConfigFile::SectionIterator seci = cf.getSectionIterator();
-	String secName, typeName, archName;
-	while(seci.hasMoreElements())
-	{
-		secName = seci.peekNextKey();
-		ConfigFile::SettingsMultiMap* settings = seci.getNext();
-		ConfigFile::SettingsMultiMap::iterator i;
-		for(i=settings->begin(); i!=settings->end(); ++i){
-			typeName = i->first;
-			archName = i->second;
-			ResourceGroupManager::getSingleton().addResourceLocation(archName, typeName, secName);
-		}
-	}
+        // Go through all sections & settings in the file
+        ConfigFile::SectionIterator seci = cf.getSectionIterator();
 
+        String secName, typeName, archName;
+        while (seci.hasMoreElements())
+        {
+            secName = seci.peekNextKey();
+            ConfigFile::SettingsMultiMap *settings = seci.getNext();
+            ConfigFile::SettingsMultiMap::iterator i;
+            for (i = settings->begin(); i != settings->end(); ++i)
+            {
+                typeName = i->first;
+                archName = i->second;
+
+                ResourceGroupManager::getSingleton().addResourceLocation(
+                    archName, typeName, secName);
+            }
+        }
+
 	//mRoot->restoreConfig();
 
 	QSettings settings;
@@ -210,14 +216,14 @@
 
 void OgreView::createScene()
 {
-	//mPlane = new MovablePlane("BasePlane");
+	//mPlane = new MovablePlane("Examples/Rockwall");
 	mPlane = new Plane;
 	mPlane->d = 0;
 	mPlane->normal = Vector3::UNIT_Y;
-	MeshManager::getSingleton().createPlane("BasePlane", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
+	MeshManager::getSingleton().createPlane("Examples/Rockwall", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
 												 *mPlane, 10000, 10000, 1, 1, true, 1, 100, 100, Vector3::UNIT_Z);
-	plane = mSceneMgr->createEntity("Plane", "BasePlane");
-	plane->setMaterialName("BasePlane");
+	plane = mSceneMgr->createEntity("Plane", "Examples/Rockwall");
+	plane->setMaterialName("Examples/Rockwall");
 	planeNode = mSceneMgr->getRootSceneNode()->createChildSceneNode("PlaneNode");
 	planeNode->attachObject(plane);
 	planeNode->setPosition(Vector3(0, -50, 0));
@@ -248,7 +254,7 @@
 	winHandle += ":";
 	winHandle += Ogre::StringConverter::toString((unsigned int)(info.screen()));
 	winHandle += ":";
-	winHandle += Ogre::StringConverter::toString((unsigned long)(this->parentWidget()->winId()))
+	winHandle += Ogre::StringConverter::toString((unsigned long)(this->parentWidget()->winId()));
 	params["parentWindowHandle"] = winHandle;
 #endif
 
@@ -266,6 +272,8 @@
     mVp = mRenderWindow->addViewport(mCamera);
 	mVp->setBackgroundColour(ColourValue(0.58, 0.65, 0.76, 1));
 
+	TextureManager::getSingleton().setDefaultNumMipmaps(5);
+
     ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
 
     createScene();
@@ -562,9 +570,12 @@
 //*************************Interactive Properties***************************
 void OgreView::addObject(String name)
 {
-	//Update the name
-	String meshName = name;
-	meshName.substr(meshName.size()-5, 5);
+	// fix by Ricardo Marmolejo García <makiolo@gmail.com>
+	size_t found;
+	found=name.rfind("/");
+	if (found!=-1)
+		name = name.substr(found+1);
+	String meshName = name.substr(0, name.size()-5);
 
 	//Remove old object
 	if(mainEnt != NULL)
@@ -584,6 +595,7 @@
 	//Update the camera's pos to fit whith the object size
 	mCamera->setPosition(mainNode->getPosition().x, mainNode->getPosition().y, mainNode->getPosition().z - 200);
 	mCamera->lookAt(mainNode->getPosition());
+
 }
 
 void OgreView::setFog(int fogType)


JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by JonnyJP »

I can't get the cut down project working with Qt 4.6.0. I've tried doing qmake -project then qmake but get this error after nmake:

cannot open include file Ogre.h: No such file or directory.

I've opened the solution and checked the path to Ogre is correct; it's pointing to $(OGRE_HOME)\include and OGRE_HOME is one of my environment variables.

Any help is appreciated.
Thanks

JP

EDIT I changed the include path in the .pro file to this: INCLUDEPATH += $(OGRE_HOME)\include but now I'm getting these errors:

Code: Select all

C:\Users\jon-paul.murrow\Desktop\OgreQt>nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

        c:\qt32\4.6.0\qmake\qmake.exe -win32 -o Makefile OgreQt.pro
        "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f M
akefile.Debug

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189
 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -D
QT_THREAD_SUPPORT -I"..\..\..\..\Qt32\4.6.0\include\QtCore" -I"..\..\..\..\Qt32\
4.6.0\include\QtGui" -I"..\..\..\..\Qt32\4.6.0\include" -I"c:\OgreSDK\include" -
I"..\..\..\..\Qt32\4.6.0\include\ActiveQt" -I"debug" -I"..\..\..\..\Qt32\4.6.0\m
kspecs\default" -Fodebug\ @C:\Users\JON-PA~1.MUR\AppData\Local\Temp\nmD1C.tmp
OgreView.cpp
c:\ogresdk\include\OgreException.h(261) : warning C4100: 'code' : unreferenced f
ormal parameter
c:\ogresdk\include\OgreException.h(268) : warning C4100: 'code' : unreferenced f
ormal parameter
c:\ogresdk\include\OgreException.h(275) : warning C4100: 'code' : unreferenced f
ormal parameter
c:\ogresdk\include\OgreException.h(282) : warning C4100: 'code' : unreferenced f
ormal parameter
c:\ogresdk\include\OgreException.h(289) : warning C4100: 'code' : unreferenced f
ormal parameter
c:\ogresdk\include\OgreException.h(296) : warning C4100: 'code' : unreferenced f
ormal parameter
c:\ogresdk\include\OgreException.h(303) : warning C4100: 'code' : unreferenced f
ormal parameter
c:\ogresdk\include\OgreException.h(310) : warning C4100: 'code' : unreferenced f
ormal parameter
c:\ogresdk\include\OgreException.h(317) : warning C4100: 'code' : unreferenced f
ormal parameter
c:\ogresdk\include\OgreException.h(324) : warning C4100: 'code' : unreferenced f
ormal parameter
c:\ogresdk\include\OgreAnimationTrack.h(506) : warning C4100: 'kf' : unreference
d formal parameter
c:\ogresdk\include\OgreAnimationTrack.h(506) : warning C4100: 'timeIndex' : unre
ferenced formal parameter
c:\ogresdk\include\OgreResource.h(501) : warning C4100: 'resource' : unreference
d formal parameter
c:\ogresdk\include\OgreResourceGroupManager.h(115) : warning C4100: 'resourceCou
nt' : unreferenced formal parameter
c:\ogresdk\include\OgreResourceGroupManager.h(115) : warning C4100: 'groupName'
: unreferenced formal parameter
c:\ogresdk\include\OgreResourceGroupManager.h(119) : warning C4100: 'resource' :
 unreferenced formal parameter
c:\ogresdk\include\OgreResourceGroupManager.h(128) : warning C4100: 'description
' : unreferenced formal parameter
c:\ogresdk\include\OgreResourceGroupManager.h(136) : warning C4100: 'groupName'
: unreferenced formal parameter
c:\ogresdk\include\OgreResourceManager.h(376) : warning C4100: 'groupName' : unr
eferenced formal parameter
c:\ogresdk\include\OgreResourceManager.h(376) : warning C4100: 'stream' : unrefe
renced formal parameter
c:\ogresdk\include\OgreRenderable.h(116) : warning C4100: 'rsys' : unreferenced
formal parameter
c:\ogresdk\include\OgreRenderable.h(116) : warning C4100: 'sm' : unreferenced fo
rmal parameter
c:\ogresdk\include\OgreRenderable.h(119) : warning C4100: 'rsys' : unreferenced
formal parameter
c:\ogresdk\include\OgreRenderable.h(119) : warning C4100: 'sm' : unreferenced fo
rmal parameter
c:\ogresdk\include\OgreMovablePlane.h(86) : warning C4100: 'debugRenderables' :
unreferenced formal parameter
c:\ogresdk\include\OgreMovablePlane.h(85) : warning C4100: 'visitor' : unreferen
ced formal parameter
c:\ogresdk\include\OgreFrameListener.h(95) : warning C4100: 'evt' : unreferenced
 formal parameter
c:\ogresdk\include\OgreFrameListener.h(113) : warning C4100: 'evt' : unreference
d formal parameter
c:\ogresdk\include\OgreFrameListener.h(122) : warning C4100: 'evt' : unreference
d formal parameter
c:\ogresdk\include\OgreLog.h(220) : warning C4100: 'v' : unreferenced formal par
ameter
c:\ogresdk\include\OgreOverlayElement.h(465) : warning C4100: 'cam' : unreferenc
ed formal parameter
c:\ogresdk\include\OgreParticleAffector.h(89) : warning C4100: 'pParticle' : unr
eferenced formal parameter
c:\ogresdk\include\OgreRenderTarget.h(148) : warning C4100: 'waitForVSync' : unr
eferenced formal parameter
c:\ogresdk\include\OgreRenderTargetListener.h(95) : warning C4100: 'evt' : unref
erenced formal parameter
c:\ogresdk\include\OgreRenderTargetListener.h(104) : warning C4100: 'evt' : unre
ferenced formal parameter
c:\ogresdk\include\OgreRenderTargetListener.h(112) : warning C4100: 'evt' : unre
ferenced formal parameter
c:\ogresdk\include\OgreRenderTargetListener.h(119) : warning C4100: 'evt' : unre
ferenced formal parameter
c:\ogresdk\include\OgreRenderTargetListener.h(124) : warning C4100: 'evt' : unre
ferenced formal parameter
c:\ogresdk\include\OgreRenderTargetListener.h(128) : warning C4100: 'evt' : unre
ferenced formal parameter
c:\ogresdk\include\OgreRenderWindow.h(96) : warning C4100: 'height' : unreferenc
ed formal parameter
c:\ogresdk\include\OgreRenderWindow.h(96) : warning C4100: 'width' : unreference
d formal parameter
c:\ogresdk\include\OgreRenderWindow.h(96) : warning C4100: 'fullScreen' : unrefe
renced formal parameter
c:\ogresdk\include\OgreRenderWindow.h(122) : warning C4100: 'visible' : unrefere
nced formal parameter
c:\ogresdk\include\OgreResourceBackgroundQueue.h(117) : warning C4100: 'result'
: unreferenced formal parameter
c:\ogresdk\include\OgreResourceBackgroundQueue.h(117) : warning C4100: 'ticket'
: unreferenced formal parameter
c:\ogresdk\include\OgreRectangle2D.h(65) : warning C4100: 'cam' : unreferenced f
ormal parameter
c:\ogresdk\include\OgreSceneManager.h(119) : warning C4100: 'boxBounds' : unrefe
renced formal parameter
c:\ogresdk\include\OgreSceneManager.h(340) : warning C4100: 'lightList' : unrefe
renced formal parameter
c:\ogresdk\include\OgreSceneManager.h(1505) : warning C4100: 'filename' : unrefe
renced formal parameter
c:\ogresdk\include\OgreSceneManager.h(1520) : warning C4100: 'typeName' : unrefe
renced formal parameter
c:\ogresdk\include\OgreSceneManager.h(1519) : warning C4100: 'stream' : unrefere
nced formal parameter
c:\ogresdk\include\OgreSceneManager.h(1550) : warning C4100: 'pValue' : unrefere
nced formal parameter
c:\ogresdk\include\OgreSceneManager.h(1550) : warning C4100: 'strKey' : unrefere
nced formal parameter
c:\ogresdk\include\OgreSceneManager.h(1565) : warning C4100: 'pDestValue' : unre
ferenced formal parameter
c:\ogresdk\include\OgreSceneManager.h(1565) : warning C4100: 'strKey' : unrefere
nced formal parameter
c:\ogresdk\include\OgreSceneManager.h(1576) : warning C4100: 'strKey' : unrefere
nced formal parameter
c:\ogresdk\include\OgreSceneManager.h(1591) : warning C4100: 'refValueList' : un
referenced formal parameter
c:\ogresdk\include\OgreSceneManager.h(1591) : warning C4100: 'strKey' : unrefere
nced formal parameter
c:\ogresdk\include\OgreSceneManager.h(1599) : warning C4100: 'refKeys' : unrefer
enced formal parameter
c:\ogresdk\include\OgreWindowEventUtilities.h(58) : warning C4100: 'rw' : unrefe
renced formal parameter
c:\ogresdk\include\OgreWindowEventUtilities.h(66) : warning C4100: 'rw' : unrefe
renced formal parameter
c:\ogresdk\include\OgreWindowEventUtilities.h(75) : warning C4100: 'rw' : unrefe
renced formal parameter
c:\ogresdk\include\OgreWindowEventUtilities.h(88) : warning C4100: 'rw' : unrefe
renced formal parameter
c:\ogresdk\include\OgreWindowEventUtilities.h(96) : warning C4100: 'rw' : unrefe
renced formal parameter
.\OgreView.cpp(62) : warning C4100: 'evt' : unreferenced formal parameter
.\OgreView.cpp(79) : error C2664: 'Ogre::Root::getSceneManager' : cannot convert
 parameter 1 from 'Ogre::SceneType' to 'const Ogre::String &'
        Reason: cannot convert from 'Ogre::SceneType' to 'const Ogre::String'
        No user-defined-conversion operator available that can perform this conv
ersion, or the operator cannot be called
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC
\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC
\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\Users\jon-paul.murrow\Desktop\OgreQt>

JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by JonnyJP »

Hi, I changed the line in OgreView.cpp from

mSceneMgr = mRoot->getSceneManager(Ogre::ST_GENERIC);

to

mSceneMgr = mRoot->getSceneManager("ST_GENERIC");

and now I'm getting linking errors that appear to be Ogre related.

Neva Awaken
Gnoblar
Posts: 5
Joined: Thu Apr 15, 2010 5:45 am

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by Neva Awaken »

This project should be re-opened... I really enjoy it, but I got a lot of errors trying to compile it with latest Ogre and QT. I'm still a newbie with ogre code, so... this is a big challenge for me right now.

JonnyJP, if you get this working, share it please. I hope some expert could help us =]

Thanks!

JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by JonnyJP »

I got this working now (a while ago actually). If you're stuck then let me know what errors you've got and I'll help as best I can. Not promising anything though as I'm only learning Ogre myself.

Cheers

JP

Neva Awaken
Gnoblar
Posts: 5
Joined: Thu Apr 15, 2010 5:45 am

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by Neva Awaken »

I'm learning Ogre by myself too.. did you make any changes on the code of show mesh?? I guess I'm with some compiler error... what Qt r u using? I just downloaded Qt with mingw compiler... but I didn't tried it yet. When I get home, I'll post the errors i'm struck... but I didn't made any changes on the code yet (only with the .pro file, to get the correct ogre includes path).

Thanks for the assistance JP.
Cheers,
Neva

EDITING:
Errors I got:

Code: Select all

C:/SDKs/Desenvolvimento/showmesh-1.1/src/OgreView.cpp:119: error: cannot allocate an object of abstract type 'myLogListener'
C:/SDKs/Desenvolvimento/showmesh-1.1/src//OgreView.h:36: note:   because the following virtual functions are pure within 'myLogListener':
C:/SDKs/Desenvolvimento/showmesh-1.1/../../OgreSDK/include/OGRE/OgreLog.h:82: note: 	virtual void Ogre::LogListener::messageLogged(const Ogre::String&, Ogre::LogMessageLevel, bool, const Ogre::String&)
C:/SDKs/Desenvolvimento/showmesh-1.1/src/OgreView.cpp:120: error: 'class Ogre::LogManager' has no member named 'addListener'
The compile output has:

Code: Select all

Running build steps for project ShowMesh...
Configuration unchanged, skipping QMake step.
Starting: C:/Qt/2010.02.1/mingw/bin/mingw32-make.exe -w 
mingw32-make: Entering directory `C:/SDKs/Desenvolvimento/showmesh-1.1'
C:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/SDKs/Desenvolvimento/showmesh-1.1'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\Qt\2010.02.1\qt\include\QtCore" -I"..\..\..\Qt\2010.02.1\qt\include\QtGui" -I"..\..\..\Qt\2010.02.1\qt\include" -I"..\..\OgreSDK\include\OGRE" -I"..\..\OgreSDK\include\OIS" -I"..\..\OgreSDK\boost_1_42" -I"..\..\..\Qt\2010.02.1\qt\include\ActiveQt" -I"debug\.moc" -I"..\..\..\Qt\2010.02.1\qt\mkspecs\win32-g++" -o debug\.obj\OgreView.o src\OgreView.cpp
src\OgreView.cpp: In member function 'void OgreView::setupResources()':
src\OgreView.cpp:119: error: cannot allocate an object of abstract type 'myLogListener'
src\/OgreView.h:36: note: because the following virtual functions are pure within 'myLogListener':
..\..\OgreSDK\include\OGRE/OgreLog.h:82: note: virtual void Ogre::LogListener::messageLogged(const Ogre::String&, Ogre::LogMessageLevel, bool, const Ogre::String&)
src\OgreView.cpp:120: error: 'class Ogre::LogManager' has no member named 'addListener'
mingw32-make[1]: Leaving directory `C:/SDKs/Desenvolvimento/showmesh-1.1'
mingw32-make: Leaving directory `C:/SDKs/Desenvolvimento/showmesh-1.1'
mingw32-make[1]: *** [debug/.obj/OgreView.o] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project ShowMesh
When executing build step 'Make'

litterbug23
Gnoblar
Posts: 24
Joined: Mon Sep 21, 2009 9:27 am

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by litterbug23 »

show mesh exist much bug.
why didn't author submit a correct project.
:shock:

Teknoman117
Kobold
Posts: 26
Joined: Wed Mar 17, 2010 4:52 am
Contact:

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by Teknoman117 »

I am having problems with this application on Linux 64 bit. It compiles fine except for this under OgreView::setupResources()

mLogListener = new myLogListener();
LogManager::getSingleton().addListener(mLogListener);

I commented them out because they don't seem too important. However when it loads, err should I say TRIES to load, the call to mRoot->initalise(false) causes it to segfault right after it logs that it is starting the GLX sub system. Anyone know a fix?
Teknoman117 - a robot enthusiast

Just in case it helps anyone help me, my computer uses:
ATI Radeon HD 5770
AMD Athlon 64 X2
4 GB DDR 800 Ram
Ubuntu Linux 10.04 64 bit

shadow82
Kobold
Posts: 26
Joined: Mon Apr 12, 2010 11:53 am

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by shadow82 »

Teknoman117 wrote:mLogListener = new myLogListener();
LogManager::getSingleton().addListener(mLogListener);
I was able to fix this piece of code:

Code: Select all

mLogListener = new myLogListener();
LogManager::getSingleton().getDefaultLog()->addListener(mLogListener);
But I still got other problems:

I cannot open a mesh file, because the File Menu or something isn't displayed in the window... And I unfortunately don't have an idea about Qt...

zeromath
Gnoblar
Posts: 21
Joined: Mon Jul 05, 2010 5:19 pm

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by zeromath »

The app crashes instantly after I open it. I'm completely new to OGRE, so I don't know if there is something new I should install something else first. I see this app was released in '06, so I guess I should use the Compatibility Wizard...

Windows 7 32-bit
Geforce 9500GT GPU
Pentium D 2.66GHZ CPU

zeromath
Gnoblar
Posts: 21
Joined: Mon Jul 05, 2010 5:19 pm

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by zeromath »

....And the compatibility wizard doesn't work either...Any suggestions please? If I don't get this working, The Creator will smite me.

User avatar
AWM Mars
Halfling
Posts: 56
Joined: Mon Apr 19, 2010 9:28 pm
Location: Wiltshire, England
x 1
Contact:

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by AWM Mars »

Have you tried looking at this thread, seems a similar app http://www.ogre3d.org/forums/viewtopic.php?f=11&t=58433
Politeness is priceless when recieved, cost nothing to own or give, yet some cannot afford.

User avatar
Nosferax
Kobold
Posts: 25
Joined: Sat Jan 26, 2008 9:30 pm
Location: Quebec, Canada
Contact:

Re: Show Mesh, a mesh viewer using Qt [v1.1 Released!]

Post by Nosferax »

I have also tried to compile this project with the same errors as noted here :

src/OgreView.cpp:120: error: ‘class Ogre::LogManager’ has no member named ‘addListener’

amongst others...

any news?

Post Reply