HLMS Sample not working

Problems building or running the engine, queries about how to use features etc.

HLMS Sample not working

Postby 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!
zZUBAa
Gnoblar
 
Posts: 8
Kudos: 0
Joined: 28 Mar 2013

Re: HLMS Sample not working

Postby Zonder » Fri Jul 14, 2017 10:01 am

check ogre.log for errors.
There are 10 types of people in the world: Those who understand binary, and those who don't...
My Blog - http://www.dreamwalkerblog.com
User avatar
Zonder
Gargoyle
 
Posts: 1056
Kudos: 38
Joined: 04 Aug 2008
Location: Manchester - England

Re: HLMS Sample not working

Postby 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?
zZUBAa
Gnoblar
 
Posts: 8
Kudos: 0
Joined: 28 Mar 2013

Re: HLMS Sample not working

Postby 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?
paroj
OGRE Team Member
OGRE Team Member
 
Posts: 204
Kudos: 46
Joined: 30 Mar 2014

Re: HLMS Sample not working

Postby 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!
zZUBAa
Gnoblar
 
Posts: 8
Kudos: 0
Joined: 28 Mar 2013

Re: HLMS Sample not working

Postby 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.
zZUBAa
Gnoblar
 
Posts: 8
Kudos: 0
Joined: 28 Mar 2013

Re: HLMS Sample not working

Postby paroj » Mon Jul 17, 2017 11:58 pm

paroj
OGRE Team Member
OGRE Team Member
 
Posts: 204
Kudos: 46
Joined: 30 Mar 2014

Re: HLMS Sample not working

Postby 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
For this message the author frostbyte has received 64K kudos
frostbyte
Gnoll
 
Posts: 689
Kudos: 43
Joined: 31 May 2013

Re: HLMS Sample not working

Postby 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.
zZUBAa
Gnoblar
 
Posts: 8
Kudos: 0
Joined: 28 Mar 2013

Re: HLMS Sample not working

Postby paroj » Wed Jul 19, 2017 12:17 am

this is merely an warning. Look for D3D11Device::setExceptionsErrorLevel/ D3D11_CREATE_DEVICE_DEBUG.
paroj
OGRE Team Member
OGRE Team Member
 
Posts: 204
Kudos: 46
Joined: 30 Mar 2014

Re: HLMS Sample not working

Postby 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!
zZUBAa
Gnoblar
 
Posts: 8
Kudos: 0
Joined: 28 Mar 2013

Re: HLMS Sample not working

Postby 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?
zZUBAa
Gnoblar
 
Posts: 8
Kudos: 0
Joined: 28 Mar 2013


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 5 guests