Stupid graphics question

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
User avatar
shaft
Halfling
Posts: 97
Joined: Sun Jan 19, 2003 12:54 am

Stupid graphics question

Post by shaft »

I'm sure this is a dumb question but I'm not super fluent in GL or directX so I thought I'd ask.

Is triangle-face culling performed within openGl or atleast the ogre "rendersystem" class? More specifically, ogre scene managers cull at the object level, not the triangle-face level. Once the potentially visible objects are selected for rendering, its in openGL, or the hardware that optimizes the rendering of those triangles correct?

The reason I ask is I've been reading about various culling techniques (I'm doing something at the object level), and most of the articles talk about culling at the geometry level. I then begin pouring through the Ogre source code, and it looks like the scene managers are culling at the object level, and I haven't really seen anything that does culling at the triangle-face level.

Is my understanding correct?


Thanks,
Jeff
- Shaft (He's a bad motha... Shut yo' mouth)
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

Yes, GL and D3D both eliminate offscreen and back-facing triangles in hardware during primitive construction.

Culling at the triangle level in software went out with the 90s ;)
User avatar
shaft
Halfling
Posts: 97
Joined: Sun Jan 19, 2003 12:54 am

Post by shaft »

Good to know the graphics class I took in college is already obsolete (atleast one of them is obsolete).

Thanks again.

-Jeff
- Shaft (He's a bad motha... Shut yo' mouth)
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

No, it isn't! :)
It is valuable to know what goes on, even if it's going on in hardware, if you want to understand and use it better. :wink:
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
temas
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 390
Joined: Sun Oct 06, 2002 11:19 pm
Location: The Woodlands, TX
Contact:

Post by temas »

jacmoe is just trying to make you feel better, it's useless :twisted:
User avatar
Sydius
Gnoblar
Posts: 18
Joined: Fri Mar 25, 2005 6:30 pm
Location: Los Gatos, CA
Contact:

Post by Sydius »

Knowing how it does something is important if you want to know what it will do in situations you do not actually test. Not to mention, it helps you plan things out to be more efficient.
lodi
Greenskin
Posts: 103
Joined: Sat Jul 24, 2004 7:06 pm

Post by lodi »

Well, 'knowing how it does something' is all well and good, but trying to optimize based on antiquated knowledge is one of the worst things you can do. That's the kind of thinking that lands you writing a ROAM engine thinking you're doing something to increase performance ;-)
Post Reply