OpenGL

Elevator with OpenGL

Alistair screamed ‘Stop!’

In my post Climbing stairs with OpenGL I had demonstrated how to extend collision detection to allow for the plodding up and down a flight of stairs.

‘I told you to use an elevator instead!’ he said, the froth of fury collecting at the corners of his mouth.

I opened my Microsoft Visual Studio C++ application (with OpenGL graphics library and the Oculus SDK for Windows) and added an elevator to my virtual world.

Outlining objects with OpenGL stencil testing

Arkwood puffed his herbs. ‘Just need to know when the grass is good, maaaaann,’ he drawled.

I opened my Microsoft Visual Studio C++ application (with OpenGL graphics library and the Oculus SDK for Windows) and pondered. How should the grass in the virtual world indicate that it is good to harvest?

Thankfully the Learn OpenGL article Stencil testing offered a helping hand. I will use stencil testing to draw a blue outline around my grass, to show that it is ripe for plucking.

Adding stairs with OpenGL

Alistair poured some wine from the flute into a shallow glass. ‘It’s not a pun. I just prefer a firm escalator. Or an elevator, yes.’

But my virtual world needed a way of getting from the ground floor to the top floor. So I opened the C++ Microsoft Visual Studio application (with OpenGL graphics library and the Oculus SDK for Windows) and put in some stairs.

With the Oculus Rift virtual reality headset on my head, I stood on the ground floor balcony and admired a new set of steps to help me get to the top floor.

Transparency in OpenGL

A seagull. Bang!

‘It happened to a seagull?’

Peters lifted some crisps from the packet. Munching, language inaudible apart from the word Yes.

He wiped the salt from his greasy fat lips. ‘Sometimes it’s bees. A fly, perhaps. But, yes, a big white feathery bird hit the bathroom window.’

Let us consider the case using an Oculus Rift virtual reality headset. I cranked open my C++ Microsoft Visual Studio application – incorporating OpenGL graphics library and the Oculus SDK for Windows – and began to render some windows.

Discarding fragments in OpenGL

‘I am a simple man,’ Arkwood said. I was silent.

‘I carry simple pleasures. A garden, perhaps. A smallholding on which to plant my veg-i-ta-bles.’ He leaned forward and frowned. I wanted him to stop being a poet.

But on he went. ‘Cry me to sleep, if not for the soil that runs not through my wanton fingers.’

I told him he said Not twice. Cancelled his shit out. His face turned red. Anyhow…

Pages

Subscribe to RSS - OpenGL