REDDemon wrote:can you post a little project that reproduce the bug with the standard irrlicht.dll under visual studio?.. so simple example code, like the irrlicht example about shader usage. possibly with a project file for compiling it under visual studio?
The blood+water demo out of the package doesn't work.
If you run the shader example demo and select directx 9. does the console output shows DIRECTX with hlsl or OpenGL with glsl?
I compiled but got no .exe from it. I ran the .exe in the bin directory and selected both DirectX and openGL. No bugs or crashes.
----
stefbuet wrote: It uses the wrong texture pointer to display the water texture
From what I see it's just that the shader didn't compile but shader input texture are still on the model and that's what you see. If the shader was compiled and running it would use texture informations but display other things.
No, it is using part of the skybox as the texture.
This can happen if your graphic card is not new enough to support the shader, or as you're using ATI card it can be a problem with the shader because ATI is much more strict than NVidia with shader syntax. Use GPU ShaderAnalyzer from AMD to find out if the problem's coming from your card or the shader.
I guess it's a syntax problem since the example shaders work fine. I'll do that, thanks.
Edit: Ok, tried it.
I got three different errors when I tried to compile: two truncation errors/warnings (which I was able to fix) and an "entrypoint not found" error:
error X3501: 'main': entrypoint not found
After fixing the truncation errors/warnings, the shader still failed to load.
I don't really know what to do. The Irrlicht shader example code, which works, gives me the same error.
Maybe that's not really a problem.
I tried to test with hlsl 1.1 (maybe that's what I have? I really don't know) but got this error:
- Code: Select all
error X3539: ps_1_x is no longer supported; use /Gec in fxc to automatically upgrade to ps_2_0
error X3539: Alternately, fxc's /LD option allows use of the old compiler DLL
Not really sure what they are talking about here.
Anyway... could anyone remind me how to turn on Irrlicht notice/error messages? I turned them off ages ago and I forgot how to turn them back on.