• Welcome to Dark Bit Factory & Gravity.
 

real time wada basin effect

Started by taj, February 17, 2008

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

taj

WARNING: PS3.0 required.
I hope this works on Nvidia platforms...please let me know. Oh there is no timer so on slower cards it may go SLOWLY.

This is a real time zoom on a wada basin fractal, complete with moving light. I'm not sure if this has ever been seen before properly. Its correct up to 10 bounces of light.

If you can't run it, you can see some images at my blog: http://sizecoding.blogspot.com/ . Not sure what to do with this but maybe it will end up in a 4k sometime. As an effect is pretty cool.
Challenge Trophies Won:

zawran

It runs perfectly smooth on my nvidia 8800gt sli setup. It would be cool if it was possible to change the resolution, just to see if it can handle it. I am running at 1920x1200, but even the 800x600 resolution that it looks like you are running this on, looks great on my large screen.

taj

Quote from: zawran on February 17, 2008
It runs perfectly smooth on my nvidia 8800gt sli setup. It would be cool if it was possible to change the resolution, just to see if it can handle it. I am running at 1920x1200, but even the 800x600 resolution that it looks like you are running this on, looks great on my large screen.

Has anyone got any simple pop-up code I could add to allow someone to chose resolution? If so I'll try to add it. If not I'll write some.
Challenge Trophies Won:

Rbz

The shaders code works fine, exactly like images on your blog, but it's slow...

I suggest you to use it as background image for your 4k, and apply some distort effect or other simple and fast effect on the top, because few people will be able to see it in full speed as main effect.

Challenge Trophies Won:

taj

Quote from: rbraz on February 17, 2008
The shaders code works fine, exactly like images on your blog, but it's slow...

I suggest you to use it as background image for your 4k, and apply some distort effect or other simple and fast effect on the top, because few people will be able to see it in full speed as main effect.



Its too many bytes for just a background I'm afraid Rbraz. Guess Ill have to make sure the compo machine is relatively new if I get around to 4k. Heres an exe for you, smaller res, less bounces and faster movement.
Challenge Trophies Won:

Jim

That's pretty damn cool!  And if you stare at it long enough and then quit back to the desktop, the desktop looks like it's rotating back the other way - spooky!

Jim
Challenge Trophies Won:

Voltage

Looks fantastic, a very nice effect.

The first version was too slow for my PC running at about 4-5 frames/sec.

The rbraz version was more like realtime at something like 25-30 frames/sec.

Nvidia GeForce 7300 GS.
Challenge Trophies Won:

taj

Quote from: Jim on February 17, 2008
That's pretty damn cool!  And if you stare at it long enough and then quit back to the desktop, the desktop looks like it's rotating back the other way - spooky!

Jim


Jim do you have any code for setting resolutions etc in win32 API? Basically I thinkI want to open a dialogue box, add radio buttons or a list and thats it. However I want the code to be as minimal as possible so maybe it could be used in a 4k. Anything to work from? Information on the net is mainly based around ... Open a project, use the resource manager...which leads to unacceptable code.
Challenge Trophies Won:

taj

#8
Quote from: Voltage on February 17, 2008
Looks fantastic, a very nice effect.

The first version was too slow for my PC running at about 4-5 frames/sec.

The rbraz version was more like realtime at something like 25-30 frames/sec.

Nvidia GeForce 7300 GS.

Thanks for the info. 4-5 frames a second is awful :-(. Yet thats a very common level of card today. It shows how much shaders are improving in speed as your card (and Rbrazs) are entry level and 2-3 years old. The code is hitting the part thats changing performance fastest in time (fragment shader). I suppose the lesson here is when doing such heavyweight shaders, the best option is to put it in a part of the screen, not full screen (eg as a texture wrapped on an object). I hope shaders stabilise within the next few years so performance becomes more predictable, but it doesnt look likely. The 8800 is way faster than my card which was top end 2 years ago.  BTW for reference I am getting 50-60 frames per second so it shows how much cards change.

Challenge Trophies Won:

benny!

@taj:

Wow ... that production is cool like lemonade. Very good.
Rbraz versions runs better here, too. Although the speed
also changes and is not constant.

About setting new resolution - are you speaking about
desktop resolution ? If so - I am not sure if this is the way
to go - because users can be upset whnen the icons on
their desktop are un-ordered after changing their resolution.

Nevertheless, maybe this function would do the trick:

http://msdn2.microsoft.com/en-us/library/ms533260(VS.85).aspx
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Jim

If I'm right, I think Taj is asking for code to open and create the dialog boxes for selecting the res.  And using the resource editor is making things too large.  It is possible to generate these dialogs from data structures in your code - the API call is CreateDialogIndirect.

Jim
Challenge Trophies Won:

benny!

[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Shockwave

That looks really great :)

There's nobody else making these nice small intros with shaders. I think I prefer the high res version, even though it happens more slowly, it still runs nice.
Shockwave ^ Codigos
Challenge Trophies Won:

taj

Quote from: Shockwave on February 18, 2008
That looks really great :)

There's nobody else making these nice small intros with shaders. I think I prefer the high res version, even though it happens more slowly, it still runs nice.

I think Loonies, tbc (mentor) and hitchhiker have all made 1ks with shaders. Still thats not bad company to be in :-). The high res one looks slow because I turn it 0.1 degrees each frame so even at 30 fps it only rotates 3 degrees in one second. I like slow stuff but realise that I'm an anomaly as most sceners prefer whoooom-bang-glooooow-in-yer-face.
Challenge Trophies Won:

taj

Quote from: zawran on February 17, 2008
It runs perfectly smooth on my nvidia 8800gt sli setup. It would be cool if it was possible to change the resolution, just to see if it can handle it. I am running at 1920x1200, but even the 800x600 resolution that it looks like you are running this on, looks great on my large screen.

Zawran, I gave up on the dialogue box for now...heres a version in 1920x1200, 10 bounces per ray, plus more dramatic lighting. I can't test it here :-) so good luck. Let me know!
Challenge Trophies Won:

Shockwave

That ultra high res version runs fine here :)
Shockwave ^ Codigos
Challenge Trophies Won:

zawran

The hires version still runs super smooth, but then again if those two 8800gt didn't perform somewhat decent, then I would have been dissapointed. It looks really great.

Paul

That one is really cool, starts of stable at 60 fps, and then suddenly drops to 30.
I like the contrast between the red and white, really Good.
I will bite you - http://s5.bitefight.se/c.php?uid=31059
Challenge Trophies Won:

taj

I'm jealous - I cant even see it here! Glad it works though.
Challenge Trophies Won:

Rbz

My special version works fine  :P

I'll help you with a small window dialog if you like, I have all code for it
Challenge Trophies Won: