PDA

View Full Version : MadPulsar - see your images like never before



Petr Schreiber
15-11-2010, 10:45
Hi,

the script in the attachement does some image manipulation which has not yet been shown in TBGL, but that is not the most interesting thing about the script.

Lately, I have created new framework to build my graphic work on. It is based heavily on custom entities of two kinds:


actors - these are any entities with graphic representation, constructor, destructor and method pack
animators - these are any entities which manipulate other actor or animator entities

Custom entities can be created using FuncSlot type of entity very easily, as has been discussed in article (http://psch.thinbasic.com/tutorials/TBGL_user_defined_entities.pdf) before. To create them faster I created ThinBASIC template for actors and animators, where you just replace "<object>" with your name for entity in the code and can start off. Just extract them to \thinAir\Template\TBGL directory.

I prepaired very primitive example where actor is "pulsar" and animator is responsible for animating all pulsars in the scene. It is quite performance expensive demo due to intensive blending, so I added some fine tuning parameters on the left. The bigger the pixel step and smaller the pulsar size will be, the faster it will go. Various parameters result in completely different output, I hope you'll like it.


Petr

Latest TBGL required, get it here please:
The latest TBGL download (http://www.thinbasic.com/community/showthread.php?10909-The-latest-TBGL-version)

ErosOlmi
15-11-2010, 11:50
Petr,

I'm testing on a company machine with thinBasic beta 1.8.6 installed.
I get error (see image).

Do I need to have updated TBGL (the one on SVN) for this?

Thanks
Eros

Petr Schreiber
15-11-2010, 12:01
I am sorry Eros,

yes, it is possible the 1.8.6.0 TBGL contains bug preventing the correct use of TBGL_NewListSpace functionality. I did lot of additions and fixing since then.

Please get the latest TBGL with Help here:
The latest TBGL download (http://www.thinbasic.com/community/showthread.php?10909-The-latest-TBGL-version)

and let me know.


Petr

zak
15-11-2010, 12:46
thanks Petr, yes it is working okay, after updating the TBGL
thank you

ErosOlmi
15-11-2010, 12:49
Yes, now it is working fine.

Mainly it is my fault that I need to update thinBasic with the latest features developed

I will work to have it by next week.

Petr Schreiber
15-11-2010, 13:00
Well, in the first place, I should never release TBGL with problem in TBGL_NewListSpace grrr.


Petr

Michael Hartlef
15-11-2010, 14:08
NICE, I like these kidn of effects. Can't ait to try that when I am back home and have tiome tonight.

Michael Hartlef
15-11-2010, 21:36
Very cool effect! Great job Petr. :)