Logo by miles - 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. March 28, 2024, 11:40:54 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]   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: The Other Side of Open GL  (Read 4903 times)
0 Members and 1 Guest are viewing this topic.
Sockratease
Global Moderator
Fractal Senior
******
Posts: 3181



« on: April 21, 2008, 09:50:08 PM »

OK, We've all seen it.

The ever familiar grid that IS Open GL.

We make our images and rotate them, change the angle of viewing, and make our spline and smoothing adjustments and what ever other parameters our program of choice offers.

But what about Open GL's Seedy Underbelly?

Am I the only one who enjoys turning these things over and seeing what lies beneath?

Here's a good example -

I made this 2D render in Mutatorkammer:



It looked like this in Open GL (rotated):



But... If one rotates the grid a full 180 degrees around the z axis, you can see the Bottom of the fractal!




I have gotten some very nice results and interesting comparisons by doing this.  Here is another pair of "Top and Bottom" views:





I mirrored the bottom image of the above pair (the only image editing in these images!) to demonstrate the symmetry (looking at the bottom of these naturally produces mirror images of the other side).


And some more -








One last comparison, just because it's so weird...


A 3D Terrain type fractal




And the underside:


Logged

Life is complex - It has real and imaginary components.

The All New Fractal Forums is now in Public Beta Testing! Visit FractalForums.org and check it out!
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #1 on: April 21, 2008, 11:57:41 PM »

ROFL; it is a feature cheesy
 police police police police

no, the problem lies in the normals, and the front/backside rendering of triangles,

you know, you can achieve a similar effect in mutatorkammer by adjusting the heightmap values ( the grey bars in the palette window ) to the opposite, so that high values become low values and vice versa...

and btw, this one is cool:
http://i106.photobucket.com/albums/m278/sockratease/y2.png
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Duncan C
Fractal Fanatic
****
Posts: 348



WWW
« Reply #2 on: April 24, 2008, 05:07:13 AM »

ROFL; it is a feature cheesy
 police police police police

no, the problem lies in the normals, and the front/backside rendering of triangles,

you know, you can achieve a similar effect in mutatorkammer by adjusting the heightmap values ( the grey bars in the palette window ) to the opposite, so that high values become low values and vice versa...

I've played around with looking at the underside of my 3D plots in FractalWorks before, but have never been satisfied with the lighting because the normals are set up for top-side viewing.

Today I decided to add a "flip plot" option, and I'm pretty pleased with the results.

Here's a sample image:


You could actually argue that this plot is right side up, since it uses distance estimate values for the height, and distance estimates are smallest near the Mandelbrot set. My program normally inverts the values so Mandelbrot points are at the peak and points far from the set are at the bottom.
Logged

Regards,

Duncan C
Cyclops
Conqueror
*******
Posts: 135



WWW
« Reply #3 on: January 19, 2009, 10:42:17 AM »

What exactly is open GL?
Logged

Sensitively dependant on initial conditions
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #4 on: January 19, 2009, 10:15:23 PM »

What exactly is open GL?

opengl is a "API"  - Application Programmers Interface Specification - to acess 3d hardware, which encapsulates 3d math, and gives functionality for managing 3d objects ( made out of triangles )
similar api is directx, which offers a bit more multimedia features, but also the 3d things from opengl ...

 police police

http://en.wikipedia.org/wiki/OpenGL
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Cyclops
Conqueror
*******
Posts: 135



WWW
« Reply #5 on: January 19, 2009, 11:21:50 PM »

Oh right so basically its a library of code used by Incendia,Apophysis,Bryce, Terragen etc
« Last Edit: January 19, 2009, 11:27:33 PM by Cyclops » Logged

Sensitively dependant on initial conditions
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #6 on: January 20, 2009, 03:18:23 AM »

yes, a library of code implemented the same way on many different systems, e.g. you can use the opengl api the same way you would use it under windows or linux ....

 evil police
Logged

---

divide and conquer - iterate and rule - chaos is No random!
lycium
Fractal Supremo
*****
Posts: 1158



WWW
« Reply #7 on: January 20, 2009, 10:18:03 AM »

as far as i know, of those programs only incendia and possibly bryce use opengl, and only for previews (the high quality rendering being done with their own engines, since that's the whole point of these programs!).

in fact, i would argue that triangle rasterisation (which is what opengl and directx use) is completely unsuited to fractal rendering. then again, half the programs you listed aren't fractal renderers wink
Logged

HPDZ
Iterator
*
Posts: 157


WWW
« Reply #8 on: January 20, 2009, 02:31:31 PM »

I just love you all's 3D images...Please keep them coming!

I hope this question isn't getting too far off-topic, but I've been wondering how you get these. Are you using a fractal rendering program that also has a built-in 3D rendering component, or do you generate the fractal data with one program (e.g. UF or Apophysis) and then use commercial or home-grown 3D rendering rendering software?

I've been considering adding an OpenGL or DirectX 3D component to my deep-zoom animation software (home grown) but if there's a already commercial software that can import the fractal height data and render it in 3D that would save me a huge amount of reinventing of the wheel.

Thanks.
Logged

Zoom deeply.
www.hpdz.net
lycium
Fractal Supremo
*****
Posts: 1158



WWW
« Reply #9 on: January 20, 2009, 09:44:18 PM »

it's surprising to me that you've written "home grown" and "reinventing the wheel", two diametrically opposite views of the same thing, in the same sentence!

we've all written our own renderers, ducanc and trifox leverage the power of opengl whereas the other programs you mentioned have purely software-based rendering engines.
Logged

HPDZ
Iterator
*
Posts: 157


WWW
« Reply #10 on: January 20, 2009, 10:18:55 PM »

it's surprising to me that you've written "home grown" and "reinventing the wheel", two diametrically opposite views of the same thing, in the same sentence!
Good point! Probably a better way to say it would have been "...save me a huge amount of FURTHER reinventing of the wheel".

Quote
we've all written our own renderers, ducanc and trifox leverage the power of opengl whereas the other programs you mentioned have purely software-based rendering engines.
Good to know. The math for all this is well within my ability, but it looks like a lot of work to get it all coded into functional, stable software. Maybe someday...

Meanwhile, is there anything that can import a series of files with fractal count values and make a series of 3D images? I've done it with Mathematica once or twice for still images, but it's really tedious and I'm not sure it's practical if I were to try doing this with an animation.
Logged

Zoom deeply.
www.hpdz.net
HPDZ
Iterator
*
Posts: 157


WWW
« Reply #11 on: February 02, 2009, 05:11:23 PM »

it's surprising to me that you've written "home grown" and "reinventing the wheel", two diametrically opposite views of the same thing, in the same sentence!
Good point! Probably a better way to say it would have been "...save me a huge amount of FURTHER reinventing of the wheel".

Actually, sometimes, it feels more like reinventing the automatic transmission...  tired; yawning; sleepy
Logged

Zoom deeply.
www.hpdz.net
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #12 on: February 03, 2009, 10:47:45 PM »

so far, i think opengl is a very good base to implement a decent 3d renderer, and you know the main difference ?

opengl is used for REAL-TIME display of gfx, those kind of grafix can never (really) compete with advanced renders,
but,the 3d realtime functionality and fractal formulas can form a wonderfull marriage, but, writing something that
works like google earth on 3d objects ( meaning refining the structure on every zoom level ) is extremly hard to
program ( level of detail on non-static data ), my dream is ( if i had more time ) to implement a hardware renderer
of 3d objects ....

but believe me, it is a very deep field ...

lets say you could calculate a reasonable 3dimensional field ( e.g. 1024x1024x1024 ) then you only have some
values, if you know would like to display it as a 3d mesh, you have to find countours in the values.....
and then we have the things like calculating the normals of those meshes, for nice (simple direct ) light calculations

i have implemented an iso surface renderer of those fractal formula fields in mutatorkammer ( unreleased version )
but you need a hell of detail ( remember, fractals are infinite, and 3d fractals at low iterations look not as good
as the same 2d mandelbrot for example ... )


enough talking .... it is hard, but i would like to participate ....


writing a height map renderer in opengl is somewhat like an afternoon of work ... wink
greets
ck
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
The blue side of the other side Mandelbulb3D Gallery lyron 0 1989 Last post February 19, 2011, 09:07:56 PM
by lyron
Side by side Images Showcase (Rate My Fractal) Dinkydau 0 975 Last post June 16, 2012, 05:57:54 AM
by Dinkydau
in side Images Showcase (Rate My Fractal) ironfractal 0 758 Last post August 20, 2016, 11:22:03 PM
by ironfractal
fractals out side the computer 3d and 2d and so on 3D Fractal Generation ironfractal 1 1156 Last post August 21, 2016, 10:16:26 AM
by KRAFTWERK
Dark side of the M-set Fractal Humor Tabasco Raremaster 1 1448 Last post April 16, 2017, 06:16:14 AM
by mclarekin

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.264 seconds with 24 queries. (Pretty URLs adds 0.011s, 2q)