• Welcome to Dark Bit Factory & Gravity.
 

[Bmax] Unlimited Bobs effect in Blitz?

Started by Pixel_Outlaw, February 25, 2009

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Pixel_Outlaw



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.
Challenge Trophies Won:

zawran

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.

Jim

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

Challenge Trophies Won:

Pixel_Outlaw

Ok thanks. I was a bit worried about speed using read & write on pixmaps that large..
Challenge Trophies Won:

Jim

For infibobs you're only drawing 1 bob per frame!

Jim
Challenge Trophies Won:

zawran

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.

va!n

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?
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won: