PDA

View Full Version : circular viewport !!!!!????



Selina
10-06-2010, 09:14 PM
Hi everyone

I display the scene in a normal rectangular window.
I want to display my scene on the screen in a circular viewport. I mean the scene will be viewed within a circle. Can anyone know how to do that with OpenGL C++ environment?

Many thanks for help

BionicBytes
10-07-2010, 02:15 AM
You could try playing around with the FOV (Field of View) value for gluLookat. Extreem values (towards 0 or 180) will give fish-eyed look to the viewport and distort the display - like a circular viewport!

ugluk
10-07-2010, 05:21 AM
Maybe she want to play with the stencil buffer.

Selina
10-08-2010, 01:43 PM
Thank you very much BionicBytes and ugluk

I will try to apply your ideas

many thanks

Rockie X.Lee
10-09-2010, 12:01 AM
Whether you want a circular viewport or a circular window?
circular viewport: you may use stencil buffer
circular window: maybe you need to use OS API

Selina
10-09-2010, 03:11 PM
Whether you want a circular viewport or a circular window?
circular viewport: you may use stencil buffer
circular window: maybe you need to use OS API

I need a circular viewport, I am going to use stencil buffer
many thanks to you