Advertisement

Metaballs, C, Linux and OpenGL

Started by April 04, 2002 02:54 AM
4 comments, last by styx 22 years, 10 months ago
Hi, I was wondering if any of you know where I can download example source code for 3D metaballs using the C language, and Linux platform (plus OpenGL/glut of course)? It''s quite important that it''s not DOS and/or C++... I''d prefer if it had extensive commenting too, but I''ll probably survive without it. Thanks in advance -- Joachim Blaabjerg styx@SuxOS.org www.SuxOS.org
-- Joachim Blaabjergstyx@SuxOS.orgwww.SuxOS.org
I had no idea what a metaball was (I thought you said meatball at first). So I googled it.

This article has some generic code you might find interesting

http://www.gamasutra.com/features/20000523/lander_01.htm


If you are just starting out with Linux + OpenGL then have a look at the SDL library (sort of a cross platform Direct X) it really simplifies things.

http://www.libsdl.org/

Cheers

Keef



-----------------------
glDisable(WORK);
glEnable(GL_CODING);
-----------------------Current Project: The Chromatic Game Engine
Advertisement
Look for the marching cubes algorithm. Platform and API should not be an object. Representation and process are all that matter.

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! | Asking Smart Questions ]
Thanks to Kylotan for the idea!
Hmm... so metaballs are volumetric data that can be fed to a volume renderer algorithm? I thought they were surfaces.
Gaiomard Dragon-===(UDIC)===-
quote:

Hmm... so metaballs are volumetric data that can be fed to a volume renderer algorithm? I thought they were surfaces

Yes, they are volume data. But the standard rendering method is to create an isosurface at a certain value threshold around the 3D data set (that''s what the marching cubes algorithm does), and tesselate this surface. Result is a standard tri-mesh.

BTW: Anyone knows what the marching cube patent is doing ? Still an issue ?

/ Yann
Thanks people, I found what I was looking for

--
Joachim Blaabjerg
styx@SuxOS.org
www.SuxOS.org
-- Joachim Blaabjergstyx@SuxOS.orgwww.SuxOS.org

This topic is closed to new replies.

Advertisement