[no bug in irrlicht]shaders bug ?

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Mirror
Posts: 218
Joined: Sat Dec 01, 2007 4:09 pm

[no bug in irrlicht]shaders bug ?

Post by Mirror »

i'm not 100% sure this is a bug. here we go :

hlsl vertex shader :

works ok:

Code: Select all

Out.Pos.y = createwave2(Out.Pos);
if replaced by this, it freezes the computer, you have to press the reset button, you can't use the keyboard or mouse at all :

Code: Select all

Out.Pos = normalize(Out.Pos)*createwave2(Out.Pos);
Mirror
Posts: 218
Joined: Sat Dec 01, 2007 4:09 pm

Post by Mirror »

i think this happens because Out.Pos can be (0,0,0) which cannot be normalized BUT i don't think that this should lead to a frozen PC.
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

Double check your drivers, since the shaders run on the card. Irrlicht just uses the DirectX or OpenGL calls to upload the shader.
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
Mirror
Posts: 218
Joined: Sat Dec 01, 2007 4:09 pm

Post by Mirror »

my drivers are the latest from nvidia ( june 2008 )
Mirror
Posts: 218
Joined: Sat Dec 01, 2007 4:09 pm

Post by Mirror »

discard the issue and lock the topic. normalize was working on Out.Pos which is a float4, .w being always =1 but with normalize() it changes so it crashes. some times i should think before i post.
Post Reply