simple texture plan didint load ogre1.9 with qt5 msvc

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
joni
Gnoblar
Posts: 10
Joined: Wed Aug 06, 2014 10:27 am

simple texture plan didint load ogre1.9 with qt5 msvc

Post by joni »

Im new here and also new in ogre3d :D but just found almost similiar question here http://www.ogre3d.org/forums/viewtopic.php?f=5&t=70171 , but that seems for qt4.. following on someone sample https://github.com/gklingler/QOgreWidget ive just modifed the file QOgreWidgetDemo.cpp here they are

Code: Select all

#include "QOgreWidgetDemo.hpp"
#include "OGRE/RenderSystems/GL/OgreGLPlugin.h" //note that changing this header file to directx renderer also didnt solve
#include "QOgreWidget.hpp" // must be included after the OGRE plugin
#include "QCameraMan.h"
#include <OgreVector3.h>
#include <OgreResourceGroupManager.h>

#include <QGroupBox>
#include <QPushButton>
#include <QVBoxLayout>


void QOgreWidgetDemo::setupResources(void) {
    // Load resource paths from config file
    Ogre::ConfigFile cf;
    cf.load("resources.cfg");

    // Go through all sections & settings in the file
    Ogre::ConfigFile::SectionIterator seci = cf.getSectionIterator();

    Ogre::String secName, typeName, archName;
    while (seci.hasMoreElements()) {
        secName = seci.peekNextKey();
        Ogre::ConfigFile::SettingsMultiMap *settings = seci.getNext();
        Ogre::ConfigFile::SettingsMultiMap::iterator i;
        for (i = settings->begin(); i != settings->end(); ++i) {
            typeName = i->first;
            archName = i->second;
            Ogre::ResourceGroupManager::getSingleton().addResourceLocation(archName, typeName, secName);
        }
    }
}


void QOgreWidgetDemo::setupRenderSystem() {
    // look for the openGL renderer in Ogre
    Ogre::RenderSystemList::const_iterator availableRendererIt = mOgreRoot->getAvailableRenderers().begin();
    
    while (availableRendererIt != mOgreRoot->getAvailableRenderers().end()) {
        Ogre::String rName = (*availableRendererIt)->getName();
        if (rName == "OpenGL Rendering Subsystem") {
            break;
        }
        ++availableRendererIt;
    }
    
    if (availableRendererIt == mOgreRoot->getAvailableRenderers().end()) {
        throw std::runtime_error("We were unable to find the OpenGL renderer in ogre's list, cannot continue");
    }
    
    // use the OpenGL renderer in the root config
    mRenderSystem = *availableRendererIt;
    mOgreRoot->setRenderSystem(mRenderSystem);
    mRenderWindow = mOgreRoot->initialise(false);
}


void QOgreWidgetDemo::createScene() {
    mSceneManager = mOgreRoot->createSceneManager(Ogre::ST_EXTERIOR_CLOSE);
    mCamera = mSceneManager->createCamera("QOgreWidget_Cam");
    mCamera->setPosition(5.0, 5.0, 200);
    mCamera->setAutoAspectRatio(true);
    mCameraMan = new OgreBites::QCameraMan(mCamera);
    mCameraMan->setCamera(mCamera);
    
    mOgreViewport = mOgreWidget->getEmbeddedOgreWindow()->addViewport(mCamera);
    
    this->resize(640, 480);
    this->setWindowTitle("QOgreWidget demo");
	
 
	Ogre::Plane plane(Ogre::Vector3::UNIT_Y, -10);
		Ogre::MeshManager::getSingleton().createPlane("plane",
			Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, plane,
			1500,1500,200,200,true,1,5,5,Ogre::Vector3::UNIT_Z);
			
			
    Ogre::Entity* ent = mSceneManager->createEntity("LightPlaneEntity", "plane");
		mSceneManager->getRootSceneNode()->createChildSceneNode()->attachObject(ent);
		 Ogre::String matname("Examples/BeachStones");
		 ent->setMaterialName(matname);
		 
		 
		Ogre::SceneNode* node = mSceneManager->createSceneNode("Node1");
		mSceneManager->getRootSceneNode()->addChild(node);

		Ogre::SceneNode* node2 = node->createChildSceneNode("node2");
		node2->setPosition(0,100,0);

		Ogre::Light* light = mSceneManager->createLight("Light1");
		light->setType(Ogre::Light::LT_SPOTLIGHT);
		light->setDirection(Ogre::Vector3(1,-1,0));
		light->setSpotlightInnerAngle(Ogre::Degree(5.0f));
		light->setSpotlightOuterAngle(Ogre::Degree(45.0f));
		light->setSpotlightFalloff(0.0f);
		light->setDiffuseColour(Ogre::ColourValue(0.0f,1.0f,0.0f));
		node2->attachObject(light);    
    
}

    
void QOgreWidgetDemo::createQtWidgets() {
    QGroupBox *mainGroup = new QGroupBox;
    QVBoxLayout *mainLayout = new QVBoxLayout;
    mOgreWidget = new QOgreWidget(mOgreRoot, this, mainGroup);
    QPushButton *buttonZoomIn = new QPushButton(tr("Zoom &In"));
    QPushButton *buttonZoomOut = new QPushButton(tr("Zoom &Out"));
    mainLayout->addWidget(buttonZoomIn);
    mainLayout->addWidget(buttonZoomOut);
    connect(buttonZoomIn, SIGNAL(released()), this, SLOT(onZoomIn()));
    connect(buttonZoomOut, SIGNAL(released()), this, SLOT(onZoomOut()));
    
    mainLayout->addWidget(mOgreWidget);
    mainGroup->setLayout(mainLayout);
    setCentralWidget(mainGroup);
}


void QOgreWidgetDemo::onZoomIn() {
    mCamera->moveRelative(Ogre::Vector3(0, 0, -10.0));
}


void QOgreWidgetDemo::onZoomOut() {
    mCamera->moveRelative(Ogre::Vector3(0, 0, 10));
}


void QOgreWidgetDemo::ogreMousePressEvent(QMouseEvent *event) {
    mCameraMan->injectMouseDown(*event);
}


void QOgreWidgetDemo::ogreMouseMoveEvent(QMouseEvent *event) {
    if (event->buttons() & Qt::LeftButton) {
        std::cout << "mouse Moved (left button pressed)";
    } else if (event->buttons() & Qt::RightButton) {
        std::cout << "mouse Moved (right button pressed)";
    }
    int x = event->x();
    int y = event->y();
    int dx = mMouseMoveXOld - x;
    int dy = mMouseMoveYOld - y;
    
    mMouseMoveXOld = x;
    mMouseMoveYOld = y;
    
    mCameraMan->injectMouseMove(*event);
}


QOgreWidgetDemo::QOgreWidgetDemo()
    {
	mOgreRoot= new Ogre::Root("plugins_d.cfg");
    
    setupResources();
    setupRenderSystem();
    
    createQtWidgets();
    createScene();
    
    mOgreRoot->renderOneFrame();
    this->show(); // give focus to our application and make it visible
}


QOgreWidgetDemo::~QOgreWidgetDemo() {
    delete mOgreRoot;
    delete mOgreWidget;
}

In order to load correct material texture such as "Examples/BeachStones" with following resources.cfg

Code: Select all

# Resources required by the sample browser and most samples.
[Essential]
Zip=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/packs/SdkTrays.zip
Zip=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/packs/profiler.zip
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/thumbnails
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/programs/Cg
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/programs/HLSL
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/programs
FileSystem=../../../../../stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/scripts
FileSystem=..\\..\\..\\..\\..\\stuff\\ogre_msvc11\\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\\media\\materials\\scripts
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/textures
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/textures/nvidia
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/models
FileSystem=.
FileSystem=resources\\materials\\scripts
FileSystem=resources\\materials\\exam
FileSystem=D:\masteraplikasi\transfer21des\10des\ogre-tips\ogre_17_skrip\example15_qt\resources\exam
FileSystem=resources//materials//exams
FileSystem=resources\\materials\\textures
FileSystem=resources\\materials\\programs



# Common sample resources needed by many of the samples.
# Rarely used resources should be separately loaded by the
# samples which require them.
[Popular]
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/fonts
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/programs/Cg
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/programs/HLSL
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/programs
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/models
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/particle
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/DeferredShadingmedia
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/PCZAppmedia
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/RTShaderLib
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/RTShaderLib/materials
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/scripts/SSAO
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/textures/SSAO
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/volumeTerrain
Zip=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/packs/cubemap.zip
Zip=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/packs/cubemapsJS.zip
Zip=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/packs/dragon.zip
Zip=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/packs/fresneldemo.zip
Zip=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/packs/ogretestmap.zip
Zip=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/packs/ogredance.zip
Zip=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/packs/Sinbad.zip
Zip=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/packs/skybox.zip
Zip=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/volumeTerrain/volumeTerrainBig.zip
FileSystem=resources\\materials\\exam
FileSystem=resources/materials/exam


[General]
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/programs
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/scripts
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/textures
FileSystem=D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/textures/nvid

Ogre.log

Code: Select all

19:31:35: Creating resource group General
19:31:35: Creating resource group Internal
19:31:35: Creating resource group Autodetect
19:31:35: SceneManagerFactory for type 'DefaultSceneManager' registered.
19:31:35: Registering ResourceManager for type Material
19:31:35: Registering ResourceManager for type Mesh
19:31:35: Registering ResourceManager for type Skeleton
19:31:35: MovableObjectFactory for type 'ParticleSystem' registered.
19:31:35: ArchiveFactory for archive type FileSystem registered.
19:31:35: ArchiveFactory for archive type Zip registered.
19:31:35: ArchiveFactory for archive type EmbeddedZip registered.
19:31:35: DDS codec registering
19:31:35: FreeImage version: 3.16.1
19:31:35: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
19:31:35: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,rgb,rgba,bw,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti,webp
19:31:35: ETC codec registering
19:31:35: Registering ResourceManager for type HighLevelGpuProgram
19:31:35: Registering ResourceManager for type Compositor
19:31:35: MovableObjectFactory for type 'Entity' registered.
19:31:35: MovableObjectFactory for type 'Light' registered.
19:31:35: MovableObjectFactory for type 'BillboardSet' registered.
19:31:35: MovableObjectFactory for type 'ManualObject' registered.
19:31:35: MovableObjectFactory for type 'BillboardChain' registered.
19:31:35: MovableObjectFactory for type 'RibbonTrail' registered.
19:31:35: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\RenderSystem_Direct3D9_d
19:31:35: Installing plugin: D3D9 RenderSystem
19:31:35: D3D9 : Direct3D9 Rendering Subsystem created.
19:31:36: D3D9: Driver Detection Starts
19:31:36: D3D9: Driver Detection Ends
19:31:36: Plugin successfully installed
19:31:36: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\RenderSystem_Direct3D11_d
19:31:36: Installing plugin: D3D11 RenderSystem
19:31:36: D3D11 : Direct3D11 Rendering Subsystem created.
19:31:36: D3D11: Driver Detection Starts
19:31:36: D3D11: Driver Detection Ends
19:31:36: Plugin successfully installed
19:31:36: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\RenderSystem_GL_d
19:31:36: Installing plugin: GL RenderSystem
19:31:36: OpenGL Rendering Subsystem created.
19:31:37: Plugin successfully installed
19:31:37: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_ParticleFX_d
19:31:37: Installing plugin: ParticleFX
19:31:37: Particle Emitter Type 'Point' registered
19:31:37: Particle Emitter Type 'Box' registered
19:31:37: Particle Emitter Type 'Ellipsoid' registered
19:31:37: Particle Emitter Type 'Cylinder' registered
19:31:37: Particle Emitter Type 'Ring' registered
19:31:37: Particle Emitter Type 'HollowEllipsoid' registered
19:31:37: Particle Affector Type 'LinearForce' registered
19:31:37: Particle Affector Type 'ColourFader' registered
19:31:37: Particle Affector Type 'ColourFader2' registered
19:31:37: Particle Affector Type 'ColourImage' registered
19:31:37: Particle Affector Type 'ColourInterpolator' registered
19:31:37: Particle Affector Type 'Scaler' registered
19:31:37: Particle Affector Type 'Rotator' registered
19:31:37: Particle Affector Type 'DirectionRandomiser' registered
19:31:37: Particle Affector Type 'DeflectorPlane' registered
19:31:37: Plugin successfully installed
19:31:37: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_BSPSceneManager_d
19:31:37: Installing plugin: BSP Scene Manager
19:31:37: Plugin successfully installed
19:31:37: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_CgProgramManager_d
19:31:37: Installing plugin: Cg Program Manager
19:31:37: Plugin successfully installed
19:31:37: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_PCZSceneManager_d
19:31:37: Installing plugin: Portal Connected Zone Scene Manager
19:31:37: PCZone Factory Type 'ZoneType_Default' registered
19:31:37: Plugin successfully installed
19:31:37: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_OctreeZone_d
19:31:37: Installing plugin: Octree Zone Factory
19:31:37: Plugin successfully installed
19:31:37: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_OctreeSceneManager_d
19:31:37: Installing plugin: Octree Scene Manager
19:31:37: Plugin successfully installed
19:31:37: *-*-* OGRE Initialising
19:31:37: *-*-* Version 1.9.0 (Ghadamon)
19:31:37: Creating resource group Essential
19:31:37: Added resource location 'D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/thumbnails' of type 'FileSystem' to resource group 'Essential'
19:31:37: Added resource location 'D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/programs/Cg' of type 'FileSystem' to resource group 'Essential'
19:31:37: Added resource location 'D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/programs/HLSL' of type 'FileSystem' to resource group 'Essential'
19:31:37: Added resource location 'D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/programs' of type 'FileSystem' to resource group 'Essential'
19:31:37: Added resource location '../../../../../stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/scripts' of type 'FileSystem' to resource group 'Essential'
19:31:37: Added resource location '..\\..\\..\\..\\..\\stuff\\ogre_msvc11\\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\\media\\materials\\scripts' of type 'FileSystem' to resource group 'Essential'
19:31:37: Added resource location 'D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/textures' of type 'FileSystem' to resource group 'Essential'
19:31:37: Added resource location 'D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/materials/textures/nvidia' of type 'FileSystem' to resource group 'Essential'
19:31:37: Added resource location 'D:/masteraplikasi/stuff/ogre_msvc11/OGRE-SDK-1.9.0-vc110-x86-24.05.2014/media/models' of type 'FileSystem' to resource group 'Essential'
19:31:37: Added resource location '.' of type 'FileSystem' to resource group 'Essential'
19:31:37: Added resource location 'D:\masteraplikasi\transfer21des\10des\ogre-tips\ogre_17_skrip\example15_qt\resources\exam' of type 'FileSystem' to resource group 'Essential'
19:31:37: Added resource location 'resources\materials\exams' of type 'FileSystem' to resource group 'Essential'
19:31:38: CPU Identifier & Features
19:31:38: -------------------------
19:31:38:  *   CPU ID: GenuineIntel: Intel(R) Celeron(R) CPU 1000M @ 1.80GHz
19:31:38:  *      SSE: yes
19:31:38:  *     SSE2: yes
19:31:38:  *     SSE3: yes
19:31:38:  *      MMX: yes
19:31:38:  *   MMXEXT: yes
19:31:38:  *    3DNOW: no
19:31:38:  * 3DNOWEXT: no
19:31:38:  *     CMOV: yes
19:31:38:  *      TSC: yes
19:31:38:  *      FPU: yes
19:31:38:  *      PRO: yes
19:31:38:  *       HT: no
19:31:38: -------------------------
19:31:38: *** Starting Win32GL Subsystem ***
19:31:38: Registering ResourceManager for type Texture
19:31:39: GLRenderSystem::_createRenderWindow "OgreWidget_RenderWindow", 640x480 windowed  miscParams: FSAA=8 parentWindowHandle=459680 
19:31:39: Created Win32Window 'OgreWidget_RenderWindow' : 640x480, 32bpp
19:31:39: GL_VERSION = 4.0.0 - Build 9.17.10.2867
19:31:39: GL_VENDOR = Intel
19:31:39: GL_RENDERER = Intel(R) HD Graphics
19:31:39: GL_EXTENSIONS = GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_blend_color GL_EXT_abgr GL_EXT_texture3D GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_SGIS_texture_edge_clamp GL_SGIS_generate_mipmap GL_EXT_draw_range_elements GL_SGIS_texture_lod GL_EXT_rescale_normal GL_EXT_packed_pixels GL_EXT_texture_edge_clamp GL_EXT_separate_specular_color GL_ARB_multitexture GL_EXT_texture_env_combine GL_EXT_bgra GL_EXT_blend_func_separate GL_EXT_secondary_color GL_EXT_fog_coord GL_EXT_texture_env_add GL_ARB_texture_cube_map GL_ARB_transpose_matrix GL_ARB_texture_env_add GL_IBM_texture_mirrored_repeat GL_EXT_multi_draw_arrays GL_SUN_multi_draw_arrays GL_NV_blend_square GL_ARB_texture_compression GL_3DFX_texture_compression_FXT1 GL_EXT_texture_filter_anisotropic GL_ARB_texture_border_clamp GL_ARB_point_parameters GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_env_crossbar GL_EXT_texture_compression_s3tc GL_ARB_shadow GL_ARB_window_pos GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_ARB_vertex_program GL_EXT_texture_rectangle GL_ARB_fragment_program GL_EXT_stencil_two_side GL_ATI_separate_stencil GL_ARB_vertex_buffer_object GL_EXT_texture_lod_bias GL_ARB_occlusion_query GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_non_power_of_two GL_ARB_vertex_shader GL_NV_texgen_reflection GL_ARB_point_sprite GL_ARB_fragment_program_shadow GL_EXT_blend_equation_separate GL_ARB_depth_texture GL_ARB_texture_rectangle GL_ARB_draw_buffers GL_ARB_color_buffer_float GL_ARB_half_float_pixel GL_ARB_texture_float GL_ARB_pixel_buffer_object GL_EXT_framebuffer_object GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_occlusion_query2 GL_EXT_draw_buffers2 GL_WIN_swap_hint GL_EXT_texture_sRGB GL_ARB_multisample GL_EXT_packed_float GL_EXT_texture_shared_exponent GL_ARB_texture_rg GL_ARB_texture_compression_rgtc GL_NV_conditional_render GL_EXT_texture_swizzle GL_ARB_texture_gather GL_ARB_sync GL_ARB_framebuffer_sRGB GL_EXT_packed_depth_stencil GL_ARB_depth_buffer_float GL_EXT_transform_feedback GL_ARB_transform_feedback2 GL_ARB_draw_indirect GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_ARB_framebuffer_object GL_EXT_texture_array GL_EXT_texture_integer GL_ARB_map_buffer_range GL_EXT_texture_snorm GL_ARB_blend_func_extended GL_INTEL_performance_queries GL_ARB_copy_buffer GL_ARB_sampler_objects GL_NV_primitive_restart GL_ARB_seamless_cube_map GL_ARB_uniform_buffer_object GL_ARB_depth_clamp GL_ARB_vertex_array_bgra GL_ARB_shader_bit_encoding GL_ARB_draw_buffers_blend GL_ARB_geometry_shader4 GL_ARB_texture_query_lod GL_ARB_explicit_attrib_location GL_ARB_draw_elements_base_vertex GL_ARB_instanced_arrays GL_ARB_fragment_coord_conventions GL_EXT_gpu_program_parameters GL_ARB_texture_buffer_object_rgb32 GL_ARB_compatibility GL_ARB_texture_rgb10_a2ui GL_ARB_texture_multisample GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_timer_query GL_INTEL_map_texture GL_ARB_tessellation_shader GL_ARB_vertex_array_object GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_texture_cube_map_array GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_shader_subroutine GL_ARB_transform_feedback3 
19:31:39: Supported WGL extensions: WGL_EXT_depth_float WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_pixel_format WGL_ARB_pbuffer WGL_EXT_extensions_string WGL_EXT_swap_control WGL_EXT_swap_control_tear WGL_ARB_multisample WGL_ARB_pixel_format_float WGL_ARB_framebuffer_sRGB WGL_ARB_create_context WGL_ARB_create_context_profile WGL_EXT_pixel_format_packed_float WGL_EXT_create_context_es2_profile 
19:31:39: ***************************
19:31:39: *** GL Renderer Started ***
19:31:39: ***************************
19:31:39: Registering ResourceManager for type GpuProgram
19:31:39: GLSL support detected
19:31:39: GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
19:31:39: FBO PF_UNKNOWN depth/stencil support: D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:39: FBO PF_A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:39: FBO PF_R5G6B5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_B5G6R5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_A2R10G10B10 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_A2B10G10R10 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_SHORT_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_R3G3B2 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: FBO PF_SHORT_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
19:31:40: [GL] : Valid FBO targets PF_UNKNOWN PF_A8 PF_R5G6B5 PF_B5G6R5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_SHORT_RGBA PF_R3G3B2 PF_SHORT_RGB 
19:31:40: RenderSystem capabilities
19:31:40: -------------------------
19:31:40: RenderSystem Name: OpenGL Rendering Subsystem
19:31:40: GPU Vendor: intel
19:31:40: Device Name: Intel(R) HD Graphics
19:31:40: Driver Version: 4.0.0.0
19:31:40:  * Fixed function pipeline: yes
19:31:40:  * Hardware generation of mipmaps: no
19:31:40:  * Texture blending: yes
19:31:40:  * Anisotropic texture filtering: yes
19:31:40:  * Dot product texture operation: yes
19:31:40:  * Cube mapping: yes
19:31:40:  * Hardware stencil buffer: yes
19:31:40:    - Stencil depth: 8
19:31:40:    - Two sided stencil support: yes
19:31:40:    - Wrap stencil values: yes
19:31:40:  * Hardware vertex / index buffers: yes
19:31:40:  * 32-bit index buffers: yes
19:31:40:  * Vertex programs: yes
19:31:40:  * Number of floating-point constants for vertex programs: 256
19:31:40:  * Number of integer constants for vertex programs: 0
19:31:40:  * Number of boolean constants for vertex programs: 0
19:31:40:  * Fragment programs: yes
19:31:40:  * Number of floating-point constants for fragment programs: 256
19:31:40:  * Number of integer constants for fragment programs: 0
19:31:40:  * Number of boolean constants for fragment programs: 0
19:31:40:  * Geometry programs: no
19:31:40:  * Number of floating-point constants for geometry programs: 0
19:31:40:  * Number of integer constants for geometry programs: 0
19:31:40:  * Number of boolean constants for geometry programs: 0
19:31:40:  * Tesselation Hull programs: no
19:31:40:  * Number of floating-point constants for tesselation hull programs: 0
19:31:40:  * Number of integer constants for tesselation hull programs: 0
19:31:40:  * Number of boolean constants for tesselation hull programs: 0
19:31:40:  * Tesselation Domain programs: no
19:31:40:  * Number of floating-point constants for tesselation domain programs: 0
19:31:40:  * Number of integer constants for tesselation domain programs: 0
19:31:40:  * Number of boolean constants for tesselation domain programs: 0
19:31:40:  * Compute programs: no
19:31:40:  * Number of floating-point constants for compute programs: 0
19:31:40:  * Number of integer constants for compute programs: 0
19:31:40:  * Number of boolean constants for compute programs: 0
19:31:40:  * Supported Shader Profiles: arbfp1 arbvp1 glsl glsl100 glsl110 glsl120
19:31:40:  * Texture Compression: yes
19:31:40:    - DXT: yes
19:31:40:    - VTC: no
19:31:40:    - PVRTC: no
19:31:40:    - ATC: no
19:31:40:    - ETC1: no
19:31:40:    - ETC2: no
19:31:40:    - BC4/BC5: no
19:31:40:    - BC6H/BC7: no
19:31:40:  * Scissor Rectangle: yes
19:31:40:  * Hardware Occlusion Query: yes
19:31:40:  * User clip planes: yes
19:31:40:  * VET_UBYTE4 vertex element type: yes
19:31:40:  * Infinite far plane projection: yes
19:31:40:  * Hardware render-to-texture: yes
19:31:40:  * Floating point textures: yes
19:31:40:  * Non-power-of-two textures: yes
19:31:40:  * 1d textures: yes
19:31:40:  * Volume textures: yes
19:31:40:  * Multiple Render Targets: 8
19:31:40:    - With different bit depths: yes
19:31:40:  * Point Sprites: yes
19:31:40:  * Extended point parameters: yes
19:31:40:  * Max Point Size: 255
19:31:40:  * Vertex texture fetch: yes
19:31:40:  * Number of world matrices: 0
19:31:40:  * Number of texture units: 16
19:31:40:  * Stencil buffer depth: 8
19:31:40:  * Number of vertex blend matrices: 0
19:31:40:    - Max vertex textures: 16
19:31:40:    - Vertex textures shared: yes
19:31:40:  * Render to Vertex Buffer : no
19:31:40:  * Hardware Atomic Counters: no
19:31:40:  * GL 1.5 without VBO workaround: no
19:31:40:  * Frame Buffer objects: yes
19:31:40:  * Frame Buffer objects (ARB extension): no
19:31:40:  * Frame Buffer objects (ATI extension): no
19:31:40:  * PBuffer support: yes
19:31:40:  * GL 1.5 without HW-occlusion workaround: no
19:31:40:  * Vertex Array Objects: no
19:31:40:  * Separate shader objects: no
19:31:40: Using FSAA from GL_ARB_multisample extension.
19:31:40: DefaultWorkQueue('Root') initialising on thread 11b8.
19:31:40: DefaultWorkQueue('Root')::WorkerFunc - thread 30c starting.
19:31:40: DefaultWorkQueue('Root')::WorkerFunc - thread 56c starting.
19:31:40: Particle Renderer Type 'billboard' registered
19:31:41: SceneManagerFactory for type 'BspSceneManager' registered.
19:31:41: Registering ResourceManager for type BspLevel
19:31:41: SceneManagerFactory for type 'PCZSceneManager' registered.
19:31:41: MovableObjectFactory for type 'PCZLight' registered.
19:31:41: MovableObjectFactory for type 'Portal' registered.
19:31:41: MovableObjectFactory for type 'AntiPortal' registered.
19:31:41: PCZone Factory Type 'ZoneType_Octree' registered
19:31:41: SceneManagerFactory for type 'OctreeSceneManager' registered.
19:31:42: Can't assign material Examples/BeachStones to SubEntity of LightPlaneEntity because this Material does not exist. Have you forgotten to define it in a .material script?
04:15:01: DefaultWorkQueue('Root') shutting down on thread 11b8.
04:15:01: DefaultWorkQueue('Root')::WorkerFunc - thread 30c stopped.
04:15:01: DefaultWorkQueue('Root')::WorkerFunc - thread 56c stopped.
04:15:02: PCZone Factory Type 'ZoneType_Octree' unregistered
04:15:02: Unregistering ResourceManager for type BspLevel
04:15:02: *-*-* OGRE Shutdown
04:15:02: Unregistering ResourceManager for type Compositor
04:15:02: Unregistering ResourceManager for type Skeleton
04:15:02: Unregistering ResourceManager for type Mesh
04:15:02: Unregistering ResourceManager for type HighLevelGpuProgram
04:15:02: Uninstalling plugin: Octree Scene Manager
04:15:02: Plugin successfully uninstalled
04:15:02: Unloading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_OctreeSceneManager_d
04:15:02: Uninstalling plugin: Octree Zone Factory
04:15:02: Plugin successfully uninstalled
04:15:02: Unloading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_OctreeZone_d
04:15:02: Uninstalling plugin: Portal Connected Zone Scene Manager
04:15:02: Plugin successfully uninstalled
04:15:02: Unloading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_PCZSceneManager_d
04:15:02: Uninstalling plugin: Cg Program Manager
04:15:02: Plugin successfully uninstalled
04:15:02: Unloading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_CgProgramManager_d
04:15:02: Uninstalling plugin: BSP Scene Manager
04:15:02: Plugin successfully uninstalled
04:15:02: Unloading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_BSPSceneManager_d
04:15:02: Uninstalling plugin: ParticleFX
04:15:02: Plugin successfully uninstalled
04:15:02: Unloading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_ParticleFX_d
04:15:02: Uninstalling plugin: GL RenderSystem
04:15:02: Unregistering ResourceManager for type GpuProgram
04:15:02: *** Stopping Win32GL Subsystem ***
04:15:02: Unregistering ResourceManager for type Texture
04:15:02: Plugin successfully uninstalled
04:15:02: Unloading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\RenderSystem_GL_d
04:15:02: Uninstalling plugin: D3D11 RenderSystem
04:15:02: D3D11 : Shutting down cleanly.
04:15:02: D3D11 : Direct3D11 Rendering Subsystem destroyed.
04:15:02: Plugin successfully uninstalled
04:15:02: Unloading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\RenderSystem_Direct3D11_d
04:15:02: Uninstalling plugin: D3D9 RenderSystem
04:15:02: D3D9 : Shutting down cleanly.
04:15:02: D3D9 : Direct3D9 Rendering Subsystem destroyed.
04:15:02: Plugin successfully uninstalled
04:15:02: Unloading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\RenderSystem_Direct3D9_d
04:5:02: Unregistering ResourceManager for type Material
As you see that above, I was including some redundant paths because stumble upon problem loading some very simple yet plan with some simple light .. would be challenging for me :x trying to copy all materials folder resource from ogre sdk to the my app_path_dir\resources\ directory didnt solve the problem. Also if you examine from above ogre.log, it would always says "Can't assign material Examples/BeachStones to SubEntity of LightPlaneEntity because this Material does not exist. Have you forgotten to define it in a .material script?" which seems pointing to the bug Qt and ogre intregration.. is this right?using above code in createScene function works fine for native ogre window, but not for Qt angle/opengl and ogre intregration
picture attached.. thanks for your attentions before
Picture1.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5539
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1399

Re: simple texture plan didint load ogre1.9 with qt5 msvc

Post by dark_sylinc »

Your resources.cfg file should only contain forward slashes.
Most likely the material file where Examples/BeachStones lives is not within the specified resource locations.
joni
Gnoblar
Posts: 10
Joined: Wed Aug 06, 2014 10:27 am

Re: simple texture plan didint load ogre1.9 with qt5 msvc

Post by joni »

not working, here it is ogre.log

Code: Select all

05:23:32: Creating resource group General
05:23:32: Creating resource group Internal
05:23:32: Creating resource group Autodetect
05:23:32: SceneManagerFactory for type 'DefaultSceneManager' registered.
05:23:33: Registering ResourceManager for type Material
05:23:33: Registering ResourceManager for type Mesh
05:23:33: Registering ResourceManager for type Skeleton
05:23:33: MovableObjectFactory for type 'ParticleSystem' registered.
05:23:33: ArchiveFactory for archive type FileSystem registered.
05:23:33: ArchiveFactory for archive type Zip registered.
05:23:33: ArchiveFactory for archive type EmbeddedZip registered.
05:23:33: DDS codec registering
05:23:33: FreeImage version: 3.16.1
05:23:33: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
05:23:34: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,rgb,rgba,bw,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti,webp
05:23:34: ETC codec registering
05:23:34: Registering ResourceManager for type HighLevelGpuProgram
05:23:34: Registering ResourceManager for type Compositor
05:23:34: MovableObjectFactory for type 'Entity' registered.
05:23:34: MovableObjectFactory for type 'Light' registered.
05:23:34: MovableObjectFactory for type 'BillboardSet' registered.
05:23:34: MovableObjectFactory for type 'ManualObject' registered.
05:23:34: MovableObjectFactory for type 'BillboardChain' registered.
05:23:34: MovableObjectFactory for type 'RibbonTrail' registered.
05:23:34: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\RenderSystem_Direct3D9_d
05:23:35: Installing plugin: D3D9 RenderSystem
05:23:35: D3D9 : Direct3D9 Rendering Subsystem created.
05:23:35: D3D9: Driver Detection Starts
05:23:35: D3D9: Driver Detection Ends
05:23:35: Plugin successfully installed
05:23:35: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\RenderSystem_Direct3D11_d
05:23:35: Installing plugin: D3D11 RenderSystem
05:23:35: D3D11 : Direct3D11 Rendering Subsystem created.
05:23:36: D3D11: Driver Detection Starts
05:23:36: D3D11: Driver Detection Ends
05:23:36: Plugin successfully installed
05:23:36: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\RenderSystem_GL_d
05:23:36: Installing plugin: GL RenderSystem
05:23:37: OpenGL Rendering Subsystem created.
05:23:37: Plugin successfully installed
05:23:37: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_ParticleFX_d
05:23:38: Installing plugin: ParticleFX
05:23:38: Particle Emitter Type 'Point' registered
05:23:38: Particle Emitter Type 'Box' registered
05:23:38: Particle Emitter Type 'Ellipsoid' registered
05:23:38: Particle Emitter Type 'Cylinder' registered
05:23:38: Particle Emitter Type 'Ring' registered
05:23:38: Particle Emitter Type 'HollowEllipsoid' registered
05:23:38: Particle Affector Type 'LinearForce' registered
05:23:38: Particle Affector Type 'ColourFader' registered
05:23:38: Particle Affector Type 'ColourFader2' registered
05:23:38: Particle Affector Type 'ColourImage' registered
05:23:38: Particle Affector Type 'ColourInterpolator' registered
05:23:38: Particle Affector Type 'Scaler' registered
05:23:38: Particle Affector Type 'Rotator' registered
05:23:38: Particle Affector Type 'DirectionRandomiser' registered
05:23:38: Particle Affector Type 'DeflectorPlane' registered
05:23:38: Plugin successfully installed
05:23:38: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_BSPSceneManager_d
05:23:38: Installing plugin: BSP Scene Manager
05:23:38: Plugin successfully installed
05:23:38: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_CgProgramManager_d
05:23:38: Installing plugin: Cg Program Manager
05:23:38: Plugin successfully installed
05:23:38: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_PCZSceneManager_d
05:23:39: Installing plugin: Portal Connected Zone Scene Manager
05:23:39: PCZone Factory Type 'ZoneType_Default' registered
05:23:39: Plugin successfully installed
05:23:39: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_OctreeZone_d
05:23:39: Installing plugin: Octree Zone Factory
05:23:39: Plugin successfully installed
05:23:39: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_OctreeSceneManager_d
05:23:39: Installing plugin: Octree Scene Manager
05:23:39: Plugin successfully installed
05:23:39: *-*-* OGRE Initialising
05:23:39: *-*-* Version 1.9.0 (Ghadamon)
05:23:39: Creating resource group Essential
05:23:39: Added resource location 'D:/masteraplikasi/transfer21des/10des/ogre-tips/ogre_17_skrip/example15_qt/resources/exam/stone.zip' of type 'Zip' to resource group 'Essential'
05:23:39: Added resource location 'D:/masteraplikasi/transfer21des/10des/ogre-tips/ogre_17_skrip/example15_qt/resources/exam/thing.zip' of type 'Zip' to resource group 'Essential'
05:23:39: Added resource location 'D:/masteraplikasi/transfer21des/10des/ogre-tips/ogre_17_skrip/example15_qt/resources/exam/ninja.zip' of type 'Zip' to resource group 'Essential'
05:23:40: Added resource location 'D:/masteraplikasi/transfer21des/10des/ogre-tips/ogre_17_skrip/example15_qt/resources/exam' of type 'FileSystem' to resource group 'General'
05:23:40: CPU Identifier & Features
05:23:40: -------------------------
05:23:40:  *   CPU ID: GenuineIntel: Intel(R) Celeron(R) CPU 1000M @ 1.80GHz
05:23:40:  *      SSE: yes
05:23:40:  *     SSE2: yes
05:23:40:  *     SSE3: yes
05:23:40:  *      MMX: yes
05:23:40:  *   MMXEXT: yes
05:23:40:  *    3DNOW: no
05:23:40:  * 3DNOWEXT: no
05:23:40:  *     CMOV: yes
05:23:40:  *      TSC: yes
05:23:40:  *      FPU: yes
05:23:40:  *      PRO: yes
05:23:40:  *       HT: no
05:23:40: -------------------------
05:23:40: *** Starting Win32GL Subsystem ***
05:23:40: Registering ResourceManager for type Texture
05:23:41: GLRenderSystem::_createRenderWindow "OgreWidget_RenderWindow", 640x480 windowed  miscParams: FSAA=8 parentWindowHandle=132642 
05:23:41: Created Win32Window 'OgreWidget_RenderWindow' : 640x480, 32bpp
05:23:41: GL_VERSION = 4.0.0 - Build 9.17.10.2867
05:23:41: GL_VENDOR = Intel
05:23:41: GL_RENDERER = Intel(R) HD Graphics
05:23:41: GL_EXTENSIONS = GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_blend_color GL_EXT_abgr GL_EXT_texture3D GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_SGIS_texture_edge_clamp GL_SGIS_generate_mipmap GL_EXT_draw_range_elements GL_SGIS_texture_lod GL_EXT_rescale_normal GL_EXT_packed_pixels GL_EXT_texture_edge_clamp GL_EXT_separate_specular_color GL_ARB_multitexture GL_EXT_texture_env_combine GL_EXT_bgra GL_EXT_blend_func_separate GL_EXT_secondary_color GL_EXT_fog_coord GL_EXT_texture_env_add GL_ARB_texture_cube_map GL_ARB_transpose_matrix GL_ARB_texture_env_add GL_IBM_texture_mirrored_repeat GL_EXT_multi_draw_arrays GL_SUN_multi_draw_arrays GL_NV_blend_square GL_ARB_texture_compression GL_3DFX_texture_compression_FXT1 GL_EXT_texture_filter_anisotropic GL_ARB_texture_border_clamp GL_ARB_point_parameters GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_env_crossbar GL_EXT_texture_compression_s3tc GL_ARB_shadow GL_ARB_window_pos GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_ARB_vertex_program GL_EXT_texture_rectangle GL_ARB_fragment_program GL_EXT_stencil_two_side GL_ATI_separate_stencil GL_ARB_vertex_buffer_object GL_EXT_texture_lod_bias GL_ARB_occlusion_query GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_non_power_of_two GL_ARB_vertex_shader GL_NV_texgen_reflection GL_ARB_point_sprite GL_ARB_fragment_program_shadow GL_EXT_blend_equation_separate GL_ARB_depth_texture GL_ARB_texture_rectangle GL_ARB_draw_buffers GL_ARB_color_buffer_float GL_ARB_half_float_pixel GL_ARB_texture_float GL_ARB_pixel_buffer_object GL_EXT_framebuffer_object GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_occlusion_query2 GL_EXT_draw_buffers2 GL_WIN_swap_hint GL_EXT_texture_sRGB GL_ARB_multisample GL_EXT_packed_float GL_EXT_texture_shared_exponent GL_ARB_texture_rg GL_ARB_texture_compression_rgtc GL_NV_conditional_render GL_EXT_texture_swizzle GL_ARB_texture_gather GL_ARB_sync GL_ARB_framebuffer_sRGB GL_EXT_packed_depth_stencil GL_ARB_depth_buffer_float GL_EXT_transform_feedback GL_ARB_transform_feedback2 GL_ARB_draw_indirect GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_ARB_framebuffer_object GL_EXT_texture_array GL_EXT_texture_integer GL_ARB_map_buffer_range GL_EXT_texture_snorm GL_ARB_blend_func_extended GL_INTEL_performance_queries GL_ARB_copy_buffer GL_ARB_sampler_objects GL_NV_primitive_restart GL_ARB_seamless_cube_map GL_ARB_uniform_buffer_object GL_ARB_depth_clamp GL_ARB_vertex_array_bgra GL_ARB_shader_bit_encoding GL_ARB_draw_buffers_blend GL_ARB_geometry_shader4 GL_ARB_texture_query_lod GL_ARB_explicit_attrib_location GL_ARB_draw_elements_base_vertex GL_ARB_instanced_arrays GL_ARB_fragment_coord_conventions GL_EXT_gpu_program_parameters GL_ARB_texture_buffer_object_rgb32 GL_ARB_compatibility GL_ARB_texture_rgb10_a2ui GL_ARB_texture_multisample GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_timer_query GL_INTEL_map_texture GL_ARB_tessellation_shader GL_ARB_vertex_array_object GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_texture_cube_map_array GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_shader_subroutine GL_ARB_transform_feedback3 
05:23:42: Supported WGL extensions: WGL_EXT_depth_float WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_pixel_format WGL_ARB_pbuffer WGL_EXT_extensions_string WGL_EXT_swap_control WGL_EXT_swap_control_tear WGL_ARB_multisample WGL_ARB_pixel_format_float WGL_ARB_framebuffer_sRGB WGL_ARB_create_context WGL_ARB_create_context_profile WGL_EXT_pixel_format_packed_float WGL_EXT_create_context_es2_profile 
05:23:42: ***************************
05:23:42: *** GL Renderer Started ***
05:23:42: ***************************
05:23:42: Registering ResourceManager for type GpuProgram
05:23:42: GLSL support detected
05:23:42: GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
05:23:42: FBO PF_UNKNOWN depth/stencil support: D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_R5G6B5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_B5G6R5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_A2R10G10B10 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_A2B10G10R10 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_SHORT_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_R3G3B2 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: FBO PF_SHORT_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8 
05:23:42: [GL] : Valid FBO targets PF_UNKNOWN PF_A8 PF_R5G6B5 PF_B5G6R5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_SHORT_RGBA PF_R3G3B2 PF_SHORT_RGB 
05:23:42: RenderSystem capabilities
05:23:42: -------------------------
05:23:42: RenderSystem Name: OpenGL Rendering Subsystem
05:23:42: GPU Vendor: intel
05:23:42: Device Name: Intel(R) HD Graphics
05:23:42: Driver Version: 4.0.0.0
05:23:42:  * Fixed function pipeline: yes
05:23:42:  * Hardware generation of mipmaps: no
05:23:42:  * Texture blending: yes
05:23:42:  * Anisotropic texture filtering: yes
05:23:42:  * Dot product texture operation: yes
05:23:42:  * Cube mapping: yes
05:23:42:  * Hardware stencil buffer: yes
05:23:42:    - Stencil depth: 8
05:23:42:    - Two sided stencil support: yes
05:23:42:    - Wrap stencil values: yes
05:23:42:  * Hardware vertex / index buffers: yes
05:23:42:  * 32-bit index buffers: yes
05:23:42:  * Vertex programs: yes
05:23:42:  * Number of floating-point constants for vertex programs: 256
05:23:42:  * Number of integer constants for vertex programs: 0
05:23:42:  * Number of boolean constants for vertex programs: 0
05:23:42:  * Fragment programs: yes
05:23:42:  * Number of floating-point constants for fragment programs: 256
05:23:42:  * Number of integer constants for fragment programs: 0
05:23:42:  * Number of boolean constants for fragment programs: 0
05:23:42:  * Geometry programs: no
05:23:42:  * Number of floating-point constants for geometry programs: 0
05:23:42:  * Number of integer constants for geometry programs: 0
05:23:42:  * Number of boolean constants for geometry programs: 0
05:23:42:  * Tesselation Hull programs: no
05:23:42:  * Number of floating-point constants for tesselation hull programs: 0
05:23:42:  * Number of integer constants for tesselation hull programs: 0
05:23:42:  * Number of boolean constants for tesselation hull programs: 0
05:23:42:  * Tesselation Domain programs: no
05:23:42:  * Number of floating-point constants for tesselation domain programs: 0
05:23:42:  * Number of integer constants for tesselation domain programs: 0
05:23:42:  * Number of boolean constants for tesselation domain programs: 0
05:23:42:  * Compute programs: no
05:23:42:  * Number of floating-point constants for compute programs: 0
05:23:42:  * Number of integer constants for compute programs: 0
05:23:42:  * Number of boolean constants for compute programs: 0
05:23:42:  * Supported Shader Profiles: arbfp1 arbvp1 glsl glsl100 glsl110 glsl120
05:23:42:  * Texture Compression: yes
05:23:42:    - DXT: yes
05:23:42:    - VTC: no
05:23:42:    - PVRTC: no
05:23:42:    - ATC: no
05:23:43:    - ETC1: no
05:23:43:    - ETC2: no
05:23:43:    - BC4/BC5: no
05:23:43:    - BC6H/BC7: no
05:23:43:  * Scissor Rectangle: yes
05:23:43:  * Hardware Occlusion Query: yes
05:23:43:  * User clip planes: yes
05:23:43:  * VET_UBYTE4 vertex element type: yes
05:23:43:  * Infinite far plane projection: yes
05:23:43:  * Hardware render-to-texture: yes
05:23:43:  * Floating point textures: yes
05:23:43:  * Non-power-of-two textures: yes
05:23:43:  * 1d textures: yes
05:23:43:  * Volume textures: yes
05:23:43:  * Multiple Render Targets: 8
05:23:43:    - With different bit depths: yes
05:23:43:  * Point Sprites: yes
05:23:43:  * Extended point parameters: yes
05:23:43:  * Max Point Size: 255
05:23:43:  * Vertex texture fetch: yes
05:23:43:  * Number of world matrices: 0
05:23:43:  * Number of texture units: 16
05:23:43:  * Stencil buffer depth: 8
05:23:43:  * Number of vertex blend matrices: 0
05:23:43:    - Max vertex textures: 16
05:23:43:    - Vertex textures shared: yes
05:23:43:  * Render to Vertex Buffer : no
05:23:43:  * Hardware Atomic Counters: no
05:23:43:  * GL 1.5 without VBO workaround: no
05:23:43:  * Frame Buffer objects: yes
05:23:43:  * Frame Buffer objects (ARB extension): no
05:23:43:  * Frame Buffer objects (ATI extension): no
05:23:43:  * PBuffer support: yes
05:23:43:  * GL 1.5 without HW-occlusion workaround: no
05:23:43:  * Vertex Array Objects: no
05:23:43:  * Separate shader objects: no
05:23:43: Using FSAA from GL_ARB_multisample extension.
05:23:43: DefaultWorkQueue('Root') initialising on thread 123c.
05:23:43: DefaultWorkQueue('Root')::WorkerFunc - thread f38 starting.
05:23:43: DefaultWorkQueue('Root')::WorkerFunc - thread fb4 starting.
05:23:43: Particle Renderer Type 'billboard' registered
05:23:43: SceneManagerFactory for type 'BspSceneManager' registered.
05:23:43: Registering ResourceManager for type BspLevel
05:23:44: SceneManagerFactory for type 'PCZSceneManager' registered.
05:23:44: MovableObjectFactory for type 'PCZLight' registered.
05:23:44: MovableObjectFactory for type 'Portal' registered.
05:23:44: MovableObjectFactory for type 'AntiPortal' registered.
05:23:44: PCZone Factory Type 'ZoneType_Octree' registered
05:23:44: SceneManagerFactory for type 'OctreeSceneManager' registered.
05:23:44: Can't assign material Examples/BeachStones to SubEntity of LightPlaneEntity because this Material does not exist. Have you forgotten to define it in a .material script?
05:23:44: Mesh: Loading ninja.mesh.
05:23:45: Skeleton: Loading ninja.skeleton
05:23:45: Can't assign material Examples/Ninja to SubEntity of Head because this Material does not exist. Have you forgotten to define it in a .material script?
05:23:45: Can't assign material Examples/Ninja to SubEntity of Head because this Material does not exist. Have you forgotten to define it in a .material script?

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5539
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1399

Re: simple texture plan didint load ogre1.9 with qt5 msvc

Post by dark_sylinc »

Your log says:

Code: Select all

05:23:39: Creating resource group Essential
05:23:39: Added resource location 'D:/masteraplikasi/transfer21des/10des/ogre-tips/ogre_17_skrip/example15_qt/resources/exam/stone.zip' of type 'Zip' to resource group 'Essential'
05:23:39: Added resource location 'D:/masteraplikasi/transfer21des/10des/ogre-tips/ogre_17_skrip/example15_qt/resources/exam/thing.zip' of type 'Zip' to resource group 'Essential'
05:23:39: Added resource location 'D:/masteraplikasi/transfer21des/10des/ogre-tips/ogre_17_skrip/example15_qt/resources/exam/ninja.zip' of type 'Zip' to resource group 'Essential'
05:23:40: Added resource location 'D:/masteraplikasi/transfer21des/10des/ogre-tips/ogre_17_skrip/example15_qt/resources/exam' of type 'FileSystem' to resource group 'General'
Which means those are the only resource paths being looked for, which clearly doesn't correspond with your resources.cfg
Either you're loading the wrong resources.cfg file; or you're not loading it, and setting the resources locations by hand in C++ code.

Also I never see the "Parsing scripts for resource group Autodetect" log entry, which means you never call Ogre::ResourceGroupManager::initialiseAllResourceGroups; which is required to parse and load your missing material.
joni
Gnoblar
Posts: 10
Joined: Wed Aug 06, 2014 10:27 am

Re: simple texture plan didint load ogre1.9 with qt5 msvc

Post by joni »

yes but calling " Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();" would crash the app :lol: This is seems strange behaivor framework integration.. or may be I did miss something to include boost header and libs for multithread rendering? :?: I've tried this way but all results would be same .. I've seen someone example using qml FBO texture uploading with c++.. https://github.com/advancingu/QmlOgre was working fine for skybox material texturing.. but it does blew up higher memory consumption, since qml was using garbage collection and is like js and json language .. I do little avoid gl function and the friends since it does take more times to study.. sorry I'm university student sir :D and I do still consider that learning raw opengl function is "absolutely required" for 3D world..
here is ogre.log with debug information calling above function

Code: Select all

03:16:33: Creating resource group General
03:16:33: Creating resource group Internal
03:16:33: Creating resource group Autodetect
03:16:33: SceneManagerFactory for type 'DefaultSceneManager' registered.
03:16:33: Registering ResourceManager for type Material
03:16:33: Registering ResourceManager for type Mesh
03:16:33: Registering ResourceManager for type Skeleton
03:16:33: MovableObjectFactory for type 'ParticleSystem' registered.
03:16:33: ArchiveFactory for archive type FileSystem registered.
03:16:33: ArchiveFactory for archive type Zip registered.
03:16:33: ArchiveFactory for archive type EmbeddedZip registered.
03:16:33: DDS codec registering
03:16:33: FreeImage version: 3.16.1
03:16:33: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
03:16:33: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,rgb,rgba,bw,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti,webp
03:16:33: ETC codec registering
03:16:33: Registering ResourceManager for type HighLevelGpuProgram
03:16:33: Registering ResourceManager for type Compositor
03:16:33: MovableObjectFactory for type 'Entity' registered.
03:16:33: MovableObjectFactory for type 'Light' registered.
03:16:33: MovableObjectFactory for type 'BillboardSet' registered.
03:16:33: MovableObjectFactory for type 'ManualObject' registered.
03:16:33: MovableObjectFactory for type 'BillboardChain' registered.
03:16:33: MovableObjectFactory for type 'RibbonTrail' registered.
03:16:33: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\RenderSystem_Direct3D9_d
03:16:33: Installing plugin: D3D9 RenderSystem
03:16:33: D3D9 : Direct3D9 Rendering Subsystem created.
03:16:33: D3D9: Driver Detection Starts
03:16:33: D3D9: Driver Detection Ends
03:16:33: Plugin successfully installed
03:16:33: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\RenderSystem_GL_d
03:16:33: Installing plugin: GL RenderSystem
03:16:33: OpenGL Rendering Subsystem created.
03:16:33: Plugin successfully installed
03:16:33: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_ParticleFX_d
03:16:33: Installing plugin: ParticleFX
03:16:33: Particle Emitter Type 'Point' registered
03:16:33: Particle Emitter Type 'Box' registered
03:16:33: Particle Emitter Type 'Ellipsoid' registered
03:16:33: Particle Emitter Type 'Cylinder' registered
03:16:33: Particle Emitter Type 'Ring' registered
03:16:33: Particle Emitter Type 'HollowEllipsoid' registered
03:16:33: Particle Affector Type 'LinearForce' registered
03:16:33: Particle Affector Type 'ColourFader' registered
03:16:33: Particle Affector Type 'ColourFader2' registered
03:16:33: Particle Affector Type 'ColourImage' registered
03:16:33: Particle Affector Type 'ColourInterpolator' registered
03:16:33: Particle Affector Type 'Scaler' registered
03:16:33: Particle Affector Type 'Rotator' registered
03:16:33: Particle Affector Type 'DirectionRandomiser' registered
03:16:33: Particle Affector Type 'DeflectorPlane' registered
03:16:33: Plugin successfully installed
03:16:33: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_BSPSceneManager_d
03:16:33: Installing plugin: BSP Scene Manager
03:16:33: Plugin successfully installed
03:16:33: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_CgProgramManager_d
03:16:33: Installing plugin: Cg Program Manager
03:16:33: Plugin successfully installed
03:16:33: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_PCZSceneManager_d
03:16:33: Installing plugin: Portal Connected Zone Scene Manager
03:16:33: PCZone Factory Type 'ZoneType_Default' registered
03:16:33: Plugin successfully installed
03:16:33: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_OctreeZone_d
03:16:33: Installing plugin: Octree Zone Factory
03:16:33: Plugin successfully installed
03:16:33: Loading library D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug\Plugin_OctreeSceneManager_d
03:16:33: Installing plugin: Octree Scene Manager
03:16:33: Plugin successfully installed
03:16:33: *-*-* OGRE Initialising
03:16:33: *-*-* Version 1.9.0 (Ghadamon)
03:16:33: Creating resource group Essential
03:16:33: Added resource location 'D:/masteraplikasi/transfer21des/10des/ogre-tips/ogre_17_skrip/example15_qt/resources/exam/stone.zip' of type 'Zip' to resource group 'Essential'

and debug stack report

Code: Select all

-------------------

Error occured on Sunday, August 10, 2014 at 03:16:35.

D:\masteraplikasi\transfer21des\10des\ogre-tips\ogre_17_skrip\example15_qt\app.exe caused a Breakpoint at location 66399C79 in module C:\Windows\system32\MSVCR110D.dll.

Registers:
eax=00000001 ebx=7efde000 ecx=1f4310e5 edx=007f7924 esi=00000000 edi=00000000
eip=66399c79 esp=0044fa64 ebp=0044fa68 iopl=0         nv up ei pl zr na po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000246

AddrPC   Params
66399C79 011E4A28 00000001 1F07EA45  MSVCR110D.dll!_free_dbg
66399AFE 011E4A28 00000001 1F07EA39  MSVCR110D.dll!_free_dbg
6639756C 011E4A28 0044FB1A 0044FB00  MSVCR110D.dll!void __cdecl operator delete(void *)
013C39E0 011E4A28 00000070 0044FB1A  app.exe!std::allocator<char>::deallocate  [c:\program files (x86)\microsoft visual studio 11.0\vc\include\xmemory0 @ 586]
013C39B7 011E4A28 00000070 011E4A28  app.exe!std::_Wrap_alloc<std::allocator<char> >::deallocate  [c:\program files (x86)\microsoft visual studio 11.0\vc\include\xmemory0 @ 888]
013C3606 00000001 00000000 0044FBCC  app.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy  [c:\program files (x86)\microsoft visual studio 11.0\vc\include\xstring @ 2265]
013C80A3 1F2916C3 0044FDE8 00CF0458  app.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >  [c:\program files (x86)\microsoft visual studio 11.0\vc\include\xstring @ 965]
013CC8F1 1F291657 00000000 65726700  app.exe!QOgreWidgetDemo::setupResources  [d:\masteraplikasi\transfer21des\10des\ogre-tips\ogre_17_skrip\example15_qt\qogrewidgetdemo.cpp @ 36]
013CC4BA 1F2915C3 013E10F4 011E3938  app.exe!QOgreWidgetDemo::QOgreWidgetDemo  [d:\masteraplikasi\transfer21des\10des\ogre-tips\ogre_17_skrip\example15_qt\qogrewidgetdemo.cpp @ 173]
013C25C5 00000001 0080F668 00819EB8  app.exe!main  [d:\masteraplikasi\transfer21des\10des\ogre-tips\ogre_17_skrip\example15_qt\main.cpp @ 10]
013D4C99 0044FEAC 754B3677 7EFDE000  app.exe!__tmainCRTStartup  [f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c @ 536]
013D4DDD 7EFDE000 0044FEEC 76F49F42  app.exe!mainCRTStartup  [f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c @ 377]
754B3677 7EFDE000 772C9AFB 00000000  kernel32.dll!BaseThreadInitThunk
76F49F42 013D4DD0 7EFDE000 00000000  ntdll.dll!RtlInitializeExceptionChain
76F49F15 013D4DD0 7EFDE000 00000000  ntdll.dll!RtlInitializeExceptionChain

As you can see above at ogre.log after resource loading and the app would directly crash

resources.cfg

Code: Select all

# Resources required by the sample browser and most samples.
[Essential]
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\materials\textures
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\materials\textures\nvidia
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\models
FileSystem=.
FileSystem=resources\materials\scripts
FileSystem=resources\materials\exam
FileSystem=D:\masteraplikasi\transfer21des\10des\ogre-tips\ogre_17_skrip\example15_qt\resources\exam
FileSystem=resources\materials\programs



# Common sample resources needed by many of the samples.
# Rarely used resources should be separately loaded by the
# samples which require them.
[Popular]
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\fonts
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\materials\programs\Cg
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\materials\programs\HLSL
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\materials\programs
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\models
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\particle
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\DeferredShadingmedia
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\PCZAppmedia
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\RTShaderLib
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\RTShaderLib\materials
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\materials\scripts\SSAO
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\materials\textures\SSAO
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\volumeTerrain
Zip=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\packs\cubemap.zip
Zip=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\packs\cubemapsJS.zip
Zip=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\packs\dragon.zip
Zip=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\packs\fresneldemo.zip
Zip=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\packs\ogretestmap.zip
Zip=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\packs\ogredance.zip
Zip=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\packs\Sinbad.zip
Zip=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\packs\skybox.zip
Zip=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\volumeTerrain\volumeTerrainBig.zip
FileSystem=resources\\materials\\exam
FileSystem=resources\materials\exam


[General]
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\materials\programs
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\materials\scripts
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\materials\textures
FileSystem=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\media\materials\textures\nvid

plugins_d.cfg

Code: Select all

# Defines plugins to load

# Define plugin folder
PluginFolder=D:\masteraplikasi\stuff\ogre_msvc11\OGRE-SDK-1.9.0-vc110-x86-24.05.2014\bin\Debug

# Define plugins
 Plugin=RenderSystem_Direct3D9_d
# Plugin=RenderSystem_Direct3D11_d
	Plugin=RenderSystem_GL_d
 #Plugin=RenderSystem_GL3Plus_d
# Plugin=RenderSystem_GLES_d
# Plugin=RenderSystem_GLES2_d
 Plugin=Plugin_ParticleFX_d
 Plugin=Plugin_BSPSceneManager_d
 Plugin=Plugin_CgProgramManager_d
 Plugin=Plugin_PCZSceneManager_d
 Plugin=Plugin_OctreeZone_d
 Plugin=Plugin_OctreeSceneManager_d

last but not at least, I do also setup resource loading by hand here

Code: Select all

Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(file+"/resources/exam/stone.zip").toStdString().data(),"Zip","Essential");
  Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(file+"/resources/exam/thing.zip").toStdString().data(),"Zip","Essential");
  Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(file+"/resources/exam/ninja.zip").toStdString().data(),"Zip","Essential");
  Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(file+"/resources/exam").toStdString().data(),"FileSystem");
   Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
	
and the path perfectly valid local path relative to the path of my app.. and I dont forget to commenting declaration like this one

Code: Select all

    Ogre::ConfigFile cf;
    cf.load("resources.cfg");
So that resources.cfg report above sometimes not needed.. :wink:
final modified code QOgreWidgetDemo.cpp

Code: Select all

#include "QOgreWidgetDemo.hpp"
#include "OGRE/RenderSystems/Direct3D9/OgreD3D9Plugin.h"
#include "QOgreWidget.hpp" // must be included after the OGRE plugin
#include "QCameraMan.h"
#include <OgreVector3.h>
#include <OgreResourceGroupManager.h>
#include <QCoreApplication>
#include <QGroupBox>
#include <QPushButton>
#include <QVBoxLayout>
 
 
 

void QOgreWidgetDemo::setupResources(void) {
    // Load resource paths from config file
/*    Ogre::ConfigFile cf;
    cf.load("resources.cfg");

    // Go through all sections & settings in the file
    Ogre::ConfigFile::SectionIterator seci = cf.getSectionIterator();

    Ogre::String secName, typeName, archName;
    while (seci.hasMoreElements()) {
        secName = seci.peekNextKey();
        Ogre::ConfigFile::SettingsMultiMap *settings = seci.getNext();
        Ogre::ConfigFile::SettingsMultiMap::iterator i;
        for (i = settings->begin(); i != settings->end(); ++i) {
            typeName = i->first;
            archName = i->second;
            Ogre::ResourceGroupManager::getSingleton().addResourceLocation(archName, typeName, secName);
        }
    }*/
	 QString file = QCoreApplication::applicationDirPath();

  Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(file+"/resources/exam/stone.zip").toStdString().data(),"Zip","Essential");
  Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(file+"/resources/exam/thing.zip").toStdString().data(),"Zip","Essential");
  Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(file+"/resources/exam/ninja.zip").toStdString().data(),"Zip","Essential");
  Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(file+"/resources/exam").toStdString().data(),"FileSystem");
   Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
	
  
}


void QOgreWidgetDemo::setupRenderSystem() {
    // look for the openGL renderer in Ogre
    Ogre::RenderSystemList::const_iterator availableRendererIt = mOgreRoot->getAvailableRenderers().begin();
    
    while (availableRendererIt != mOgreRoot->getAvailableRenderers().end()) {
        Ogre::String rName = (*availableRendererIt)->getName();
        if (rName == "OpenGL Rendering Subsystem") {
            break;
        }
        ++availableRendererIt;
    }
    
    if (availableRendererIt == mOgreRoot->getAvailableRenderers().end()) {
        throw std::runtime_error("We were unable to find the OpenGL renderer in ogre's list, cannot continue");
    }
    
    // use the OpenGL renderer in the root config
    mRenderSystem = *availableRendererIt;
    mOgreRoot->setRenderSystem(mRenderSystem);
    mRenderWindow = mOgreRoot->initialise(false);
}


void QOgreWidgetDemo::createScene() {
    mSceneManager = mOgreRoot->createSceneManager(Ogre::ST_EXTERIOR_CLOSE);
    mCamera = mSceneManager->createCamera("QOgreWidget_Cam");
    mCamera->setPosition(5.0, 5.0, 200);
    mCamera->setAutoAspectRatio(true);
    mCameraMan = new OgreBites::QCameraMan(mCamera);
    mCameraMan->setCamera(mCamera);
    
    mOgreViewport = mOgreWidget->getEmbeddedOgreWindow()->addViewport(mCamera);
    
    this->resize(640, 480);
    this->setWindowTitle("QOgreWidget demo");
	
 
	Ogre::Plane plane(Ogre::Vector3::UNIT_Y, -10);
		Ogre::MeshManager::getSingleton().createPlane("plane",
			Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, plane,
			1500,1500,200,200,true,1,5,5,Ogre::Vector3::UNIT_Z);
			
			
    Ogre::Entity* ent = mSceneManager->createEntity("LightPlaneEntity", "plane");
		mSceneManager->getRootSceneNode()->createChildSceneNode()->attachObject(ent);
		 Ogre::String matname("Examples/BeachStones");
		 ent->setMaterialName(matname);
		 
		 
		Ogre::SceneNode* node = mSceneManager->createSceneNode("Node1");
		mSceneManager->getRootSceneNode()->addChild(node);

		Ogre::SceneNode* node2 = node->createChildSceneNode("node2");
		node2->setPosition(0,100,0);

		Ogre::Light* light = mSceneManager->createLight("Light1");
		light->setType(Ogre::Light::LT_SPOTLIGHT);
		light->setDirection(Ogre::Vector3(1,-1,0));
		light->setSpotlightInnerAngle(Ogre::Degree(5.0f));
		light->setSpotlightOuterAngle(Ogre::Degree(45.0f));
		light->setSpotlightFalloff(0.0f);
		light->setDiffuseColour(Ogre::ColourValue(0.0f,1.0f,0.0f));
		node2->attachObject(light);    
    
	
	Ogre::Entity *ogreHead = mSceneManager->createEntity("Head", "ninja.mesh");
	Ogre::SceneNode *headNode = mSceneManager->getRootSceneNode()->createChildSceneNode("HeadNode");
    headNode->attachObject(ogreHead);
	
}

    
void QOgreWidgetDemo::createQtWidgets() {
    QGroupBox *mainGroup = new QGroupBox;
    QVBoxLayout *mainLayout = new QVBoxLayout;
    mOgreWidget = new QOgreWidget(mOgreRoot, this, mainGroup);
    QPushButton *buttonZoomIn = new QPushButton(tr("Zoom &In"));
    QPushButton *buttonZoomOut = new QPushButton(tr("Zoom &Out"));
    mainLayout->addWidget(buttonZoomIn);
    mainLayout->addWidget(buttonZoomOut);
    connect(buttonZoomIn, SIGNAL(released()), this, SLOT(onZoomIn()));
    connect(buttonZoomOut, SIGNAL(released()), this, SLOT(onZoomOut()));
    
    mainLayout->addWidget(mOgreWidget);
    mainGroup->setLayout(mainLayout);
    setCentralWidget(mainGroup);
}


void QOgreWidgetDemo::onZoomIn() {
    mCamera->moveRelative(Ogre::Vector3(0, 0, -10.0));
}


void QOgreWidgetDemo::onZoomOut() {
    mCamera->moveRelative(Ogre::Vector3(0, 0, 10));
}


void QOgreWidgetDemo::ogreMousePressEvent(QMouseEvent *event) {
    mCameraMan->injectMouseDown(*event);
}


void QOgreWidgetDemo::ogreMouseMoveEvent(QMouseEvent *event) {
    if (event->buttons() & Qt::LeftButton) {
        std::cout << "mouse Moved (left button pressed)";
    } else if (event->buttons() & Qt::RightButton) {
        std::cout << "mouse Moved (right button pressed)";
    }
    int x = event->x();
    int y = event->y();
    int dx = mMouseMoveXOld - x;
    int dy = mMouseMoveYOld - y;
    
    mMouseMoveXOld = x;
    mMouseMoveYOld = y;
    
    mCameraMan->injectMouseMove(*event);
}


QOgreWidgetDemo::QOgreWidgetDemo()
    {
	mOgreRoot= new Ogre::Root("plugins_d.cfg");
    
    setupResources();
    setupRenderSystem();
    
    createQtWidgets();
    createScene();
    
    mOgreRoot->renderOneFrame();
    this->show(); // give focus to our application and make it visible
}


QOgreWidgetDemo::~QOgreWidgetDemo() {
    delete mOgreRoot;
    delete mOgreWidget;
}