Logo by Pauldelbrot - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. April 19, 2024, 04:01:28 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: 1 [2]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: new WebGL application to explore 3D fractals  (Read 17454 times)
0 Members and 1 Guest are viewing this topic.
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #15 on: January 20, 2012, 08:16:49 PM »

For those experiencing distortion when undersampling: Please try this version and see if it improves anything http://dl.dropbox.com/u/6556492/Raymarching/index.html
That fixes the undersampling on my machine (OSX, ATI 4850) smiley


Fixes it on Firefox for my 5870 too - still no joy via Safari WebKit though.
Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
DrColossus
Forums Newbie
*
Posts: 7


« Reply #16 on: January 20, 2012, 09:10:54 PM »

We just updated it on the server:

http://projekte.sinnpirat.de/fraktal/

It looks like there is a bug in ANGLE that we worked around which broke it for a lot of configurations.
gl_FragCoord.y apparently returns way too large values on some machines, and we're using a negative offset to compensate for that.
There is branching in place now that should detect a users config and set the negative offset value accordingly, but you can still override it with a toggle button on the bottom to the left.
When disabling ANGLE in Firefox on windows undersampling should work now, well, sort of, the image was black for us when moving the camera haha

We also implemented a variable field of view and the ability to cut the fractal along the x-/y-/z-axis:




The latest stable version of Chrome for OSX has a bug in the cos function (!!) - I reported it last September... I'm using this for compatibility in my shaders:
Code:
#define HALFPI 1.570796
#define cos(a) sin(a + HALFPI)

Thanks for the tip, we added your code smiley
What was the bug?


Tried the dropbox version, and it still fails (both Firefox (without ANGLE)  and Chrome) - but looks different now.

chrome://version/ = 16.0.912.75 (Official Build 116452) m (Vista, 32bit)

GTX570 drivers are version: 285.62 (Oct 2011) - these are the latest official ones - yours must be beta drivers, right?

Yep, i'm using beta drivers. The artifacts you're seeing are weird and i wasn't able to reproduce them Sceptical
Maybe our newer version fixes that?


Please bare with us, since we are just three students wink
And WebGL gives us a lot of headaches, especially ANGLE which we even didn't know existed up until today.
« Last Edit: January 20, 2012, 09:15:23 PM by DrColossus » Logged
subblue
Conqueror
*******
Posts: 116



WWW
« Reply #17 on: January 20, 2012, 09:25:55 PM »

Thanks for the tip, we added your code smiley
What was the bug?

The bug incorrectly reports itself as "ERROR: 0:5: 'webgl_emu_precision' : syntax error syntax error", but is triggered when you try and use the cos function. It's still occurring in the postProcess.fs so you should add it there too smiley
Logged

www.subblue.com - a blog exploring mathematical and generative graphics
DrColossus
Forums Newbie
*
Posts: 7


« Reply #18 on: January 20, 2012, 09:33:03 PM »

Thanks for the tip, we added your code smiley
What was the bug?

The bug incorrectly reports itself as "ERROR: 0:5: 'webgl_emu_precision' : syntax error syntax error", but is triggered when you try and use the cos function. It's still occurring in the postProcess.fs so you should add it there too smiley
Oh wow, thank you very much!
We just added it to the postprocessing as well.

Oh, and your blog was actually a big help to us in developing this app smiley


Fixes it on Firefox for my 5870 too - still no joy via Safari WebKit though.

Hmm, i just tried it on my macbook using Safari 5.1.1 and got a black screen, i had to enable webgl in safaris debug menu.
To enable the debug menu, type this into the OSX terminal:

Code:
sudo defaults write com.apple.Safari IncludeDebugMenu 1

It's still not perfect though, the fractal appears black for me when i move the camera o_O


edit:
We just made some more small improvements in our shadow rendering, those dark rings on flat surfaces should be gone now.
« Last Edit: January 20, 2012, 11:13:30 PM by DrColossus » Logged
Syntopia
Fractal Molossus
**
Posts: 681



syntopiadk
WWW
« Reply #19 on: January 21, 2012, 11:31:14 AM »

I tried again on my 310M, and it is still the same - the undersampling is slightly offset, on both Firefox (without Angle) and Chrome.
Logged
DrColossus
Forums Newbie
*
Posts: 7


« Reply #20 on: January 21, 2012, 11:50:29 AM »

I tried again on my 310M, and it is still the same - the undersampling is slightly offset, on both Firefox (without Angle) and Chrome.

Does this version look any better?  http://dl.dropbox.com/u/6556492/Raymarching/index.html

If it doesn't, then i have absolutely no idea what could be causing that offset Sceptical
Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #21 on: January 21, 2012, 01:38:47 PM »

my browser ff9.01 crashes instantly, graphics card is amd radeon 6800....
the browser just freezes, with a black screen and the gui ....


what about sliders in the gui ?! i love turning sliders when gpu is used!

Logged

---

divide and conquer - iterate and rule - chaos is No random!
DrColossus
Forums Newbie
*
Posts: 7


« Reply #22 on: January 21, 2012, 01:56:20 PM »

my browser ff9.01 crashes instantly, graphics card is amd radeon 6800....
the browser just freezes, with a black screen and the gui ....


what about sliders in the gui ?! i love turning sliders when gpu is used!



Firefox provides quite some issues for us, you have to disable ANGLE for it to work (type "about:config" into your adress bar and set "webgl.prefer-native-gl" to true).
We're also still trying to figure out why the sliders don't work in the Windows version of Firefox (they show up fine in OSX or other browsers).

If it still fails with ANGLE disabled, please consider trying Google Chrome for this application.

I'll edit the first post regarding the Firefox crashes.
Logged
Pages: 1 [2]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Towards a general recipe to explore new fractals? 3D Fractal Generation knighty 12 4092 Last post May 04, 2010, 10:45:55 PM
by reesej2
WebGL Programming ker2x 5 4482 Last post August 25, 2011, 10:33:17 PM
by David Makin
How to Explore other peoples projects? Mandelbulb 3d Pangaea 7 3244 Last post March 01, 2012, 05:01:21 PM
by Alef
Suggestions for a renderer to explore a 3D density function (voxels) 3D Fractal Generation snickell 3 2080 Last post July 09, 2016, 09:55:38 AM
by 3dickulus
Site with webgl(?) fractals 3D Fractal Generation DarkBeam 2 4030 Last post January 03, 2017, 01:08:15 PM
by Tim Emit

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.221 seconds with 27 queries. (Pretty URLs adds 0.01s, 2q)