Page 2 of 2

Re: GLSL, CG, HLSL, FX, CGFX and CUDA

Posted: Sat Sep 26, 2015 12:21 pm
by Vectrotek
- GLSL to HLSL -

O.K. So I thought, get hold of a very simple project that uses HLSL in a very simple way.
I found the "Cell Shader" example on the forum.
Nice. Now all I have to do is to create a project for it, change

Code: Select all

createDevice(EDT_DIRECT3D9, dimension2d(800, 600), 32);
to

Code: Select all

device = createDevice(EDT_DIRECT3D9, core::dimension2d<u32>(1024, 768));
(I understand that) and change a few file references like "torus.b3d" to "Data/torus.b3d" and
"cel.hlsl" to "Shaders/cel.hlsl" (I like it that way).
O.K. Compile in VC 71 IDE under Irrlicht 1.8.3.
Cool! Compiled fine and I have have a beautiful "Compiled.exe".
I've got the Irrlicht 1.8.3 DLL right there in the release directory.
Run it and..

With the "Irrlicht.dll" (1.8.3) in my release directory
the console shows a repettitive "Error setting float array for HLSL variable".

With some other "irrlicht.dll"s in my release directory the console message
is gone but the rendered "Torus" is "Black".

Now, the originally downloaded pre-compiled "*.exe" with the included
irrlicht.dll (2.818.048 bytes) runs fine.

I just need a basic working HLSL project so I can try to convert a GLSL shader to HLSL.

Please help!

Re: GLSL, CG, HLSL, FX, CGFX and CUDA

Posted: Sun Sep 27, 2015 8:21 pm
by Vectrotek
Deadlocked..

No! Not deadlocked..
We're on the verge of something interesting.

See you again!