Author Topic: [Bmax] Unlimited Bobs effect in Blitz?  (Read 795 times)

0 Members and 1 Guest are viewing this topic.

Online Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1344
  • Karma: 79
    • View Profile
[Bmax] Unlimited Bobs effect in Blitz?
« 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.
Challenge Trophies Won:

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 886
  • Karma: 63
    • View Profile
    • zac-interactive
Re: [Bmax] Unlimited Bobs effect in Blitz?
« Reply #1 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.

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5098
  • Karma: 380
    • View Profile
Re: [Bmax] Unlimited Bobs effect in Blitz?
« Reply #2 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

Challenge Trophies Won:

Online Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1344
  • Karma: 79
    • View Profile
Re: [Bmax] Unlimited Bobs effect in Blitz?
« Reply #3 on: February 25, 2009 »
Ok thanks. I was a bit worried about speed using read & write on pixmaps that large..
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5098
  • Karma: 380
    • View Profile
Re: [Bmax] Unlimited Bobs effect in Blitz?
« Reply #4 on: February 25, 2009 »
For infibobs you're only drawing 1 bob per frame!

Jim
Challenge Trophies Won:

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 886
  • Karma: 63
    • View Profile
    • zac-interactive
Re: [Bmax] Unlimited Bobs effect in Blitz?
« Reply #5 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.

Offline va!n

  • Pentium
  • *****
  • Posts: 1334
  • Karma: 106
    • View Profile
    • http://www.secretly.de
Re: [Bmax] Unlimited Bobs effect in Blitz?
« Reply #6 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?
Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows7 x64
http://www.secretly.de
Challenge Trophies Won: