Hi Vince,

I observed the same problem, my guess was that maxdist is "more of a
guideline" to the intersect algorithm...

but a quick workarround is to test

if( act->didHit() && (act->getHitT() < mymaxdist) )
  ...

But beware, the direction vector at setLine should be normalized...

good luck,
     daniel


On Thu, Nov 11, 2004 at 12:58:34PM -0500, Ace Bluedust wrote:
> Hi all, 
>  
> Is it possible to change the value of "maxdist" in the setline fonction of an 
> IntersectAction when I do a ray 
> intersection?  When I changed it, it doesnt seem to change the distance and I 
> still hit objects that are far away.  
> Seems that the value stays at "Infinite" the default value...  I want to only 
> get the objects that are within a 
> distance from the start of my ray. 
>  
> void IntersectAction::setLine  
> (  
> const Line &  
>   line,  
> const Real32  
>   maxdist = Inf) 
>  
> Any advice on this? thanks 
> Vince 
>  
>  
> -- 
> ___________________________________________________________
> Sign-up for Ads Free at Mail.com
> http://promo.mail.com/adsfreejump.htm
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users

-- 
--                                                                              
          
Daniel 'mcJack' Walz                                                     
Student at the Otto-von-Guericke Universität Magdeburg                          
          
email:  [EMAIL PROTECTED]         icq#:  70137980                               
     
pgp:    DAF0B6EF                at: wwwkeys.de.pgp.net                          
          
http://www.cs.uni-magdeburg.de/~dwalz/


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&opÿick
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to