HLMS Sample not working

Problems building or running the engine, queries about how to use features etc.
Post Reply
zZUBAa
Gnoblar
Posts: 8
Joined: Thu Mar 28, 2013 11:03 pm

HLMS Sample not working

Post by zZUBAa » Thu Jul 13, 2017 11:24 pm

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:

Image

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!
0 x

User avatar
Zonder
Gargoyle
Posts: 1074
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England

Re: HLMS Sample not working

Post by Zonder » Fri Jul 14, 2017 10:01 am

check ogre.log for errors.
0 x
There are 10 types of people in the world: Those who understand binary, and those who don't...
My Blog - http://www.This post is suspected as SPAM! If you feel otherwise contact a moderator.

zZUBAa
Gnoblar
Posts: 8
Joined: Thu Mar 28, 2013 11:03 pm

Re: HLMS Sample not working

Post by zZUBAa » Fri Jul 14, 2017 8:35 pm

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?
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 305
Joined: Sun Mar 30, 2014 2:51 pm
Contact:

Re: HLMS Sample not working

Post by paroj » Sun Jul 16, 2017 11:06 am

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?
0 x

zZUBAa
Gnoblar
Posts: 8
Joined: Thu Mar 28, 2013 11:03 pm

Re: HLMS Sample not working

Post by zZUBAa » Mon Jul 17, 2017 7:03 pm

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?
Hi, I've set it to 1 and recompiled, now i'm getting crash during start of sample with this error:

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!
0 x

zZUBAa
Gnoblar
Posts: 8
Joined: Thu Mar 28, 2013 11:03 pm

Re: HLMS Sample not working

Post by zZUBAa » Mon Jul 17, 2017 7:40 pm

Here's the screen from GL3+ render system with error log:

Image

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.
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 305
Joined: Sun Mar 30, 2014 2:51 pm
Contact:

Re: HLMS Sample not working

Post by paroj » Mon Jul 17, 2017 11:58 pm

0 x

frostbyte
Orc Shaman
Posts: 722
Joined: Fri May 31, 2013 2:28 am

Re: HLMS Sample not working

Post by frostbyte » Tue Jul 18, 2017 3:50 am

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 :P
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.. :D
0 x
the government took my kudos, now i'm kudosless :?

zZUBAa
Gnoblar
Posts: 8
Joined: Thu Mar 28, 2013 11:03 pm

Re: HLMS Sample not working

Post by zZUBAa » Tue Jul 18, 2017 10:15 pm

paroj wrote:Try replacing %zu by %lu here: https://github.com/OGRECave/ogre/blob/m ... r.cpp#L405
Thanks for your help, i changed it to %lu and it started work on DX9 environment but still crashes on DX11:

Image

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.
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 305
Joined: Sun Mar 30, 2014 2:51 pm
Contact:

Re: HLMS Sample not working

Post by paroj » Wed Jul 19, 2017 12:17 am

this is merely an warning. Look for D3D11Device::setExceptionsErrorLevel/ D3D11_CREATE_DEVICE_DEBUG.
0 x

zZUBAa
Gnoblar
Posts: 8
Joined: Thu Mar 28, 2013 11:03 pm

Re: HLMS Sample not working

Post by zZUBAa » Wed Jul 19, 2017 6:05 pm

paroj wrote:this is merely an warning. Look for D3D11Device::setExceptionsErrorLevel/ D3D11_CREATE_DEVICE_DEBUG.
Thanks man, i've disabled debug level and it works now, awesome!
0 x

zZUBAa
Gnoblar
Posts: 8
Joined: Thu Mar 28, 2013 11:03 pm

Re: HLMS Sample not working

Post by zZUBAa » Fri Jul 21, 2017 9:42 pm

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:

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
Can you please tell me what could be wrong there?
0 x

Post Reply