Re: Virtual Screens and stuff in True EU

new topic     » goto parent     » topic index » view thread      » older message » newer message

> Yes it is for smooth scrolling... parallax scrolling i do beleve it is
> called.. If you have played the game Solar Winds than you know what i am
> after.. Nitrogen 2000 sugessted i use tile maps instead.. i think he is
> right... this way i am only going to need 1 virual screen
> Sorry for the lack of code.. i didnt post the real stuff.. jsut the
> inportiant code of what i had...I will post full code(or at least as full as
> i have) next time... I have univbe some place.. i went and got sitech
> display doctor 6.2(i think this is the newest) a few months ago
> but have not installed it since i got the S3 card(i had a Trident 9680
> -I(windows version) and needed it.. I ~think~ i have the neil lib but not
> sure... I will look at it soon

Hmm tilez vs a complete VS to scroll ?
What about the often used in-between-method ?
Store the textures as tiles. Have a virtual screen one tile larger and wider
than the normal screen.
Now you can append or prepend what you need on the Y-Axis.

However, if you only need the it scrolling horizontally, you are better off
swapping the x-y in the virtual screen. This way you
can copy whole screens without having to 'clip' or 'scroll a virtual screen
internally'

You can however, create a complete horizontal & vertical scrolling virtual
screen, when you split it up in two passes.
Say, when the screen moves down, new data is drawn from the tiles on the virtual
screen, on top off the old data that the user
can't see any more. The new upper part can copied all the way below. For this
however, you need to maintain two scroll
variables.

In this method thus, you have all the advantages. And again, if you only need
horizontal scrolling, swap the x and y
coordinates. So you don't have to clip your current scrolling part. (you could
even use two copies of a virtual screen, I wonder
what's faster. Guess it depends on the speed that you scroll, if a lot of new
tiles have to be copied twice, it might take
longer than the clipping would have took.) Some one feel like trying this ?

Ralf N.
nieuwen at xs4all.nl

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu