FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Suggestions
   Software Suggestions
(Moderator: fry)
   is 3d point visible function
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: is 3d point visible function  (Read 325 times)
edwardgeorge

WWW
is 3d point visible function
« on: Mar 27th, 2003, 1:07pm »

Hi, just a thought_
it would be nice if we could give a 3d coord and get back a boolean indicating whether that point is visible or not on screen, ie whether or not there is something drawn infront it.
rather like screenX etc commands.
 
This would help building interaction based on mousing over certain elements drawn on screen.
 
Its easy to determine whether or not the mouse is over a specific object but is very complex to determine whether or not that object is the uppermost one or if it is visible, or part of it visible etc.
 
Does that sound sensible?
 

Ed, Suppose, Nottingham, UK
http://www.suppose.co.uk
http://ed.suppose.co.uk
fry


WWW
Re: is 3d point visible function
« Reply #1 on: Mar 27th, 2003, 3:19pm »

similar to pixels, there's an array of floats called zbuffer[]. if you compare that for your point to what's returned by screenZ(), that would give you the answer. is that what you're looking for?
 
gsm


Re: is 3d point visible function
« Reply #2 on: May 1st, 2003, 12:28pm »

is the zbuffer array accessible in 0054??
 
fry


WWW
Re: is 3d point visible function
« Reply #3 on: May 1st, 2003, 4:38pm »

yeah, it should be throughout. though actually, you may need to use g.zbuffer instead of zbuffer. that can be fixed in the future though, if people are using it a lot.
 
edwardgeorge

WWW
Re: is 3d point visible function
« Reply #4 on: May 16th, 2003, 4:27pm »

Quote:
is that what you're looking for?

Possibly, sorry, haven't actually needed to use it or had time to play with it yet. But thanks for answering
 
All the best
 

Ed, Suppose, Nottingham, UK
http://www.suppose.co.uk
http://ed.suppose.co.uk
Pages: 1 

« Previous topic | Next topic »