You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
porcus
Posts: 149 Joined: Sun May 27, 2007 6:24 pm
Location: Germany
Post
by porcus » Sun Jun 07, 2009 12:50 pm
My graphics card: Ati Radeon HD3850.
The while loop works well in glsl so I thought that this is caused by hlsl but
I will try it with enabled vsync.
devsh
Competition winner
Posts: 2049 Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:
Post
by devsh » Sun Jun 07, 2009 1:25 pm
lol you are using the wrong method for ray intersection dude!!!
there was one when you go back and forward untill you get within a reasonable distance between the collision point
sio2
Competition winner
Posts: 1003 Joined: Thu Sep 21, 2006 5:33 pm
Location: UK
Post
by sio2 » Sun Jun 07, 2009 5:02 pm
That's called a binary search. Cone stepping is another alternative to a linear search.