Slashdot Mirror


Creating a Black Hole With OpenGL

There's a cool article on O'Reilly Net concerning using 3D graphic software to emulate black holes. Interesting article - with a lot of information about OpenGL and what you can do.

15 of 124 comments (clear)

  1. Black Hole EMULATOR? by Tassach · · Score: 4
    Simulate, OK. Emulate? I think not.

    This brings up an interesting idea of applying the horsepower of video cards to other purposes. A modern 3D accellerator is basically a dedicated co-processor with it's own RAM that's optimized to do specific math tasks really, really fast.

    I wonder if there are any serious scientific applications that could use this. If you are running a Beowulf cluster, you could possibly improve the performance of the entire cluster very easily. Of course, it would require custom software, but then Beowulf already needs that anyway.


    "The axiom 'An honest man has nothing to fear from the police'

    --
    Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
    1. Re:Black Hole EMULATOR? by Dr.+Manhattan · · Score: 3
      I dunno about "serious scientific applications", but you can run cellular automota such as Conway's Life awfully fast with an OpenGL card...

      http://www.geocities.com/simesgreen/gllife/

      --
      PHEM - party like it's 1997-2003!
  2. It's incorrect by SIGFPE · · Score: 3
    It uses Newtonian gravity and the inverse square law with a lame hack to simulate an event horizon. This is no black hole simulator but a cheesy my-first-opengl program (no offence to the author intended - we all wrote our first OpenGL program). It'd be fun if it were a real black hole simulator - you get some interesting orbits in the presence of a black hole that can't be simulated using F=GMm/r^2. It's even more fun to render in the presence of a black hole bending light rays - there are some example images on the web and in Scientific American from some time in the last few years.

    Why is it a story on Slashdot?

    --
    --
    -- SIGFPE
  3. Creating a Black Hole with ASCII by seanmeister · · Score: 3


    Sean

  4. What nerve! by NuclearArchaeologist · · Score: 3
    I'm not going to settle for anything less than gammas bursting from my imploding monitor! The nerve of some people to give away substandard software. I'll bet they even think this OpenGL, Mesa thingy is educational.

    Maw! Get me that NT CD, I want implosions now, damnit.

    cperciva, have you been giving yourself mod points?

  5. Re:Cool, s/accelerators/accelerated 3D cards by DagSverre · · Score: 3

    Basically, you create particle accelerators to prove that the nature actually acts the way our mathematical models presume it does...running simulations on a 3D card really doesn't prove anything as it will always work after our mathematical models...after all humans program it!

    We have no way of knowing for absolutely sure that black holdes works the way the 3D cards say...I once read that you could travel through dimensions/time through a black hole. I'm not saying you can, I'm saying thatyou certainly can't prove it (or the opposite) by programming in OpenGL.

  6. A much more accurate simulation by mike260 · · Score: 3

    // Clear the background to black to simulate the emptiness of space
    glClearColor( 0, 0, 0, 0 );
    glClear( GL_COLOR_BUFFER_BIT );

    // This accurately models the black-hole not emitting any light
    glColor3f( 0, 0, 0 );

    // Draws the boundary of the black hole
    glutSolidSphere( 1, 10, 10 );

  7. This is lame by cperciva · · Score: 5

    Come on, this is just a classical gravitational model piped into an OpenGL model. There are no visual distortion caused by the black hole, and no relativistic physics anywhere.

    If you're going to call it a black hole simulation, do it right. Otherwise, call it a solar system simulation.

  8. Black Holes on the desktop... by ackthpt · · Score: 5

    I already have a black hole simulator on my desktop. It's called a computer, defined as a black hole in the desktop which continually sucks money out of my wallet, at the speed of light, and is never seen again. I assume done there is a mass of pennies so dense that very few practical value rays fail to escape. Such is a hobby...

    The logical path for this is to: Laptop, palm and then some pocket computer which could directly interface to the wallet and shorten the path the money has to move.

    --

    A feeling of having made the same mistake before: Deja Foobar
  9. why this story? by [verse]Eskil · · Score: 5

    Why do Slashdot keep posting stuff like this on computer graphics? Any one how reads openGL.org knows that there are about a zillion particle demos out there.

    Some time ago there was a story about AGP 8X and who ever wrote the story asked why we would need it since we already got firewire.... Don't even know were to start complaining about that one.

    And its not like there hasn't been any graphics storys to cover. The advancements in hardware accelerated programmable shades has fundamentally changed the way people think of graphics hardware, softimageXSI for Linux, Linux on onyx3, the alternative to openGL SMASH, rendering whit natural light, new 3D displays....the list goes on and on.

    I think that slashdot is one of the greatest sites on the net but every time i read some thing regarding my area of expertise that is wrong I start to question the credibility of slashdot on areas i don't know much about.

    Please, if you what to cover graphics please do so, but get some one who works whit graphics to do it. A "ask slashdot" on how to improve the site may also be a good idea.

    Sorry about the rant, i just could not get my fingers of the keyboard.

  10. Emulating black holes... by neutron42 · · Score: 3

    ...I didn't think OpenGL sucked _that_ much.

  11. An amusing note regarding Mesa... by phlake · · Score: 3
    An amusing note regarding Mesa and the use of the license trademark "OpenGL": Mesa does not claim to be an implementation of OpenGL (and it can't, not without Brian Paul paying much money to claim this). The Mesa website specifically requests that Mesa 3D NOT be referred to as "Mesa OpenGL". Great. That's cool. They provide an excellent "workalike". Mesa is extremely useful.

    The humor comes from noting that opengl.org, the official OpenGL website, refers to the Mesa 3D library as "Mesa OpenGL". Which, according to their own rules, they're not supposed to do...

  12. Microsoft Reply... by Electric+Angst · · Score: 3

    Upon hearing this news at Redmond, a Microsoft PR person had this to say...

    "It's good to hear that technology had gone so far forward, but we should remind you that Mircrosoft is still at the head of innovation. So OpenGL can simulate a black hole, DirectX has sucked that hard for quite some time."

    (Obligitory, I know.)
    --

    --
    Feminism is the wild notion that women are human beings.
  13. What about Mandelbrot? by FascDot+Killed+My+Pr · · Score: 3

    I would argue that Hawking IS an explorer--more so than a non-theoretician. If you believe (as I do) that the laws of physics (and especially of mathematics) are REAL in the platonic, idealistic sense then what Hawking does is exploration. He's certainly not an inventor...
    --
    Linux MAPI Server!
    http://www.openone.com/software/MailOne/

    --
    Linux MAPI Server!
    http://www.openone.com/software/MailOne/
    (Exchange Migration HOWTO coming soon)
  14. OpenGL is a red herring here by Junks+Jerzey · · Score: 3

    3D APIs get talked about as if they're doing all the work. OpenGL and Direct3D are just that--APIs--and there's nothing magical about them. It's not like OpenGL is doing the "creating" here. It's just being used for the back-end polygon rendering. That's it. The rest of the code has nothing to do with OpenGL.

    One other thing I'd like to add while I'm here is that in a typical 3D game, only about 2-5% of the code involves 3D API calls. Two to five percent. There's a consistent myth that OpenGL rendering is the bulk of most 3D games and such, which is certainly not even close to true.