English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 02 January 2021, 02:56   #21
lmimmfn
Registered User
 
Join Date: May 2018
Location: Ireland
Posts: 672
Quote:
Originally Posted by Galahad/FLT View Post
So, it seems 30 years later, the most impressive coding in Xenon 2 wasn't the game itself, it was the realtime zooming for the logos in the intro!
Haha, my thoughts exactly, i always assumed it was prerendered.
The game itself, another story, never understood the praise and ran slow as crap.
lmimmfn is offline  
Old 02 January 2021, 10:44   #22
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,160
the graphics are good, the music is good, the power ups are good. but it's just too hard specially in the later levels and you can't make progress/get level codes like in other Bitmap Bros games.

and levelskip is useless because you need to get power related to the level you're going to play (like in chaos engine where the levelcodes save the money you have)
jotd is offline  
Old 02 January 2021, 11:21   #23
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
Damn, during the night I thought about the code, then today I wrote a few lines, but the laziness remains, so I don't know when I'll continue

Ok, here is a fixed-point math helper code to generate the 'zoom table' (actually it is a shrink columns bit-mask):
Code:
m_step  EQU 32

    lea mask(pc),a0
    move.w  #(65536/m_step),d3
    moveq   #0,d1

.r  moveq   #0,d0
    move.w  #(65536/2),d2       ; .5
    moveq   #32-1,d7            ; 32 bit mask
.m  add.w   d1,d2
    addx.l  d0,d0
    dbra    d7,.m
    move.l  d0,(a0)+
    add.w   d3,d1
    bcc.b   .r
    ext.l   d7
    move.l  d7,(a0)+            ; full image
    rts
   
mask
I created this generic code for 2 reasons:
- I needed a mask that wasn't limited to 16 bits
- I had to be able to use more than 16 zoom levels

This is because on the A500 the zoom speed is very limited (I don't think it even reaches 12fps when the image visible part is big..), while on the A1200 you can reach 50fps.
So you would have a magnify with a 'right' speed and a less coarse transition between the different images.

With m_step=32 you double the generated images, but maybe for a better speed 48 is right.

Off course using a value of 16 for m_step and extracting only 16 bits from the mask would give you exactly the ZOOMTAB used in Xenon2.


EDIT: however, the ultimate goal remains to not even use the mask (or rather, use it indirectly)

Last edited by ross; 02 January 2021 at 11:51.
ross is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for IPF image of Xenon II - Megablast KIXX budget 1 disk version solarmon project.SPS (was CAPS) 36 01 November 2020 11:23
Working RGB2HDMI Scaler Solderbro support.Hardware 3 17 June 2018 20:16
Video Scaler, has anyone used one of these ? Kakaboy Hardware mods 5 26 March 2010 09:43
uaectrl improvement hexaae support.WinUAE 2 30 May 2009 00:49
Opinions on this video scaler please! Fingerlickin_B support.Hardware 3 29 November 2008 14:18

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:49.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.13821 seconds with 13 queries