[Solved]Problems setting up Ogre 1.9 in VisualStudio 2015

Problems building or running the engine, queries about how to use features etc.
Post Reply
Onelio1
Gnoblar
Posts: 3
Joined: Mon Nov 14, 2016 10:38 am

[Solved]Problems setting up Ogre 1.9 in VisualStudio 2015

Post by Onelio1 »

Hello, I recently discovered about ogre and I wanted to test it.
I downloaded the 1.9 SDK for VisualStudio 2015 in Windows 10 from here http://www.ogre3d.org/forums/viewtopic.php?t=69274 and followed all the steps present here http://www.ogre3d.org/tikiwiki/tiki-ind ... evelopment with problems that I fixed taking a look at the forum.
But now I'm facing something that I really don't know how to fix.
I'm currently trying to build the Tutorial example but every time I execute in in Debug/Release mode I get this error:

Code: Select all

18:48:31: OGRE EXCEPTION(3:RenderingAPIException): Attempted to render to a D3D11 device without both vertex and fragment shaders there is no fixed pipeline in d3d11 - use the RTSS or write custom shaders. in D3D11RenderSystem::_render at D:\Work\Source\OGRE\RenderSystems\Direct3D11\src\OgreD3D11RenderSystem.cpp (line 2501)
I've searched in the forum for possible fixes and I found people talking about possible missing files in the resources_d.cfg/resources.cfg files, I opened them and (I think) it's ok.
# Resources required by the sample browser and most samples.
[Essential]
Zip=../../Media/packs/SdkTrays.zip
Zip=../../Media/packs/profiler.zip
FileSystem=../../Media/thumbnails

# Common sample resources needed by many of the samples.
# Rarely used resources should be separately loaded by the
# samples which require them.
[Popular]
FileSystem=../../Media/fonts
FileSystem=../../Media/materials/programs
FileSystem=../../Media/materials/scripts
FileSystem=../../Media/materials/textures
FileSystem=../../Media/materials/textures/nvidia
FileSystem=../../Media/models
FileSystem=../../Media/particle
FileSystem=../../Media/DeferredShadingMedia
FileSystem=../../Media/PCZAppMedia
FileSystem=../../Media/RTShaderLib
FileSystem=../../Media/RTShaderLib/materials
FileSystem=../../Media/materials/scripts/SSAO
FileSystem=../../Media/materials/textures/SSAO
FileSystem=../../Media/volumeTerrain
Zip=../../Media/packs/cubemap.zip
Zip=../../Media/packs/cubemapsJS.zip
Zip=../../Media/packs/dragon.zip
Zip=../../Media/packs/fresneldemo.zip
Zip=../../Media/packs/ogretestmap.zip
Zip=../../Media/packs/ogredance.zip
Zip=../../Media/packs/Sinbad.zip
Zip=../../Media/packs/skybox.zip
Zip=../../Media/volumeTerrain/volumeTerrainBig.zip

[General]
FileSystem=../../Media

# Materials for visual tests
[Tests]
FileSystem=../../Tests/Media
So I really don't know how could I fix it, Could somebody help me please? :(

Thanks!
Last edited by Onelio1 on Tue Nov 15, 2016 6:21 pm, edited 1 time in total.
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 65

Re: Problems setting up Ogre 1.9 in VisualStudio 2015

Post by frostbyte »

nice to know that you've managed to compile 1.9 with VS2015
however...DX11 on 1.9 is not really working, if you want good dx11/GL3.3+ support( with geometry/compute shaders ) then i suggest you move to ogre 1.10 or 2.1
your problem is that the turtorial probably uses fixed function pipeline materials( dx7 legacy ) meaning they don't have shader programs
the solution use dx9...there is a component called RTSS which is used to emulate the fixed-function-pipeline
http://www.ogre3d.org/tikiwiki/tiki-ind ... der+System it is enabled by default on DX9
not sure about RTSS and dx11- i think you need to enable it somehow
any way if you move to ogre 1.10 or 2.1 there is PBS( physically based ) material system that looks much better then RTSS
but for start in order to finish the tutorial just switch to DX9/openGL
have fun (-:
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos
Onelio1
Gnoblar
Posts: 3
Joined: Mon Nov 14, 2016 10:38 am

Re: Problems setting up Ogre 1.9 in VisualStudio 2015

Post by Onelio1 »

frostbyte wrote:nice to know that you've managed to compile 1.9 with VS2015
however...DX11 on 1.9 is not really working, if you want good dx11/GL3.3+ support( with geometry/compute shaders ) then i suggest you move to ogre 1.10 or 2.1
your problem is that the turtorial probably uses fixed function pipeline materials( dx7 legacy ) meaning they don't have shader programs
the solution use dx9...there is a component called RTSS which is used to emulate the fixed-function-pipeline
http://www.ogre3d.org/tikiwiki/tiki-ind ... der+System it is enabled by default on DX9
not sure about RTSS and dx11- i think you need to enable it somehow
any way if you move to ogre 1.10 or 2.1 there is PBS( physically based ) material system that looks much better then RTSS
but for start in order to finish the tutorial just switch to DX9/openGL
have fun (-:

Thanks so much for your help, I switched to ogre 1.10 to have a better support for DX11 But it keeps giving me the same error https://i.gyazo.com/8a04629be3f71b0eb3f ... cedbb8.png even before I switched to the 1.10 tutorial. :cry:

PD: I found that Open Gl and Open GL 3+ gives the same error even if I'm using it instead of DX11
Onelio1
Gnoblar
Posts: 3
Joined: Mon Nov 14, 2016 10:38 am

Re: Problems setting up Ogre 1.9 in VisualStudio 2015

Post by Onelio1 »

Ok, Finally managed to work.
Thanks for the help, I did it changing the cmake to build with D3D9 and done!

PD: 1.10 still don't support d3d11
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 65

Re: [Solved]Problems setting up Ogre 1.9 in VisualStudio 201

Post by frostbyte »

ogre 1.10 dx11 should work just fine...
you must have skipped the part where i write "your problem is..."
so again...
with dx11 you need to enable RTSS(with dx9 its enabled by default ), just type "dx11 rtss" in the google search bar[/u]
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos
Post Reply