Author Topic: IViewer  (Read 12155 times)

0 Members and 2 Guests are viewing this topic.

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: IViewer
« Reply #15 on: August 04, 2013, 06:11:01 am »
xLIB uses the parser hook, which definitely has its advantages, but also its disadvantages.

I see that you are looking at the library hook for use with openlib/execlib? This is a good idea and something that i have been thinking about as well.
« Last Edit: August 04, 2013, 06:29:47 am by tr1p1ea »
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #16 on: August 07, 2013, 02:07:39 am »
Here's a demo on the BASIC Library, I have one more bug to remove before I release a demo here. It's been a pain trying to debug this! In the video I draw an image named 'COLOR', but I have another image that is the exact same thing named 'HCOLOR'. It will not draw 'HCOLOR' for some reason. They both draw in the IViewer app but 'HCOLOR' will not work with the library  :banghead:


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: IViewer
« Reply #17 on: August 07, 2013, 02:16:57 am »
O.O

Wow that might be pretty useful actually. Do you think you might eventually implement lower color depth formats for those who want smaller files? Also can it draw anywhere on the screen?

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #18 on: August 07, 2013, 02:24:56 am »
It draws any image that you create with the Developer Image Converter. At the minimum you can have a 1bit image (any two colors out of 262144) compressed with RLE. The AppVar would probably be next to nothing in size. It can draw an image anywhere on screen but right now there is no clipping so it has to stay somewhere on the screen. I'll make another demo video in a minute and try to make a pong game with it to demonstrate its speed.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: IViewer
« Reply #19 on: August 07, 2013, 02:57:28 am »
That's pretty nice AssemblyBandit. Also, I've never seen ExecLib used before, but it looks like it's very nice and simple. :)
« Last Edit: August 07, 2013, 02:57:54 am by Art_of_camelot »

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #20 on: August 07, 2013, 03:07:56 am »
Thanks DJ Omnimaga and Art_of_camelot. Here's a video demonstrating the speed. I'm not too impressed with it  :'(


Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: IViewer
« Reply #21 on: August 07, 2013, 03:16:02 am »
Speed doesn't seem too bad, but I wonder how it'd be with more objects moving. I think a test with a bunch sprites simultaneously moving the same amount of pixel(like in space invaders aliens for example) would be a good test. The flickering is kind of annoying. :/ I wonder what's causing it. ???

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #22 on: August 07, 2013, 03:27:58 am »
I'll make a better test tomorrow. The flicker comes from the slow time it takes from drawing over it with black pixels to redrawing the sprite. It will be a little faster with no flicker once I implement low res (160x240) mode.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: IViewer
« Reply #23 on: August 07, 2013, 03:29:22 am »
I see. Sounds good. :)

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: IViewer
« Reply #24 on: August 07, 2013, 04:01:06 am »
Impressive! The speed will come when you brainstorm optimisations etc. Its good that the functionality is there!
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: IViewer
« Reply #25 on: August 07, 2013, 04:10:07 am »
That's looking awesome :O
And /that/ is how OpenLib and ExecLib are supposed to work ^^ I never knew that as i never saw a asm lib that uses those. :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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: Re: IViewer
« Reply #26 on: August 07, 2013, 02:46:27 pm »
Is it faster when using 1, 2, 4, 8 and 16 bits images by the way? Also the speed in your vid doesn't seem too bad for simple moving stuff around.

Also is ExecLib faster than Asm(prgmNAME) (which had to search the VAT then copy the program to a RAM area everytime)?
That's looking awesome :O
And /that/ is how OpenLib and ExecLib are supposed to work ^^ I never knew that as i never saw a asm lib that uses those. :)
yeah back then people avoided using them because on the 83+ and 83+SE there are no OpenLib/ExecLib commands, meaning their programs would have been incompatible.

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #27 on: August 08, 2013, 04:05:07 am »
DJ: I'm going optimize the regular drawing routines and add a specific routine just for drawing library images. I can't say these images will be small but they will be fast  ;D.

Because there's already XLib and Celtic for speed and ease, I want to focus this more on higher quality images to be used with them and BASIC but also be a reasonable option to make study cards or simple games.

Thanks tr1p1ea and Sorunome!

Found that bug, here's a demo...  :w00t:

Theres another bug: If a name is one char it won't be found in the library.
« Last Edit: August 09, 2013, 06:37:20 am by AssemblyBandit »

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: Re: IViewer
« Reply #28 on: August 11, 2013, 12:13:30 pm »
Gonna try the demo ASAP. And yeah another game idea could be a trading card game or even a game with prerendered sceneries like Myst, Illusiat 5 or Final Fantasy VII

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: IViewer
« Reply #29 on: August 11, 2013, 02:05:02 pm »
I might put out another demo but I am leaving out the 160 mode and keeping it the way it is. I added an optimized drawing routine to draw small sprites like cursors and stuff faster. I'll release the final version soon.