GLSL, CG, HLSL, FX, CGFX and CUDA

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

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

Post 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!
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

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

Post by Vectrotek »

Deadlocked..

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

See you again!
Post Reply