Jump to content


how to implement this approach in OpenGL


5 replies to this topic

#1 abc9804

    New Member

  • Members
  • PipPip
  • 14 posts

Posted 14 October 2007 - 01:47 PM

The implementation of this approach begins with rendering a simple clip geometry to the depth buffer, i.e., the depth structure is generated from the clip geometry by standard scan conversion of the graphics hardware. Then,
writing to the depth buffer is disabled and depth testing is enabled. Finally, the slices of the volume data set are rendered and blended into the frame buffer. Here, the depth test implements the evaluation of the visibility property of a fragment. The user can choose between two variants by setting the logical operator for the depth test either to “less” or “greater”. In the first case, the volume is clipped away behind the geometry from the camera’s point of view. The latter allows to clip away the volume in front of the clip geometry.

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5307 posts
  • LocationBellevue, WA

Posted 14 October 2007 - 04:30 PM

All this is straightforward to do in OpenGL.

Do you have a specific question?
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 abc9804

    New Member

  • Members
  • PipPip
  • 14 posts

Posted 15 October 2007 - 01:21 AM

I'm not a programmer,so can you help me write the code in OpenGL.Thank you!

#4 Sol_HSA

    Senior Member

  • Members
  • PipPipPipPip
  • 510 posts
  • LocationNowhere whenever

Posted 15 October 2007 - 08:11 AM

I think it's better if you do your school assignments yourself.
http://iki.fi/sol - my schtuphh

#5 abc9804

    New Member

  • Members
  • PipPip
  • 14 posts

Posted 15 October 2007 - 11:05 AM

It's not my school assignment.My .NET program needs those codes,but I am not good at OpnGL,I can't realize it.

#6 Reedbeta

    DevMaster Staff

  • Administrators
  • 5307 posts
  • LocationBellevue, WA

Posted 15 October 2007 - 04:28 PM

Well, we are not going to write your code for you. You'll just have to pick up a book on OpenGL, or search the web to find tutorials on it, and learn to do it yourself.
reedbeta.com - developer blog, OpenGL demos, and other projects





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users