Remove back half?

Started by matanui159, May 16, 2014, 03:26:55

Previous topic - Next topic

matanui159

I notice in some games (like Garry's mod) that when you go inside a model and look at the back of the material you don't see anything. You just look straight through it?

Can you do this in opengl? Will it speed it up? How do I do it?

Thx in advance.
ALGORITHM
A word used by programmers when they do not want to explain what they did.

WEE :)

Cornix

This is called "culling", you can cull either the backface, the frontface, both or neither.
Google for the apropriate gl functions.

quew8

And yes, it will speed it up.