| |||
Views: 88,491,146 |
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search | 04-27-24 04:51 AM |
|
Guest: Register | Login |
0 users currently in ROM Hacking | 2 guests |
Main - ROM Hacking - Can I have some preset HDMA tables? | New thread | New reply |
cory21391 |
| ||
Flurry Level: 37 Posts: 72/260 EXP: 331887 Next: 6366 Since: 03-01-07 From: NC, US Last post: 5129 days Last view: 5129 days |
yeah, I got HDMA now, but.... Well, I suck at animations and suck even more at wavey animations. So, are there any preset (3 or 4) hdma tables to simulate H-Scroll waviness? (kinda like DCK water levels) I tried to use 3 tables and after every so many wai's I'd change the table (the order was 1, 2, 3, 2, 1 ....etc.) but it was quite horrible ____________________ |
blackhole89 |
| ||
The Guardian Moloch whose eyes are a thousand blind windows! Level: 124 Posts: 388/4196 EXP: 21534225 Next: 302376 Since: 02-19-07 From: Ithaca, NY, US Last post: 472 days Last view: 85 days |
|
cory21391 |
| ||
Flurry Level: 37 Posts: 73/260 EXP: 331887 Next: 6366 Since: 03-01-07 From: NC, US Last post: 5129 days Last view: 5129 days |
Couldn't i just use preset hdma tables as "frames" and wai so many times and change the table on the channel and loop it? I actually did this, but my values for BG2 scroll sucked and it just like moved back and forth...
an example would be:
____________________ |
blackhole89 |
| ||
The Guardian Moloch whose eyes are a thousand blind windows! Level: 124 Posts: 389/4196 EXP: 21534225 Next: 302376 Since: 02-19-07 From: Ithaca, NY, US Last post: 472 days Last view: 85 days |
|
cory21391 |
| ||
Flurry Level: 37 Posts: 75/260 EXP: 331887 Next: 6366 Since: 03-01-07 From: NC, US Last post: 5129 days Last view: 5129 days |
yeah, I could optimize this and put the table's address in RAM, and just change the source address in vblank or something... But, uh, I don't really understand all of your suggestive code. I may sound stupid for asking this, but "what's a sine table?" the only place I've heard sine is somewhere in Alg 2 but I wasn't paying attention ____________________ |
MathOnNapkins |
| ||
Super Koopa Level: 62 Posts: 193/842 EXP: 1935624 Next: 49062 Since: 02-19-07 From: durff Last post: 4489 days Last view: 4012 days |
Sine just means it looks like a nice smooth wave (rather than a jagged wave). You want animation to look smooth, not stilted.
And I guess you figured out that HDMA effects aren't automatically awesome unless you put some work into them. ____________________ Zelda Hacking Forum hobbies: delectatio morosa |
blackhole89 |
| ||
The Guardian Moloch whose eyes are a thousand blind windows! Level: 124 Posts: 390/4196 EXP: 21534225 Next: 302376 Since: 02-19-07 From: Ithaca, NY, US Last post: 472 days Last view: 85 days |
|
cory21391 |
| ||
Flurry Level: 37 Posts: 77/260 EXP: 331887 Next: 6366 Since: 03-01-07 From: NC, US Last post: 5129 days Last view: 5129 days |
lol yeah, at first I was actually stupid enough to think that if I copied the BG2 wavey scroll table from qwertie's GFX doc it would simulate waves.... AHAHAHA!!! yeah.... I feel dumb now But anyways, I think I know how to sort this out now. It'll take some work, but then again, so will programmnig an entire game... thanks again for the help ____________________ |
Ailure |
| ||
Hats Steam Board2 group Level: 121 Posts: 1430/3965 EXP: 19780291 Next: 276405 Since: 02-19-07 From: Sweden, Skåne Last post: 3302 days Last view: 2053 days |
Posted by blackhole89Indeed. I realized this for a month ago when I was making a quick clock in openGL. I had to read a bit in Wikipedia to get it going, since it's been ages since I learned Trigonometry. ____________________ AIM: gamefreak1337, MSN: Emil_sim@spray.se, XMPP: ailure@xmpp.kafuka.org
|
smkdan |
| ||
Ninji Level: 36 Posts: 72/238 EXP: 288666 Next: 19444 Since: 05-26-07 Last post: 4063 days Last view: 4012 days |
In WLA, .DBSIN and .DWSIN let you create tables very easily. You enter the starting angle, number of entries, rate of oscilliation, amplitude, and an optional additive. It'll conveniently create a bunch of signed numbers from it. |
cory21391 |
| ||
Flurry Level: 37 Posts: 82/260 EXP: 331887 Next: 6366 Since: 03-01-07 From: NC, US Last post: 5129 days Last view: 5129 days |
well, as far as Trigonometric functions go, I'm about to be in 11th grade, so this year I'll be taking pre-calc. so yeah... ____________________ |
Main - ROM Hacking - Can I have some preset HDMA tables? | New thread | New reply |
© 2005-2023 Acmlm, blackhole89, Xkeeper et al. |
MySQL - queries: 67, rows: 97/98, time: 0.016 seconds. |