Creating a Black Hole With OpenGL 124
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.
Almost anything derogatory you could say about today's software design would be accurate. -- K.E. Iverson
Windows version? (Score:1)
I run my Linux systems headless...
Black Hole EMULATOR? (Score:4)
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'
Re:This is lame (Score:1)
_______________
you may quote me
ARG!!! (Score:1)
Re:Now if only Linux had standardized OpenGL. (Score:1)
As I recall, MS farted around for half a year or so before putting OpenGL out for Win95; mainly because they were trying to push DirectX (The really early versions; you know, the ones that make developers laugh at the mention of their version numbers).
As for Mesa (not MesaGL), it works very well, thank you. The artifacts you're talking about aren't so much the fault of Mesa as of the Voodoo2, with its 16bit colour depth (although I find it perfectly usable; certainly not as bad as you make it out to be).
Re:OT blackholes (Score:1)
Many science fiction stories have hypothesized about this eventually happening.
My personal favorite (Dan Simmons is becoming a theme for me lately) is in the Hyperion/Endymion stories. The Autonomous Intelligences (the evolution of artificial life on our computers today) decide to create a 'doorway' through space and in their early experiments they 'screw up' (well, not really, but you have to read the story to fully understand) and instead of opening the 'Farcaster' they had hoped to create, they create a black hole that migrates into the Earth's core and slowly eats away the Earth. Of course, later in the story you find out that 'someone else' actually tricked the AI's (which were actually trying to destroy the Earth) and stole the Earth through the 'black hole' so that they could preserve it and bring it back, 'when humanity was ready'.
OK, I know it's off-topic, but it's a cool story.
Who needs OpenGL? (Score:1)
Re:Black Hole in 3D eh? (Score:2)
It's incorrect (Score:3)
Why is it a story on Slashdot?
--Re:Black Hole EMULATOR? (Score:3)
http://www.geocities.com/simesgreen/gllife/ [geocities.com]
Re:Cool, s/accelerators/accelerated 3D cards (Score:1)
Second (offtopic) while perhaps pretty in it's own way, cannot tell us anything other then information along the mathematical model it is based on
Theory has progressed to the point where Physicists tell Chemists that Quantum Mechanics will model their systems if we could only do the math. Note: even with very, very, very fast computers we are calculating small to medium size molecules, not the large macromolecules. Howver, ab initio quantum modeling of chemical systems will tell us everything knowable about the system. The state of the art of technology just doesn't allow those calculations to finish in a lifetime.
Re:OpenGL is a red herring here (Score:1)
Re:What about Mandelbrot? (Score:1)
So, I don't consider Hawking an "explorer." And I agree, "inventor" is not the right word either. "Theoretician", "investigator", "scientist", "researcher", "thinker", "philosopher", "luminary" are all good ones, though.
I don't mean to diminish what Hawking has done; I just don't think "explore" is the best word to describe his accomplishments.
-----
D. Fischer
Re:OT blackholes (Score:1)
Just a thought, perhaps you're confusing that article with a SciFi book. The novel Earth , By David Brin [amazon.com] describes exactly the scenario you're talking about.
Apologies for the Amazon link, but Fatbrain doesn't have a plot summary or review of this book yet
Re:Damn it! Now I'm pissed! (Score:1)
Re:This is lame (Score:2)
Re:It's incorrect (Score:1)
http://www.photon.at/~werner/bh/ [photon.at]
Creating a Black Hole with ASCII (Score:3)
Sean
Re:Emulating black holes... (Score:1)
Re:An amusing note regarding Mesa... (Score:1)
I'm only pointing out irony here. Gimme a break. I mean, it's nice to know that there are /. readers who understand an follow OpenGL issues, but this isn't one. =D
Theoretical (Score:1)
Of course, we must remember that openGL black holes are entirely theoretical. Though, I have witnessed the gullibility of those who believe they have seen a computer-generated black hole.
Of course us geeks know there's no such thing as emulating a black hole, right? WRONG!
Black holes, on the other hand, as I've been lead to understand, focus all of the consumed matter/energy to one geometrical point which possibly even expands at another end in another dimension. Kinda like how my toilet water spins clockwise in the Northern hemisphere and counter-clockwise in the southern hemisphere of the Earth.
anyways, I hope i have proved my point. if not, don't expect much .. it's not as if they cloned Einstein.
Re:ARG!!! (Score:2)
These rabid Linux enthusiasts who responded to your posts are never going to be able to see the forest for the trees. The postulate "Linux good && Windows bad" dominates every thought they conceive with regards to computing, and they will never be able to expand beyond it and see that if you're happy programming under DirectX, then more power to you.
It's sort of like the missionaries of old. They thought they were "helping" the natives of the cultures they visited, because they were too narrow-minded to conceive that anyone could be happy without living as people in their own culture lived.
Re:Black Hole EMULATOR? (Score:1)
I don't know about scientific applications, but I've always wanted to see someone build a card to accelerate physics in 3D games the same way graphics are accelerated. A lot of cards do geometry acceleration... why not put some of the most processor intensive physics calculation on the card too?
I'm too naive about this sort of thing to know exactly which calculations would benefit, but I bet you could make one hell of a billiards game or flight simulator with this kind of a card as your friend...
Anybody know of someone doing this kind of thing?
Re:Here is an early demo (Score:1)
Re:Speaking of Hawking and Digital Music... (Score:1)
Re:emulate? (Score:1)
----
Don't follow that link. (Score:1)
What nerve! (Score:3)
Maw! Get me that NT CD, I want implosions now, damnit.
cperciva, have you been giving yourself mod points?
Re:DirectX version (Score:1)
Or not so obviously
Re:Cool, s/accelerators/accelerated 3D cards (Score:3)
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.
Re:Black Hole in 3D eh? (Score:1)
"Your girlfriend creates a black hole when she sucks? Doesn't that hurt?"
Re:interesting. (Score:1)
On the bonus side, it would give the AD&D geeks an actual 'Sphere of Annihilation'.
Kierthos
Re:Here is an early demo (Score:2)
Re:DirectX version (Score:1)
But would it make it clearer if I said, Direct3D doesn't have 3D textures and OpenGL does?
But now I'm confused ;)
Re:Here is an early demo (Score:1)
I'm sorry I put your personal pictures on the web for everyone to see!
There. Will you ever forgive me? Please?
A much more accurate simulation (Score:3)
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 );
Black Holes... (Score:1)
--
Re:ARG!!! (Score:1)
And they fly on my current system (Athlon, 256MB of RAM).
OpenGL on the P166? Well... if you like slideshows. ;)
"Open standard" doesn't necessarily mean "better".
OpenGL? (Score:1)
---------///----------
All generalizations are false.
Re:DirectX version (Score:2)
Nobody really chooses OpenGL over D3D for 'ease-of-use' anymore. This might have been true during the days of DirectX 3. Ever since DX5 (and especially 6 & 7), D3D is as easy to use as OpenGL.
Of course, I'm not really advocating D3D use here. I'm a graphics programmer myself and choose OpenGL, but for portability reasons.
If the DX APIs were cross platform, I'd use them.
Its really nice to have integrated sound/3D and 2D framebuffer APIs...As is now, I tend to use SDL (which more or less mimics a lot of DirectX functionality, but has a cross-platform core and supports OpenGL)
Re:Who needs OpenGL? (Score:1)
---
dd if=/dev/random of=~/.ssh/authorized_keys bs=1 count=1024
Re:A much more accurate simulation (Score:2)
glColor3f( 0.0, 0.0, 0.0 );
and not
glColor3f( 0, 0, 0 );
After all the 'f' does stand for float... (he he he
Re:Black Hole EMULATOR? (Score:1)
(Yes, that's a horrible joke.)
----
Re:interesting. (Score:1)
Re:Don't you watch Star Trek? (Score:1)
Don't you mean INCREDIBLY boring adventures?
About the only GOOD holodeck episodes are those involving Regs Barclay - he's amusing with all his psychological problems
"Those people on the holodeck are my friends! I'm not crazy! Really!"
Re:interesting. (Score:1)
Re:why this story? (Score:1)
You are absolutly right, however for those of us who don't...
Personally, I found this article cool for two reasons:
I never knew how easy it was to code stuff like this
To paraphrase Homer Simpson: Mmmmm Sparkles!
Capt. Ron
Re:A much more accurate simulation (Score:1)
glColor3f(0.0f, 0.0f, 0.0f);
and not
glColor3f(0.0, 0.0, 0.0);
After all, the 'f' does stand for float, NOT double...
Holy anal retentiveness Batman!
Re:An amusing note regarding Mesa... (Score:2)
Also the license for OpenGL has changed recently, the SI is now Open Source and you can pretty much use the OpenGL trademark if it runs of a free operating system and passes the appropriate tests. The conformance tests are also more freely available as announced recently.
The big issue for OpenGL is quality, you can't call any old thing OpenGL. It requires testing, and everyone who has ever shipped OpenGL has been required under license to pass those tests. Basing a driver on Mesa is not sufficient, you must test the driver implementation to be allowed to call it OpenGL. So saying a particular implementation on a specific set of hardware is OpenGL has a very specific meaning. If this wasn't the case OpenGL would be of much less value as a standard.
Re:why this story? (Score:2)
Actually, the real value is not so much in the stories themselves. Almost invariably, when someone posts a stupid story, somebody who knows what they're talking about comes up and corrects them. It's neat actually.
In fact, your post made me realize that my graphics knowledge from 5-6 years ago is horribly out of date, and that I need to read up on it a lot before I say anything about it again. :-)
Re:Black Holes on the desktop... (Score:1)
Cars are like women, the more money you have the faster they are the car does not complain at night.
Me talking to a mechanic about 4 years ago when I was just getting into cars,
Me: So.. how fast can you make it?
Mechanic: Well.. how much money do you have?
Me:Seriously??
hehe, those basically apply to computers to kind of proves computers are a guy thing
I cant tell you the countless dollars ive spent on my car.
It starts out with some simple thing like I want a supercharger charger installed, the mechanic is like well to really get full use from it you need a new x and a new y and a new z really wouldn thurt
So the dollars signs roll and roll and finally I have enough to have this work done
Kind of reminds me when I upgraded my Video card, really I needed a new processor and more ram to get any use out of the darn thing
But.. after about several thousand dollars and a little luck I can run with just about anything you see on the road, save the occasional Turbo 911.. which escapes me by about 3/10 of a second on the qm
Anyways you see my point, you have the money it will go faster
Jeremy
Now all we need.... (Score:2)
News? (Score:2)
Cool, s/accelerators/accelerated 3D cards (Score:1)
We can start replacing those expensive particle acclerators with simulations done on accelerated 3D graphics cards.
No longer will the people on Long Island have to worry about Brookhaven creating universe destroying black holes, instead, we'll jsut run simulations on computers.
Re:why this story? (Score:1)
do you apply the i-dont-own-it-so-i-cant-complain-about-it-philoso
Slashdot is not your average geek site that someone updates now and then on her/his spare time. it is a commercial site whit a staff of full time employees. that makes it their job the get good storys on to the site, and it is their job to know what they are talking about.
And really Im not complaining about the site, the site is great, I just think they should do some more home work before posting things like this.
I don't know but in the future it might be a good idea to set up reference gropes, to ask for advice since Slashdot storys some times in all fairness tend to be difficult to get right.
DirectX version (Score:1)
Recreating the Big Bang with Maxigamer Phoenix (Score:2)
Re:DirectX version (Score:1)
I do agree DX is good, but you don't do much porting do you?
> This being importent becaues of the fact that 90% of gamers are windows users
And this number comes from where?
You're forgetting Mac gamers and Linux gamers. Of course the "bread and butter" comes from Windows, but by writing platform dependent code, you're not leveraging any of the advantages of portable code.
> So all newer features offered on Nvidia board will be made available to DX developer first
All the new features have been available under OpenGL as exentions, unless I'm missing something? Nvidia can't go offering new features until the next revision of DX ships. With OpenGL they can add new extensions, update their driver, and boom, everyone is in business.
> XBOX uses d3d.
There are OpenGL bindings too last I heard. Carmack is on the board of advisors for X-Box, so I'm pretty sure he'd make it a priority for OpenGL support.
Cheers
This is lame (Score:5)
If you're going to call it a black hole simulation, do it right. Otherwise, call it a solar system simulation.
Now if only Linux had standardized OpenGL. (Score:2)
I'll have to give Microsoft credit for standardizing OpenGL on Windows. Because it sure isn't anywhere near organized on Linux!
Direct X a Standard!?!?!?!?! NOT! (Score:2)
But then, you know all this and are just stoking the flames, right?
-- I think, therefore I...Uhm, what was I saying?
Re:Direct X a Standard!?!?!?!?! NOT! (Score:2)
Not really. I don't know if it's due to a lack of X window optimization or what, but OpenGL demos I create in Linux seem to run far slower than the same ones I create in Windows 2000. And I'm not using some exotic video card (Voodoo 3).
Isn't C++ a little bit of an overkill just for a measly text program?
Not if I'm working with a lot of objects. Granted, I could use structs, but I like to use new technology when I can help it. For a quick text program, shelling out some lines in gcc is adequate.
if in the future you ever want to introduce portability into your applications, using DirectX is like shooting yourself in the foot...
Not really. A lot of the commands are functionally the same, and it doesn't take much to run a "replace" in the text editor of your choice. OpenGL may have slightly more portability, but you pay for it in performance. Besides, if you're porting an application there will always be portability issues. You can't just port an OpenGL title from one platform to another and not expect to do a considerable amount of optimisation (as Carmack saw with Quake 3).
Author Chris Halsall (Score:1)
...with way too much time on his hands.
Ok, but I give the guy serious credit..this is really cool, fun stuff with OpenGL is always good to see.
Black Holes on the desktop... (Score:5)
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.
Hydrogen Bomb... (Score:1)
Re:ARG!!! (Score:2)
It's sort of like the missionaries of old. They thought they were "helping" the natives of the cultures they visited, because they were too narrow-minded to conceive that anyone could be happy without living as people in their own culture lived.
It's not that they can't be happier in their own culture, but that they can be happier living life differently. Sometimes it's just that people are better off living life differently. It's the same thing with Linux Advocacy. The most advocates (not trolls) think that Windows users would be happier better off in the long run if they weren't using Windows. This may or may not be true, but it is not discounting that Windows is getting the job done, and the users may actually be happy with the current system.
treke
Funky Java applet doing an accurate black hole... (Score:1)
I'm trying not to rant too much about someone's work that I enjoy, but if i can make one recommendation.. everyone should go read Egan's Diaspora.
Small OpenGL demo's (Score:2)
Most entries are GLUT or near enough to compile on Linux, Mac etc. Lots of cool ideas.
Speaking of Hawking and Digital Music... (Score:2)
While there are dozens of other sites on the web devoted
to Stephen Hawking's scientific achievements, I am unaware of a single
site (aside from this one) devoted to his career as a lyrical terrorist.
Re:DirectX version (Score:1)
Re:Cool, s/accelerators/accelerated 3D cards (Score:1)
For things like aerodynamics, where we are conversant with the formulae and models involved, computer simulations work, and they work very well. Similarly, based on our knowledge of materials, friction, etc. we can model pretty much any machine in a good CAD program (I recommened Pro-Engineer). But the computer modeling of a black hole, while perhaps pretty in it's own way, cannot tell us anything other then information along the mathematical model it is based on.
Kierthos
Black hole simulation? Right... (Score:1)
nothing is relative
Re:why this story? (Score:1)
What's that ? I can't find any reference...
why this story? (Score:5)
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.
Re:Direct X a Standard!?!?!?!?! NOT! (Score:1)
Don't you watch Star Trek? (Score:1)
You can prove anything on the HoloDecks computer simulations. Then you just tell the computer to do it for real and it works.
You can also go on all kinds of wacky adventures when the writers run out of ideas
Re:Here is an early demo (Score:1)
----
Dave
MicrosoftME®? No, Microsoft YOU, buddy! - my boss
Damn it! Now I'm pissed! (Score:1)
I wonder if I can sue O'Reilly for this. Hell, if that stupid woman got over a million bucks from McDonalds for spilling hot coffee on herself, I should be able to get something, right?
Hmmm, I wonder if this is where Jimmy Hoffa disappeared to? Does anyone know if the American mafia has been experimenting with black hole emulation?
Re:Here is an early demo (Score:2)
Re:ARG!!! (Score:1)
Re:DirectX version (Score:2)
Why? Doesn't the OpenGL version work?
Lets end this now before it erupts into a lame flamefest about "OpenGL roxs.. Direct3D blows"
> I'd prefer to work in that API.
Which one? DirectX or D3D ? Yeah, DirectX is ok.
However, I'll take the ease-of-use of OpenGL over D3D anyday. Carmack does too, among a few developers. I wonder why?
A nice clean, orthogonal, and portable rendering API, what more do you want?
Cheers
Re:OpenGL is a red herring here (Score:2)
------------------
Re:ARG!!! (Score:1)
I just don't think there should be "one standard". Open source Linux/FreeBSD has its uses and advocates, but it's not perfect for everything. I like to get people to react - and while reacting, to think.
Dont get it!! (Score:1)
Instant Blackhole Solution: (Score:1)
Re:Black Holes on the desktop... (Score:2)
Games? Who's got time for games when there's code to write?
Re:This is lame (Score:1)
Re:Direct X a Standard!?!?!?!?! NOT! (Score:2)
Java3D (Score:2)
Black Hole in 3D eh? (Score:2)
That or my girlfriend. Do you know how expensive movies are nowadays?
---
Re:This is lame (Score:2)
Emulating black holes... (Score:3)
black holes & linux (Score:2)
*rimshot*
-lb
An amusing note regarding Mesa... (Score:3)
The humor comes from noting that opengl.org [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...
Microsoft Reply... (Score:3)
"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.)
--
What about Mandelbrot? (Score:3)
--
Linux MAPI Server!
http://www.openone.com/software/MailOne/
OpenGL is a red herring here (Score:3)
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.
Re:A much more accurate simulation (Score:2)
Re:DirectX version (Score:2)
Anyway, the two APIs are not functionally equivalent, unless they've added 3D textures to DirectX while I wasn't looking.
Technically ... (Score:2)
Shame, really, because there is potential to use OpenGL's image processing hardware to actually calculate large 2D fluid dynamics problems, and doing that would definitely count as news. You'd blow a Cray out of the water with a Voodoo3.