Jump to content


Ray-tracing quaternions/hypercomplex fractals


7 replies to this topic

#1 MakinMagic

    New Member

  • Members
  • Pip
  • 7 posts

Posted 19 August 2009 - 03:44 PM

Has anyone worked on a method for efficiently ray-stepping through the "inside" of 3D+ non-affine fractals ?
I'm asking as I am working on code to ray-trace fractals that will include transparency/diffraction.
So far the only relevant text I've found is the brief outline on Wikipedia regarding Distance Estimation for the "inside" but the algorithm requires too many iterations and is not generic enough for the purposes of rendering general 4D number systems.
I'd appreciate any thoughts on the subject :)

#2 SyntaxError

    Valued Member

  • Members
  • PipPipPip
  • 139 posts

Posted 19 August 2009 - 05:55 PM

I don't really know much about ray tracing but I think Mojoworld uses it. There is an algorithm in "Texture & Modeling A procedural Approach, third edition" but I'm not sure if it's even close to what you need. I haven't looked at it in detail because I'm not doing ray tracing. I bought Mojoworld just to try it out but the frame rate is pretty low. It's engine would not be suitable for games, but it's still a cool program.

In any case your problem sounds like a Kenton Musgrave sort of thing. I think he either started Pandromeda (they sell Mojoworld) or at least he works there. He's also a pretty famous author and fractal expert. He sent me email personally when I some issue installing the program. We even had a short email exchange. He sounded like a supper nice guy. You might want to look into his work or contact him.

#3 MakinMagic

    New Member

  • Members
  • Pip
  • 7 posts

Posted 19 August 2009 - 09:28 PM

Thanks very much, I'll give contacting him a try...

#4 flux00

    Valued Member

  • Members
  • PipPipPip
  • 108 posts

Posted 20 August 2009 - 01:41 AM

Why can't you simply trace a ray toward the fractal from the other side with exactly the opposite direction?

#5 MakinMagic

    New Member

  • Members
  • Pip
  • 7 posts

Posted 20 August 2009 - 03:20 PM

flux00 said:

Why can't you simply trace a ray toward the fractal from the other side with exactly the opposite direction?

Well that would work if all fractals were 100% convex but if they were then they probably wouldn't be fractals :)

#6 flux00

    Valued Member

  • Members
  • PipPipPip
  • 108 posts

Posted 27 August 2009 - 03:37 AM

What?

Once you already have the intersection algorithm it'd be easy.

You can also do something similar with refraction.

Posted Image

#7 Reedbeta

    DevMaster Staff

  • Administrators
  • 5309 posts
  • LocationSanta Clara, CA

Posted 27 August 2009 - 03:53 AM

I think he's talking about cases where a ray could have more than two intersections with the fractal; it could go in, go out, then go in again somewhere else and go out again. In your diagram, this could happen if the ray was vertical.

In that case if there's no distance function that works well inside the fractal, it seems like it could be hard to find all the intersections. At least that's what I think the OP is getting at.
reedbeta.com - developer blog, OpenGL demos, and other projects

#8 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2725 posts

Posted 27 August 2009 - 10:29 AM

The only fractals i can think of form octrees, imagine a 3dtilemapped octree that always invites new detail.
you used to be able to fit a game on a disk, then you used to be able to fit a game on a cd, then you used to be able to fit a game on a dvd, now you can barely fit one on your harddrive.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users