Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

[Closed] raycast threshold
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=15&t=405
Page 1 of 1

Author:  Skwint [ Mon Jun 18, 2012 1:36 pm ]
Post subject:  [Closed] raycast threshold

the logic in polyvox for creating a solid voxel is (density >= threshold) but the logic for a ray cast is (density > threshold)
everywhere else in the code it seems to use >= or < which is fine - it's just doRaycast that's odd - I've changed mine locally and it works now.

I've also heard this concept is changing in future, in which case it probably doesn't matter.

Author:  ker [ Mon Jun 18, 2012 3:27 pm ]
Post subject:  Re: raycast threshold

that is only for the default raycast, which is really not very useful imo.
for density volumes it does not return the correct hit position, and for material volumes you usually want more complex hit queries anyway...

usually you will use the raycast with callback class

Author:  David Williams [ Tue Jun 19, 2012 8:55 am ]
Post subject:  Re: raycast threshold

Yep, this is probably a mistake, though I can't fix it right now as I don't have the Git wesion of PolyVox on this machine. I'll leave this thread open and change it tomorrow.

But yes, as you say this will change in the future and it will be the users responsibility to decide what is solid or empty.

Author:  David Williams [ Fri Oct 12, 2012 8:35 am ]
Post subject:  Re: raycast threshold

As discussed in this blog post the raycasting functionality has had something of an overhaul. The bug reported here no longer applies because the user has full control over the stopping criteria of the ray via a callback function.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/