carving

Started by
4 comments, last by WilyCoder 16 years, 11 months ago
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 ?
Advertisement
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.

In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.

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 ;)
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.
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]
How about deformable meshes?

This topic is closed to new replies.

Advertisement