PlayBASIC LIVE - Revisiting Twitch Face Demo - (2020-07-14 )
Here we're taking a look back a demo called Twitch Face from way back in February of 2006. The demo is various stacked blends that 'twitch' or are offset from each other.
This function grabs a chunk from another image, then draws a circle to alpha channel to mask out the bits we want, giving up a 007 sort of circle reveal effect.
This function returns the HANDLE (The unique bank ID) from any Integer array that's passed into it.
PlayBASIC Code:
dim table(100)print handleof(table())syncwaitkeyPsub HandleOf(me())EndPsub Me()
PS3D (Play 3D) software 3d rendering libraries
By: Kevin Picone | Added: December 14th, 2018
PS3D (Play 3D) software 3d rendering libraries
This is an 'as is' release of the PS3D libraries which are set of high level functions for rendering 3D objects into PlayBASIC 2D camera. It includes a simple height map terrain, cube primitives and MD2 loader, allowing the user to create a scene but a lot of necessary high level code is missing for the casual user, collisions for example .
This is a refactored version of Scotties Voxel Terrain demo published back 2016. I've tweaking the inner loops and data mainly to try and squeeze out from performance from the demos code, adding gouraud shading and depth queues to the terrain.
This version has been refactored and includes various common tips when speed up work heavy loops, as well as a few ideas on speed up voxel, by simply not sampling the ground at the same interval, so the further the ray gets from the camera, the ray is moving in bigger steps. So it's accurate, but the result isn't much different from the simple version. If you going for max speed in PlayBSIC V1.65 then there's still a couple places within the inner loop that could can tweak further..