Logo by Khaotik - 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: Visit the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. September 22, 2021, 01:22:49 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: Add alpha to background color of DE_Raytracer?  (Read 1549 times)
0 Members and 1 Guest are viewing this topic.
tryptophan
Safarist
******
Posts: 86


« on: September 23, 2012, 09:27:17 AM »

Just wondering if it would be relatively easy to add an alpha channel to the background color. The way it looks to me I would have to change the trace function to return a vec4 as well as the hitcolor and backcolor variables and maybe a few more (all with there alpha set to 1?). Just wondering if there are any suggestions before I start messing with it.

thanks
Keith


Logged
Syntopia
Fractal Molossus
**
Posts: 681



syntopiadk
WWW
« Reply #1 on: September 23, 2012, 11:41:34 AM »

I guess that you want to have some kind of transparent background, right?

There are some issues there. The now-default rendering in Fragmentarium uses accumulation: multiple samples are calculated for each pixel, and then the results are averaged. Fragmentarium also assigns different weights to each sample (for instance using a Gaussian filter based on distance from the center of the pixel), and in order to do this, I need to use the alpha channel to store the sum of the weights. So it is already in use.

If you wanted to, you might start using one of the older raytracers such as 'DE-raytracer-v0.9.1.frag'. Here is should be possible to do something like you suggest.

Notice, that I'm not even sure you are able to save your results with the alpha channel in Fragmentarium. This depends on how Qt retrieves the OpenGL framebuffer, and on the properties of the chosen file format (I think PNG is the only supported format capable of storing alpha).
Logged
tryptophan
Safarist
******
Posts: 86


« Reply #2 on: September 23, 2012, 08:47:36 PM »

Ah I've been using the older raytracer so far anyways but I think I came up with an alternative solution although it may make using fog and glow difficult. Basically I was thinking of applying a background color such as %100 blue or green (depending on the fractal color) and then key the background out in a video editing application in the same way a person would do for a green screen shot. I'll have to do some test though to see how well it will work with fog and glow. I do know of one keyer though that will probably be able to preserve the fog and glow called Primatte keyer by RedGiant, I'll give that a shot.

cheers
Keith
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Wolfram Alpha Boots Up General Discussion Nahee_Enterprises 0 1769 Last post May 24, 2009, 07:13:53 PM
by Nahee_Enterprises
yFractalExplorer alpha released! Announcements & News yv3 7 3136 Last post November 24, 2010, 03:03:43 PM
by yv3
Wolfram Alpha and fractals General Discussion DarkBeam 1 1611 Last post March 21, 2011, 06:57:08 PM
by Fractal Ken
yFractalExplorer Alpha 5 released Announcements & News yv3 0 2105 Last post April 03, 2011, 11:51:11 AM
by yv3
Allow to chose/visualize color map as background images feature request PhotoComix 0 506 Last post February 14, 2013, 12:58:29 PM
by PhotoComix

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.143 seconds with 25 queries. (Pretty URLs adds 0.007s, 2q)