Hello Guest

Remove back half?

  • 2 Replies
  • 1945 Views
*

Offline matanui159

  • *
  • 30
  • KABOOM
Remove back half?
« on: May 16, 2014, 03:26:55 »
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 :)

*

Offline Cornix

  • *****
  • 488
Re: Remove back half?
« Reply #1 on: May 16, 2014, 06:13:19 »
This is called "culling", you can cull either the backface, the frontface, both or neither.
Google for the apropriate gl functions.

*

Offline quew8

  • *****
  • 569
  • Because Square Eyes Look More Real
Re: Remove back half?
« Reply #2 on: May 17, 2014, 18:00:01 »
And yes, it will speed it up.