Sign in to follow this  

Recommended Posts

hi! is carving possible in opengl? if yes how can i do that ? help please :( will i do something like adding a transparent object into the object that i want to carve ? or is there a function for it ?

Share this post


Link to post
Share on other sites
Carving is something you have to do yourself. The OpenGL and Direct3D APIs are there to transform the raw geometry data you pass it into pretty pixels, nothing more.

I would suggest you look into some intersection algorithms and some triangle splitting ones...since both will be required.

Share this post


Link to post
Share on other sites
i see. can you give me an idea for doing it then ? or can you suggest a tutorial about that ? i searched in google but i couldn't anything about it
edit : thx for suggestion ;)

Share this post


Link to post
Share on other sites
All depends on what you're looking for. You might want to look into voxels. Some other things would be boolean operations with geometry, and probably mesh intersection stuff.

Keep in mind this is not a simple task.

Share this post


Link to post
Share on other sites
Hi, probably you want to look at Constructive Solid Geometry and/or Voxels. These are very different ways of solving the problem - have a look at the links below and try the demos to see what you want. In fact, you could give us more details about what exactly you want to achieve/what it is for?

Voxels
------
http://advsys.net/ken/voxlap/voxlap05.htm (Ken Silverman - development stopped)
http://www.ogre3d.org/phpBB2/viewtopic.php?t=27394 (My Engine)

CSG
---
http://www.melax.com/csg.html (Similar to what Red Faction did)
http://www.opencsg.org/ (Simulates CSG visually but I don't think it actually changes the primatives)

Hope that helps...

[Edited by - esuvs on May 11, 2007 10:59:53 AM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this