Dark Bit Factory & Gravity

PROGRAMMING => Other languages => Blitz => Topic started by: Pixel_Outlaw on February 25, 2009

Title: [Bmax] Unlimited Bobs effect in Blitz?
Post by: Pixel_Outlaw on February 25, 2009


Does anyone know if there is a way to do the unlimited bobs effect in Bitzmax? I heard it requires multiple screen buffers and it seems that the default library only gives the coder one.
Title: Re: [Bmax] Unlimited Bobs effect in Blitz?
Post by: zawran on February 25, 2009
You would probably have to use pixmaps, and then do the manipulation directly in the pixeldata. For something 640x480 it would probably run ok on most systems.
Title: Re: [Bmax] Unlimited Bobs effect in Blitz?
Post by: Jim on February 25, 2009
You need at least 3 screens, so if there's only 1 real frame buffer from blitz (or a double buffer), you'll have to manage them in memory and blit the whole frame over each time.  As Zawran says, at 640x480 that will probably work.

Jim

Title: Re: [Bmax] Unlimited Bobs effect in Blitz?
Post by: Pixel_Outlaw on February 25, 2009
Ok thanks. I was a bit worried about speed using read & write on pixmaps that large..
Title: Re: [Bmax] Unlimited Bobs effect in Blitz?
Post by: Jim on February 25, 2009
For infibobs you're only drawing 1 bob per frame!

Jim
Title: Re: [Bmax] Unlimited Bobs effect in Blitz?
Post by: zawran on February 26, 2009
Yes its only one bob at a time, so its probably 32x32 pixels or so. But don't use read/writepixels commands, use pointers to the pixel data instead, much faster, although you have to make sure yourself, that you do not write outside the pixmap.
Title: Re: [Bmax] Unlimited Bobs effect in Blitz?
Post by: va!n on May 27, 2009
yes, its a fake / nice trick this unlimited bobs stuff ^^
btw, when i the first Blitz2D version for pc was available and i tried to test it... there was a website (dont remember the name)... full with great examples and all with sources afaik.... Some very cool examples of demo effects like unlimited bobs.... maybe you or someone has d/l or saved some of this "old" ( i think in the meanwhile offline) website?