Author Topic: Drawing inked Sprites/Animations  (Read 3061 times)

Offline S. P. Gardebiter

  • Mr. Polyvector
  • ***
  • Posts: 245
    • View Profile
    • Tile 44 Interactive
Drawing inked Sprites/Animations
« on: 2010-Mar-19 »
I'm asking for a function simular to alphamode. And no I'm not talking about Polyvectors.
A ink function for DRAWSPRITE and DRAWANIM that works together with alphablending would be wonderful :x
I can't use polyvectors, because it gets pretty slow if I use tilesets and draw more than 100 tiles with alphablending.
~ Cave Story rules! ~

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10714
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Drawing inked Sprites/Animations
« Reply #1 on: 2010-Mar-19 »
I have no other method of doing an POLYVECTOR internally when you try to teint your sprites. POLYVECTOR is the way to go, sorry :/

Offline S. P. Gardebiter

  • Mr. Polyvector
  • ***
  • Posts: 245
    • View Profile
    • Tile 44 Interactive
Re: Drawing inked Sprites/Animations
« Reply #2 on: 2010-Mar-19 »
I have no other method of doing an POLYVECTOR internally when you try to teint your sprites. POLYVECTOR is the way to go, sorry :/

I could prerender it and store it into a sprite, but that would consume huge chunks of RAM :x
Is there really no other method? D:
~ Cave Story rules! ~

Offline monono

  • Mr. Polyvector
  • ***
  • Posts: 213
    • View Profile
    • Sockel Lernmedien
Re: Drawing inked Sprites/Animations
« Reply #3 on: 2010-Mar-26 »
@S. P. Gardebiter: Do you start a single polyvector for every sprite? I do use just one polyvec for hundrets of sprites in my new project. It works fine even with different alpha values. Surely you have to do the DRAWANIM like animation by yourself.

Offline S. P. Gardebiter

  • Mr. Polyvector
  • ***
  • Posts: 245
    • View Profile
    • Tile 44 Interactive
Re: Drawing inked Sprites/Animations
« Reply #4 on: 2010-Mar-28 »
How should I do it with one Polyvec, if every tileset block is able to have a different color?

Edit: GLBasic was updated and Polyvectors should be faster now o:
I will try it.

Edit edit: The first 10 secounds it lags like *love making* hell, but after that it works stable. :)

Thanks Gernot! :good:
« Last Edit: 2010-Mar-28 by S. P. Gardebiter »
~ Cave Story rules! ~