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.
Mirror
Posts: 218 Joined: Sat Dec 01, 2007 4:09 pm
Post
by Mirror » Wed Nov 12, 2008 11:30 pm
i'm not 100% sure this is a bug. here we go :
hlsl vertex shader :
works ok:
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 » Thu Nov 13, 2008 7:23 am
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 » Thu Nov 13, 2008 7:52 am
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 » Thu Nov 13, 2008 8:52 am
my drivers are the latest from nvidia ( june 2008 )
Mirror
Posts: 218 Joined: Sat Dec 01, 2007 4:09 pm
Post
by Mirror » Sun Nov 16, 2008 3:39 am
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.