openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

ofCamera draw() should be more indicative of where the camera is facing.

Open ofZach opened this issue 15 years ago • 3 comments

at the moment, the ofCamera draw calls ofNode, which does't really give you a clear indication of which way the camera is looking. even that is weird, because a camera looks on -z, and the node draw draws a line on positive z.

I suggest we add something that draws a bit of a frustum (ie, fov, etc) and gives you a feeling about orientation.

ofZach avatar Oct 16 '11 18:10 ofZach

Hey, I've just succeeded in implementing the code that could be found here to draw a camera frustum.

http://www.jotschi.de/?p=441

The only thing you have to change is use mv as inverse matrix of projection. I've implemented this in my custom made class, but it would be nice to have it in native OF, because node representation is really misleading, although its a great improvement already :)... Hope it helps.

ubarevicius avatar Jun 26 '12 14:06 ubarevicius

Oh, and I'm not the author of this code ;)

ubarevicius avatar Jun 26 '12 14:06 ubarevicius

Hi,

We are trying to clean out the many issues that we have. Many versions of OF have been released since this was issued.

Can you help us by checking if this feature is still requested for a next OF version ?

In case of inactivity, we'll close this issue by end of january, 2020.

Thanks

oxillo avatar Dec 26 '19 07:12 oxillo