• Welcome to Dark Bit Factory & Gravity.
 

sinus scroll..

Started by marlon, February 10, 2012

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

marlon

Hello everyone..

I am trying to figure out how to sinus wave a horizontal scroller or just a logo ..
I can imagine the process for waving each vertical line in the scroll text or logo must be very slow compared to doing it horizontally..
What is the smartest way to do this?

Windows7 is my os btw!  =)

Many regards,
Marlon Bodhi.

marlon

Did I forget to mention that I have not done much in programming..
I was mostly active back then as a graphician..

But when waving up and down will I not have a lot of cache misses?

- Marlon Bodhi

Stonemonkey

I don't think there's much that could be done for writing to the buffer but maybe turning the font through 90 deg would help as you'd then be reading horizontally for each vertical slice.

marlon

So you suggest flip the offscreen +/-90° and then flip back when done..
It sounds better to insure better cache hits

- Marlon Bodhi

Stonemonkey

#4
Heh, no. Just have your fonts stored so each character is pre rotated by 90 deg, then when you draw each vertical slice of the scroller you are reading horizontally from the character buffer.

EDIT: I think you might have to flip them as well as rotate.