Join us on Discord!
You can help CodeWalrus stay online by donating here.

[Axiom] Simple shadows!

Started by Snektron, January 07, 2015, 10:24:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Snektron

So today i came up with this nice little shadow program in axe.
Unfortunately, it was horribly slow. So i decided to have a
crack at Axiom developement.

It works by first copying the main buffer to the back buffer,
then looping through each byte of the back buffer and moving it 12 bytes to the right
(one pixel down). Then, depending on the command, one bit right or one bit left.
Although it's not amazingly optimized ASM it works quite well.
I haven't really tested it for bugs, so please use at your own risk :P

EDIT: The tokens are found in the stat-calc menu (at 5, 6 and 7)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Duke "Tape" Eiyeron

Actually, it's a pretty nice idea and a pretty nice result! Have you tried with different graphisms, like hollow shapes?
  • Calculators owned: A lot.

Snektron

Not yet, but i can guess what happens :p
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Keoni29

If you like my work, why not give me an internet?

Snektron

No it only has 3 angles :/
It was just a quick implementation,
but i think im gonna look more in to
this.
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Something that would be cool is if you could find a way to make Axe graphics so that instead of 4 shades of gray, you have black, medium gray, white and transparent, Basically, the dark gray layer would display as medium gray and the light gray layer would be white, while the white layer would be transparent. Then with your program, anything that isn't transparent could generate a shadow at the angle of your choice. I'M unsure if this would be ideal in all situations, but I guess it wouldn't hurt to try to see how it looks like, assuming that is feasible. The shadow would be medium gray.


On a side note, nice to see a new ASM programmer :D
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

aetios

This looks really interesting! How is performance with more than one shape?
ceci n'est pas une signature

Snektron

i haven't really tested, but it shouldnt be more since it does the whole buffer in one go
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


aetios

Ah, I thought you had to put in objects and then it traced those. Seems I was incorrect :P
ceci n'est pas une signature

TheMachine02

Seems good  :) can't wait to see where this will go.

Snektron

I'm actually planning something quite big. I'll see if it works out
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

I can't wait to see :D. But remember that if you are still somewhat new to programming or Axe programming, it's generally recommended to start small and experiment. For example, don't do a Portal or Pokémon clone as your first ever Axe project because it might be too much of a burden.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

Although it is something i tend to do, this project shouldn't be too hard :P.
Actually doing it now :)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Thecoder1998

Looking pretty awesome, cumred!

Powered by EzPortal