Page 47 of 51

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Mon Aug 24, 2015 10:12 pm
by robmar
I´ve made considerable patches to the 1.7.3 driver, and fixed bugs and limitations in mesh loaders, so I could at least start testing with DX11, if that is, there was something semi-solid to test.

Can you not just make the best release there is so that at least people can start testing?

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Tue Aug 25, 2015 10:04 am
by CuteAlien
@robmar: I know nothing about the shader-pipeline except that it's about DX 10, 11. Hybrid and Nadro are the ones that have worked on that. And as long as we haven't 1.9 out it won't be on my list. After that I will take a look because I've heard it changes some core-structures and I know Nadro wants to get rid of the fixed function pipeline for it. Which is both scary to me as it likely breaks my stuff and I don't even like shaders that much.

I don't know what kind of release you expect. All I can do is the same as you - run it through the compiler once. I'm not starting to create nightly-builds for Irrlicht developer branches. If anyone wants to do that I'm glad to give him a link on the front-page so people can find it.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Tue Aug 25, 2015 2:37 pm
by robmar
I´d understood from Grantye that he had already incorporated his driver in earlier releases for testing. I think I downloaded one of them, but on my VS2010 it was listing errors.

May Grantye can advise? Clearly early testing of the DX10 driver with Irrlicht would speed things along.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Tue Aug 25, 2015 2:57 pm
by CuteAlien
Maybe, but this is all about the shader branch with which I'm not familiar so far. I'll look at it one day, but for now I just commented in this thread to say I like switching to c++11 after 1.9 release as well. I'm out here again :-)

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Tue Aug 25, 2015 6:24 pm
by Nadro
@robmar
Do you need precompiled binaries? I can upload binaries somewhere, however you should try to compile it with the latest Visual Studio (for Win32 apps), it works fine.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Tue Aug 25, 2015 8:09 pm
by Granyte
It's probably just that vs2010 is missing some configuration on the shader pipeline because most of us are not using it robmar just need to either
take a newer one and change de v120 to v90
take the vs2010 solution and add the missing files

If you list your error i'm sure i can guide you to fix them.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Wed Aug 26, 2015 9:32 am
by robmar
So where can I get a newer one? Do you it available as a single zip, as I would really like to start testing.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Wed Aug 26, 2015 1:44 pm
by Granyte
On page 43 is the previous publication I made.

I will try to finish the transparency issues once and for all i'm almost there and wether I succeed or not I will publish my result Saturday or sunday

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Wed Aug 26, 2015 4:01 pm
by robmar
Okay, I´ll wait to hear, good luck!

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Thu Sep 10, 2015 12:39 pm
by masm32
Hi,
I'am interested to use the Irrlicht Engine, because developement of my own Engine takes far to long and I have not the time to finish my Engine. But one point is to be able to use Directx11. So I tested the shader-pipeline branch. I'll compile with VS 2015 and I noticed that the shader for DirectX11 contain some errors, wich prevents the shaders to be compiled.

"cbuffer cbPerFrame : register(c0)\n"\

For Shader Variables c means Buffer Offset. It must be b to be constant buffer.

"cbuffer cbPerFrame : register(b0)\n"\

With this fix Direct3D11 will work.

Maybe this helps someone who is interested.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Thu Sep 10, 2015 11:44 pm
by robmar
When you say "work", do you mean "compile", or have you actually built and tested using the samples?

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Fri Sep 11, 2015 6:37 am
by masm32
If I'll change c# to b# (# number), then the shader compiles without this error. I think Visual Studio 2015 introduced some stricter checks. It must be b for constant buffer. With this change the shader compiles and the example works. I have tested this.

I have used a Perfomance Analyser to find the bottleneck of the slow Direct3D11 driver. It says that the most time consuming work is done in the driver. Clearly a sign that there are to many function calls where made (D3D11 Interface).

Unfortunately I don't have much insight knowledge of the Irrlicht engine.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Fri Sep 11, 2015 10:09 am
by robmar
Which shader, which file, which example did you run?

Is this the Irrlicht+DX11 download a few pages back on this thread?

The driver handles all the 3D work, hence the results you see.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Fri Sep 11, 2015 11:32 am
by masm32
If you read my posts carefully you can get your information.
The Shaders doesn't compile, so you get an exception if you try to execute an example, doesn't matter which one.

There are only 3 Shader in Direct3D11. FIXED_FUNCTION_SHADER as example.
"cbuffer cbPerFrame : register(c0)\n"\ is used in this shader to set cbPerFrame cbuffer to register c0.
The Documentation for HLSL says that c is an offset in a buffer, and b to set constantbuffer.
I wrote that I compile Irrlicht with Visual Studio 2015.

I tested the shader-pipeline branch. From SourceControl.

With the driver you are right. I was not clear with that. PerfLog showed that for Direct3D11 over 40% of the time is used in the Graphic card driver. That means that there are to many calls of the Direct3D11 Interface occure. This is the reason why FPS in D3D11 are half as high as with D3D9 or OpenGL.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Sat Sep 12, 2015 8:41 am
by robmar
Well Grantye said performance was as good or better than DX9, so I have no idea!

Grantye?