↓ Aller au contenu
  1. Projets/

Wax DOF Box

·250 mots·2 mins·
Sommaire

About
#

Wax DOF Box changes the focus distance of an image after it has been rendered. It needs two images: the colour image and its depth map, usually written by a raytracer, but a depth map can also be painted by hand.

This version from February 2010 runs on the GPU with GLSL shaders, 20 to 30 times faster than the first CPU version. What remained slow was the transfer between GPU and CPU memory, and writing the images to disk.

The program itself has not been kept: only the screenshots and videos below remain.

How it works
#

The depth of field is computed the way a raytracer does it. For each pixel, the depth read in the depth map, minus the chosen focus distance, gives a deviance: the larger the deviance, the stronger the blur. A larger deviance multiplier needs more samples.

Two shaders do the sampling: method_1 takes the samples on a regular pattern, method_2 at random, which adds a light noise. The samples are read around the pixel, summed and averaged.

The window sets the focus distance, the deviance, the number of samples, the shape of the diaphragm and the method.

Videos
#

Two videos from February 2010, made with a modified version that works in real time. It reads a sequence of 150 colour and depth images (400x300) found on the DOF PRO website. They were captured with FRAPS, so the frame rate is low.

ScreenShots
#

The same image at two focus distances.

Articles connexes

Wax78 Physic laboratory

·247 mots·2 mins
About # This software allow you to experiment physic engine (Phys2D in this case) in realtime. It’s based on the nice Phys2D library written in java. You can create interactivly : All kind of body/shape (box, circle, gear, etc) and put it inside a physically simulated world (Gravitiy, collision, ….). Multiple kinds of joint to link body together. Save/Load the current world. Display # You got two windows.

Wax Midi Sequencer

·100 mots·1 min
About # Standalone Midi séquenceur & MidiSampler for linux/windows written in java. This software allow you to control other audios softwares like synthesizers, samplers. 1 Standalone Audio Sampler with MIDI input included. Features # Piano Roll for sequence and partition edition. Music editor for putting sequence together on the 16 Midi channels. Four midi CC controls in step slider style A input of you sound card could be used to recognize a note your playing in, to help you build a sequence. A Midi able sampler to play samples with nice FX. (WaxSampler). Download # Download version 0.4c

comments powered by Disqus