Author Topic: Idea for Axiom, transparent, black and white  (Read 4015 times)

0 Members and 1 Guest are viewing this topic.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Idea for Axiom, transparent, black and white
« on: January 07, 2011, 10:54:09 am »
So here's the idea:

Pt-Off clears an 8x8 area, and draws to the screen.
Pt-On only draws over what's there.

Neither way really lets you draw something without a box around it, but that has white inside of it. For instance, a Character on an RPG with a Black outline, but white inside. If you could have a value for transparent pixels (probably by using nybbles, or just 4 bits per 2 Pixels) Then the (other, not changing pt-off and pt-on) command would draw a sprite to the screen, erasing where a "White" pixel is, but leaving transparent marked pixels alone. Also, when using both buffers with B/W, Transparent should let the backbuffer through, but White shouldn't (I.E. A cursor)

What do you think?

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Idea for Axiom, transparent, black and white
« Reply #1 on: January 07, 2011, 11:21:14 am »
Do you know how to use Pt-Mask / Plot1() from the .html list of Axe Commands?  That might be what you're looking for
« Last Edit: January 07, 2011, 11:22:02 am by Hot_Dog »

Ashbad

  • Guest
Re: Idea for Axiom, transparent, black and white
« Reply #2 on: January 07, 2011, 01:15:27 pm »
yeah that's what pt-mask does, I use it quite a bit, very helpful ;)

and pt-on doesn't draw a box around it, it actually OR's it to the screen (draws only the black parts) to the buffer, and pt-off XOR's it (basically, kinda like inverting it onto the screen kinda sorta)

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Idea for Axiom, transparent, black and white
« Reply #3 on: January 07, 2011, 02:50:46 pm »
yeah that's what pt-mask does, I use it quite a bit, very helpful ;)

and pt-on doesn't draw a box around it, it actually OR's it to the screen (draws only the black parts) to the buffer, and pt-off XOR's it (basically, kinda like inverting it onto the screen kinda sorta)
Pt-Change() XOR's and Pt-Off uses overwrite logic, erasing the are behind the sprite in addition to drawing the sprite.
« Last Edit: January 07, 2011, 02:51:08 pm by FinaleTI »


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Idea for Axiom, transparent, black and white
« Reply #4 on: January 07, 2011, 09:02:35 pm »
Umm, I didn't say anything about a boxfrom Pt-on. You just can't have any white inside of it.

But anyways, that's sort of what I had in mind. Does it act like Pt-On (just drawing over it) or Pt-Off? (Where it erases a square in the buffer)

My end goal was basically to be able to leave the backbuffer alone, while the front render can show objects with white pixels, even if the backbuffer has a black pixel there.

SirCmpwn

  • Guest
Re: Idea for Axiom, transparent, black and white
« Reply #5 on: January 07, 2011, 10:55:15 pm »
What I do to achieve this (masked sprites) is to have two sprites.  One is white where the sprite is transparent, and black where it is opaque (sprite 1).  Then, I have another sprite whose white pixels are disregarded, and whose black pixels correspond to white pixels in the masked sprite (sprite 2).  Then, I Pt-On( sprite 1 and Pt-Change( sprite 2 in the same place, in that order.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Idea for Axiom, transparent, black and white
« Reply #6 on: January 08, 2011, 09:16:18 pm »
SirCmpwn doesn't your sprite 2 also need to be inverted too? Else, I think you also have to Pt-Change sprite 1 after displaying Sprite 2, making it a bit slower.