Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Elder0010

Pages: [1]
1
General coding questions / Re: Soft zoom algorithm
« on: January 17, 2012 »
In my case speed requirement is critical, but your reply makes me think!
I need a more general approach that always starts from the original, instead of considering the last zoomed stuff.. this solves also the problem of zooming out back :D thanks!

2
General chat / Re: The Welcoming Committee
« on: January 14, 2012 »
Greetings Elder0010.

I'll have to dust off my C64. :D

shame on you  ;D ;D ;D

3
General coding questions / Soft zoom algorithm
« on: January 14, 2012 »
Hey there, i'm trying to code a realtime text zoomscroller but i'm having some issues to find a proper algorithm.

Here is what i have in mind:
assuming that each char is an 8X8 pixel square for example:
00000000
00000000
01111100
01100100
01111100
01100000
01100000
01000000
(this can be the letter P - 1 byte per line)

assuming that i want to zoom from 1X1 to 2X2, for each step of the algorithm i have to double only certain couple of pixels, for x and y like

STEP1 (one step per frame - i double the the border pixels)
//X zoom
foreach row of the char (1 byte)
  double pixel (row+0)  //first  pixel of each row
  double pixel (row+7)  //Last pixel of each row
endforeach

//Y zoom
foreach col of the char (1 byte, formed by "vertical" pixels)
  double pixel (colum+0) //First pixel of each column
  double pixel (column+56) //last pixel of each column
endforeach
-----------------------------------------------------------------------
STEP2 (i double the leftborder+1 pixel and rightborder-1 pixels)
//X zoom
foreach row of the char (1 byte)
  double pixel (row+1)  //second  pixel of each row
  double pixel (row+6)  //last-1 pixel of each row
endforeach

//Y zoom
foreach col of the char (1 byte, formed by "vertical" pixels)
  double pixel (colum+1) //Second pixel of each column
  double pixel (column+56) //last-1 pixel of each column
endforeach

(repeat for 7 frames to obtain a 1X1 to 2X2 zoom)

What do you think? This effect is quite common in all oldschool demos, so i know that it's doable with my C64. My approach is surely NOT optimized :(


4
General chat / Re: The Welcoming Committee
« on: January 13, 2012 »
thank you guys! the atmosphere seems very friendly here!

5
General chat / Re: The Welcoming Committee
« on: January 12, 2012 »
Hey guys, i've just registered. I'm not an expert and i really would like to improve my skill in coding :)
Currently i have released a trackmo and an intro and i'm in Onslaught.
You can find my productions here http://csdb.dk/scener/?id=22731.

Pages: [1]