Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Rom Hacking: hukka | 2 guests
Acmlm's Board - I2 Archive - Rom Hacking - looking for a (sine)table generator | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
d4s

Panser
Level: 29

Posts: 132/325
EXP: 142151
For next: 5734

Since: 03-23-04

Since last post: 13 days
Last activity: 1 day
Posted on 03-08-05 05:50 AM Link | Quote
im looking for a tool that can generate tables from some simple inputs.

heres why:
im currently reprogramming the intro of my breath of fire 2 hack using some official artwork ive redrawn in 16 colours, animestyle (was lots of work).
heres a wip-shot without any fancy effects:



and in case you feel like asking:
yes, this is a direct screenshot from zsnes, no mockup.
im using every damn byte of ram the ppus have to offer and i think it shows.

the scenes basically consist of a background layer and a foreground layer(thats the one the characters are on), both are 32x64 tiles wide.

instead of scrolling the layers with statical velocity(wich sucks), i've implemented a loader that writes tableentries to the bg scroll regs every other frame, enabling
smooth and sexy movement.

now heres my problem:
i dont have a tool thats able to generate such tables.
ive tried hitmens sinuslab and pans rollercoaster but these are well,
most suitable for generating sinetables, wich are not so useful for me.

im looking for something that can generate two-dimensional movement tables basing on some vectors provided by the user.

im sure something like that exists, but unsure where or what exactly im searching for.
suggestions, anyone? =)






(edited by d4s on 03-07-05 08:56 PM)
Lin2tagada
Newcomer
Level: 5

Posts: 3/7
EXP: 281
For next: 248

Since: 03-16-05

Since last post: 182 days
Last activity: 182 days
Posted on 03-19-05 04:39 PM Link | Quote
I'm not experienced with this, but I found this interesting page about rotozoomers ("a graphic effect that rotates and zooms into some picture.")

http://www.ocf.berkeley.edu/~horie/qbrotate.html

There's also a section about generating a sinetable, but this is nothing more than precalculating the sine of each integer degree angle, to speed up your code.
ev0

Goomba
Level: 9

Posts: 13/27
EXP: 2513
For next: 649

Since: 12-16-04

Since last post: 10 days
Last activity: 7 days
Posted on 04-05-05 02:01 PM Link | Quote
Look at puoet.net
search in the production for demo tool
there is The Gang Sinus Creator a very nice tool
there is also Hitmen Sine Gen or something like this
there is somewhere on the net a sine creator by Pan of Anthrox but is really hard to find
and i dont't remember where i've taken it
d4s

Panser
Level: 29

Posts: 159/325
EXP: 142151
For next: 5734

Since: 03-23-04

Since last post: 13 days
Last activity: 1 day
Posted on 04-05-05 05:12 PM Link | Quote
thanks for the suggestions, dudes.
ive already resolved the problem.
instead of using full sinetables that are written to the scroll registers directly, i
use tables that contain relative speed changes now.
this proved to be much more flexible, created smoother movement and the
tables are much smaller now, because they only contain the actual speed changes.
these are <32 bytes typically and can be easily created manually in a hexeditor.

another comfortable way to generate these kind of tables is to use a graphics editing program, btw.

make a 8bpp greyscale picture with a height of 1 pixel.
draw some kind of horizontal gradient and save the file as 8bpp greyscale tiff file.
open that file in a hexeditor, get rid of the tiff header and there you go.



(edited by d4s on 04-05-05 12:14 AM)
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Rom Hacking - looking for a (sine)table generator | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.003 seconds.