Logo by tomot - 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: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. September 17, 2019, 03:32:23 AM


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: raytracer upgrade  (Read 1416 times)
0 Members and 1 Guest are viewing this topic.
ajclinto
Guest
« on: December 13, 2009, 06:58:44 AM »

I've just spend about a day upgrading a school project raytracer that I wrote back in 2003 with a mandelbulb primitive.  This is the first decent result.  Originally rendered at 1600x1600, this uses a straight raymarcher with ambient occlusion and a point light.  I spent a bit of time optimizing the bulb evaluation function, it's about 10x faster than my first implementation that used the trig iteration formula.  It's now SSE'd, and uses the evaluation function from http://www.fractalforums.com/3d-fractal-generation/true-3d-mandlebrot-type-fractal/msg8470/#msg8470.

Let me know what you think.  It has been fun browsing all the incredible results on this forum over the last few days!

AJ


* mandelbulbD.jpg (212.97 KB, 800x800 - viewed 353 times.)
Logged
cbuchner1
Fractal Phenom
******
Posts: 443


« Reply #1 on: December 13, 2009, 12:48:45 PM »

Let me know what you think.  It has been fun browsing all the incredible results on this forum over the last few days!

AJ

The perspective is responsible for the distortion here?

How long did this render?

Impress us by putting mirrors and shiny metal balls around it wink

Logged
ajclinto
Guest
« Reply #2 on: December 13, 2009, 04:03:41 PM »

The perspective is responsible for the distortion here?

How long did this render?

Impress us by putting mirrors and shiny metal balls around it wink

Yeah it uses a perspective camera.  The render time was about 1 hour, but I just realized it would probably make more sense to bound this thing with a sphere rather than a box - I'm going to test that out right away.

I'll work on some renders that include reflective spheres smiley
Logged
cbuchner1
Fractal Phenom
******
Posts: 443


« Reply #3 on: December 13, 2009, 05:40:47 PM »

Yeah it uses a perspective camera.  The render time was about 1 hour

Hmm, may i suggest raytracing on the graphics chip instead. I get about 20 frames a second, as opposed to 1 per hour wink
Logged
ajclinto
Guest
« Reply #4 on: December 13, 2009, 06:03:05 PM »

Hmm, may i suggest raytracing on the graphics chip instead. I get about 20 frames a second, as opposed to 1 per hour wink

Lol ;-) yes I'd like to try porting it to the GPU once I've finished optimizing the CPU implementation.  Are you using any special tools for your gpu renders or did you code it from scratch?

I just tested out bounding spheres and it cut the render time by 1/3.  So I'm sitting at 20 minutes now instead of 1 hour.  Going to try distance estimation next.
Logged
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #5 on: December 13, 2009, 06:10:19 PM »

Hmm, may i suggest raytracing on the graphics chip instead. I get about 20 frames a second, as opposed to 1 per hour wink

Lol ;-) yes I'd like to try porting it to the GPU once I've finished optimizing the CPU implementation.  Are you using any special tools for your gpu renders or did you code it from scratch?

I just tested out bounding spheres and it cut the render time by 1/3.  So I'm sitting at 20 minutes now instead of 1 hour.  Going to try distance estimation next.

To put your render times in context, what CPU are you using ?
Logged

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

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
ajclinto
Guest
« Reply #6 on: December 13, 2009, 06:24:02 PM »

To put your render times in context, what CPU are you using ?

It's a core2 1.8GHz, single threaded.
Logged
cbuchner1
Fractal Phenom
******
Posts: 443


« Reply #7 on: December 13, 2009, 06:28:02 PM »

Hmm, may i suggest raytracing on the graphics chip instead. I get about 20 frames a second, as opposed to 1 per hour wink

Lol ;-) yes I'd like to try porting it to the GPU once I've finished optimizing the CPU implementation.  Are you using any special tools for your gpu renders or did you code it from scratch?

I am not a from scratch guy. So I chose the nVidia Optix SDK, which is a pretty generic framework for raytracing on the GPU (nVidia products only). And the best news: It is free. However high performance GPUs from nVidia cost a bit... and consume a non-negligible amount of power when computing under full load (think in the order of 180 Watts for a GTX 260 graphics card).

And I have two of these cards, so my PC is a nice supplemental space heater for my home office room.

Christian
« Last Edit: December 13, 2009, 06:31:16 PM by cbuchner1 » Logged
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #8 on: December 13, 2009, 09:29:38 PM »

Hmm, may i suggest raytracing on the graphics chip instead. I get about 20 frames a second, as opposed to 1 per hour wink

Lol ;-) yes I'd like to try porting it to the GPU once I've finished optimizing the CPU implementation.  Are you using any special tools for your gpu renders or did you code it from scratch?

I just tested out bounding spheres and it cut the render time by 1/3.  So I'm sitting at 20 minutes now instead of 1 hour.  Going to try distance estimation next.

You should find that using a distance estimator will reduce times by around 40% to 60% (depending on how your current version is coded) smiley
Logged

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

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
3D fractal raytracer CAD? Fractal Programs Alef 1 1559 Last post June 11, 2013, 05:54:56 PM
by cKleinhuis
Fractal Raytracer Fractal Programs « 1 2 3 » Hedanito 31 4728 Last post December 18, 2013, 10:27:11 PM
by Hedanito
Anybody upgrade to OSX Mavericks and get M3D to run? Other / General Discussion LMarkoya 2 2093 Last post August 26, 2014, 11:05:58 AM
by KRAFTWERK
updating of DE-Raytracer Fragmentarium « 1 2 ... 15 16 » Crist-JRoger 238 16477 Last post January 28, 2017, 08:44:54 AM
by 3dickulus
state of affairs - forum upgrade Fractal Forums News cKleinhuis 0 528 Last post February 05, 2017, 11:43:36 PM
by cKleinhuis

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.123 seconds with 29 queries. (Pretty URLs adds 0.012s, 2q)