PDA

View Full Version : New article on TBGL website covering blending based bokeh rendering



Petr Schreiber
23-08-2010, 11:26
I think the best way to celebrate todays ThinBASIC 5 years anniversary is with script :)

That is why even this month, you get something new from TBGL realm.
This time it is article focused on possible approach to bokeh rendering.

You can download the article from here:
MovieFX: Blending based bokeh (http://psch.thinbasic.com/articles/MovieFX_Blending_Based_Bokeh.pdf) [PDF]

You can access the article anytime later by visiting Articles (http://psch.thinbasic.com/articles.html) section of TBGL website.

There are two scripts to accompany it, you can download them from the attachement.

Also please update your Lib directory with fixed TBGL, otherwise you will get false positive run time error during the execution.


Petr

ErosOlmi
23-08-2010, 12:35
What a great examples.
And CPU usage is so low.
Fantastic.

Petr Schreiber
23-08-2010, 12:54
Thanks Eros,

The examples show two possible approaches:

The first one, with airplanes, renders as fast as possible, so there the CPU usage can get extreme.
The second one uses timer based approach, so the CPU usage is about zero.


The first example could achieve the same low footprint by using TBGL_BindPeriodicFunction.


Petr

Michael Hartlef
23-08-2010, 13:22
Hi Petr,

great article as always. Can't wait to try the code at home tonight! :eusaclap:

Michael

Petr Schreiber
23-08-2010, 23:01
Thank you Mike,

let me know if it worked on your PC. Both the article and examples are not locked, in case of problem I can fine tune it further.


Petr

kryton9
24-08-2010, 02:28
Nice article Petr, didn't try the code as don't want to get distracted at the moment. Thanks.