Re: [osg-users] Linesegment, shader

2008-10-07 Thread Leitner, Roland
for a CPU to GPU back to CPU round trip which is very expensive. Robert. On Mon, Oct 6, 2008 at 4:23 PM, Leitner, Roland [EMAIL PROTECTED] wrote: Dear all osg users, I meassure the distance of a ray (linesegment) from a given point (start point of the ray) to the first intersection of this ray

Re: [osg-users] Linesegment, shader

2008-10-07 Thread Leitner, Roland
Users Betreff: Re: [osg-users] Linesegment, shader Hi Roland, On Tue, Oct 7, 2008 at 1:03 PM, Leitner, Roland [EMAIL PROTECTED] wrote: Sorry ;) I need the results (distance map) back to the cpu. If you need the results back on the CPU then you will most likely be best to use a CPU based algorithm

Re: [osg-users] Linesegment, shader

2008-10-07 Thread Leitner, Roland
back on the CPU then using a GPU to do this would only work effectively in cases were you can wait for a CPU to GPU back to CPU round trip which is very expensive. Robert. On Mon, Oct 6, 2008 at 4:23 PM, Leitner, Roland [EMAIL PROTECTED] wrote: Dear all osg users, I meassure the distance of a ray

Re: [osg-users] Linesegment, shader

2008-10-07 Thread Leitner, Roland
value that will be seen on screen or used as a texture for later rendering? Robert. On Tue, Oct 7, 2008 at 12:11 PM, Leitner, Roland [EMAIL PROTECTED] wrote: Hi Robert, I have simulated a ray (line segment) which has a given position and orientation in the scene. Then I compute the distance

[osg-users] Linesegment, shader

2008-10-06 Thread Leitner, Roland
Dear all osg users, I meassure the distance of a ray (linesegment) from a given point (start point of the ray) to the first intersection of this ray with any object in the scene. Now I need more than one ray (up to 4000 rays) to simulate a sensor. I have read that it could be done with a