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)
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)