Horde3D

Next-Generation Graphics Engine
It is currently 02.05.2025, 14:03

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Sphere queries
PostPosted: 30.04.2008, 16:08 
Offline

Joined: 28.04.2008, 12:32
Posts: 6
Is it easy to implement a sphere query with Horde3D or is it necessary to modify the engine's sources?

Thanks to all!

Claudio


Top
 Profile  
Reply with quote  
 Post subject: Re: Sphere queries
PostPosted: 30.04.2008, 16:55 
Offline

Joined: 19.11.2007, 19:35
Posts: 218
If you want it to be optimal then you'd best do it in the engine. Castray() will provide a starting point for how it basically works. Then you just turn it into an evaluation of distance from a point.

Note: If you're using a collision detection library then you'll have this sort of feature for detecting collision primitives, it will also already be heavily optimized.


Top
 Profile  
Reply with quote  
 Post subject: Re: Sphere queries
PostPosted: 30.04.2008, 20:09 
Offline

Joined: 28.04.2008, 12:32
Posts: 6
Thank you for your suggestions.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 58 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group