Skip to main content
GameDev.net gamedev.net
🔒 Locked

A geometry viewer

Started by gooky Oct 13, 2004 at 6:06 PM 0 replies 500+ views
Original Post
gooky
gooky
I need to make a viewer - a simplified version of the viewpoint media viewer. To start with I restricted the object count in the scene to 1. My goal was to be able to spin around the object, zoom and pan. I would like to not backfacecull any faces, and it would be nice if I could antialias the edges (edges between object and empty space) I started out using directX to show the object. It worked fine with very little code as long as I showed with backfaceculling. When I turned on that, it started to go extremely slow. The reason was ofcause the amount of faces in the object - around 100000. Now to my question... What can I do about this... I need to somehow QUICKLY filter away triangles that can not be seen anyway. There must be some algorithms for that...
Lasse Johansen
WarAmp
WarAmp
backface culling does that...culls away triangles that point away from the camera...kind of ideal for what you want, isn't it?

If, for whatever reason, you cannot backface cull, I recommend using some sort of spatial partitioning (an octree for this case, perhaps?) and then do occlusion culling against the octtree. Google is your friend here.

Occlusion culling is not a trivial task to do in the general case. Hardware extensions may help you. (google for occlusion_query)
Waramp.Before you insult a man, walk a mile in his shoes.That way, when you do insult him, you'll be a mile away, and you'll have his shoes.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.