HLMS Sample not working
-
- Gnoblar
- Posts: 8
- Joined: Thu Mar 28, 2013 11:03 pm
HLMS Sample not working
Hi, I have downloaded latest source from default branch of ogre, created solution using cmake with Visual studio 2013 X64 configuration,
did build of all components and samples, launched sample browser with Dx11 render engine and HLMS sample doesn't work correctly:
I've tried with another render engines like Dx9/Ogl/Ogl 3+ but HLMS sample doesn't work anyway...
Can you please tell me what could be wrong in my ogre build? Thanks in advance!
did build of all components and samples, launched sample browser with Dx11 render engine and HLMS sample doesn't work correctly:
I've tried with another render engines like Dx9/Ogl/Ogl 3+ but HLMS sample doesn't work anyway...
Can you please tell me what could be wrong in my ogre build? Thanks in advance!
- Zonder
- Ogre Magi
- Posts: 1168
- Joined: Mon Aug 04, 2008 7:51 pm
- Location: Manchester - England
- x 73
Re: HLMS Sample not working
check ogre.log for errors.
There are 10 types of people in the world: Those who understand binary, and those who don't...
-
- Gnoblar
- Posts: 8
- Joined: Thu Mar 28, 2013 11:03 pm
Re: HLMS Sample not working
here's the warnings from log:
Ogre: WARNING: material PBS_3_3_0 has no supportable Techniques and will be blank. Explanation:
Pass 0: vertex program bbeaf706_vs cannot be used - not supported.
It's same for all pbs materials, Does it seem some shader profiles aren't supported?
Ogre: WARNING: material PBS_3_3_0 has no supportable Techniques and will be blank. Explanation:
Pass 0: vertex program bbeaf706_vs cannot be used - not supported.
It's same for all pbs materials, Does it seem some shader profiles aren't supported?
-
- OGRE Team Member
- Posts: 1995
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1075
- Contact:
Re: HLMS Sample not working
for PBS to work with D3D11 you have to set this to 1:
https://github.com/OGRECave/ogre/blob/m ... stem.h#L49
but GL & GL3Plus should work as is. Do you get any errors when you run them?
https://github.com/OGRECave/ogre/blob/m ... stem.h#L49
but GL & GL3Plus should work as is. Do you get any errors when you run them?
-
- Gnoblar
- Posts: 8
- Joined: Thu Mar 28, 2013 11:03 pm
Re: HLMS Sample not working
Hi, I've set it to 1 and recompiled, now i'm getting crash during start of sample with this error:paroj wrote:for PBS to work with D3D11 you have to set this to 1:
https://github.com/OGRECave/ogre/blob/m ... stem.h#L49
but GL & GL3Plus should work as is. Do you get any errors when you run them?
Code: Select all
Ogre: Warnings while compiling D3D11 high-level shader bbeaf706_vs:
(28,19-43): warning X3206: 'mul': implicit truncation of vector type
First-chance exception at 0x000007FEFDD99E5D in SampleBrowser_d.exe: Microsoft C++ exception: Ogre::D3D11RenderingAPIException at memory location 0x000000000014C260.
Ogre: High-level program 'f6941d7c_fs' is not supported: Cannot compile D3D11 high-level shader f6941d7c_fs Errors:
(1,9-14): warning X3568: 'target' : unknown pragma ignored
(249,9-47): warning X3206: implicit truncation of vector type
(259,43-44): error X3004: undeclared identifier 'zu'
Assertion failed!
-
- Gnoblar
- Posts: 8
- Joined: Thu Mar 28, 2013 11:03 pm
Re: HLMS Sample not working
Here's the screen from GL3+ render system with error log:
Code: Select all
Ogre: GLSL compile log: 72832ec3_fs
0(261) : error C1008: undefined variable "zu"
0(271) : error C1008: undefined variable "zu"
0(288) : error C1008: undefined variable "zu"
0(293) : error C1008: undefined variable "zu"
0(294) : error C1008: undefined variable "zu"
0(298) : error C1008: undefined variable "zu"
0(299) : error C1008: undefined variable "zu"
0(301) : error C1008: undefined variable "zu"
0(311) : error C1008: undefined variable "zu"
0(317) : error C1008: undefined variable "zu"
0(322) : error C1008: undefined variable "zu"
0(323) : error C1008: undefined variable "zu"
0(327) : error C1008: undefined variable "zu"
0(328) : error C1008: undefined variable "zu"
0(330) : error C1008: undefined variable "zu"
0(340) : error C1008: undefined variable "zu"
Ogre: fragment Shader 72832ec3_fs failed to compile. See compile log above for details.
-
- OGRE Team Member
- Posts: 1995
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1075
- Contact:
-
- Orc Shaman
- Posts: 737
- Joined: Fri May 31, 2013 2:28 am
- x 65
Re: HLMS Sample not working
hi, i get the same results( black/null material ) with opengl
with dx11 nothing appears( something to do with rtss, i think... )
with dx9 HLMS works great and looks very nice
i have an older version of ogre with some patches for hlms mem-licks( thanks paroj... )
my hlms version did'nt work at all with the "lu"->"zu" patch
now days i have only intel-HD4000 to test with, but i suspect it might be working with newer/nvidia/amd gpu's
HLMS 1.10 is a life-saver, would be great to finally get this issues sorted out..
with dx11 nothing appears( something to do with rtss, i think... )
with dx9 HLMS works great and looks very nice
i have an older version of ogre with some patches for hlms mem-licks( thanks paroj... )
my hlms version did'nt work at all with the "lu"->"zu" patch
now days i have only intel-HD4000 to test with, but i suspect it might be working with newer/nvidia/amd gpu's
HLMS 1.10 is a life-saver, would be great to finally get this issues sorted out..
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
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
-
- Gnoblar
- Posts: 8
- Joined: Thu Mar 28, 2013 11:03 pm
Re: HLMS Sample not working
Thanks for your help, i changed it to %lu and it started work on DX9 environment but still crashes on DX11:paroj wrote:Try replacing %zu by %lu here: https://github.com/OGRECave/ogre/blob/m ... r.cpp#L405
Here's the log:
Code: Select all
Ogre: Warnings while compiling D3D11 high-level shader bbeaf706_vs:
(28,19-43): warning X3206: 'mul': implicit truncation of vector type
Ogre: Warnings while compiling D3D11 high-level shader f6941d7c_fs:
(1,9-14): warning X3568: 'target' : unknown pragma ignored
(249,9-47): warning X3206: implicit truncation of vector type
D3D11 WARNING: ID3D11DeviceContext::DrawIndexed: The Pixel Shader unit expects a Sampler to be set at Slot 0, but none is bound. This is perfectly valid, as a NULL Sampler maps to default Sampler state. However, the developer may not want to rely on the defaults. [ EXECUTION WARNING #352: DEVICE_DRAW_SAMPLER_NOT_SET]
First-chance exception at 0x000007FEFD289E5D in SampleBrowser_d.exe: Microsoft C++ exception: Ogre::RenderingAPIException at memory location 0x00000000001DBFB0.
-
- OGRE Team Member
- Posts: 1995
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1075
- Contact:
Re: HLMS Sample not working
this is merely an warning. Look for D3D11Device::setExceptionsErrorLevel/ D3D11_CREATE_DEVICE_DEBUG.
-
- Gnoblar
- Posts: 8
- Joined: Thu Mar 28, 2013 11:03 pm
Re: HLMS Sample not working
Thanks man, i've disabled debug level and it works now, awesome!paroj wrote:this is merely an warning. Look for D3D11Device::setExceptionsErrorLevel/ D3D11_CREATE_DEVICE_DEBUG.
-
- Gnoblar
- Posts: 8
- Joined: Thu Mar 28, 2013 11:03 pm
Re: HLMS Sample not working
Hi all, I have one more problem, when i'm using manual objects(created by begin/end) and then assigning pbs material to it,
i'm receiving crash like this:
Can you please tell me what could be wrong there?
i'm receiving crash like this:
Code: Select all
Exception occurred: RenderingApiException: Unable to set D3D11 vertex declaration in
D3D11VertexDeclaration: getILayoutByShader at OgreD3D11VertexDeclaration.cpp (line 138)
Exception type: class Ogre::RenderingAPIException