News for hackers. Stuff that matters.
Re:Wind Waker Graphics Analysis by Jasper_ on Friday November 11, 2016 @04:47PM (#12934760)
( Copying my comment from an earlier post: https://news.ycombinator.com/item?id=12921949 )

One tiny thing that might help in your analysis: Nintendo accidentally included all the symbol names and locations on the Wind Waker disc in a file called "framework.map".

Doing some basic demangling on the CodeWarriors names gives you C++ classes and methods:

http://funny.computer/cloud/Random/zww_functions.txt

The "sea" animation is controlled by "daSea" -- "da" meaning "dynamic actor" in Nintendo's naming terminology.

It's extremely unlikely they used texture distortion for the sea effect, since the GPU they used didn't have fragment shaders -- the only method of texture warping is INDTEXMTX, which was only used for the heat effects in Dragon Roost Cavern.

They probably modified UVs directly on their triangular sea mesh.

Smoke effects and such use their in-house particle engine, "JPA".

Re:Wind Waker Graphics Analysis by grenoire on Friday November 11, 2016 @05:31PM (#12935095)
Technically it is the case that the given fragment shader is doing the same thing as direct UV modification. It doesn't really change the fact that it's texture distortion, it's just that the fragment shader is capable of doing it on a per-pixel basi.
Re:Wind Waker Graphics Analysis by kayamon on Friday November 11, 2016 @10:38PM (#12936470)
It's a common misconception that the Gamecube doesn't have fragment shaders. The GPU (called the TEV) is almost a straight implementation of DirectX's ps1.0, the same as a GeForce3, with a few extras added.

At my old company I wrote an assembler to read text source and assemble the instructions into TEV format.

Re:Wind Waker Graphics Analysis by Jasper_ on Friday November 11, 2016 @11:32PM (#12936613)
I'm aware of TEVs -- I did write http://magcius.github.io/bmdview.js/bmdview.html after all, which compiles TEV back into GL shaders :)

My point was more that TEVs can't modify texture coordinates, since texcoordgen happens before the TEV stage. TEVs only specify how to blend vertex colors, texture samples, game-set registers and lighting results together using configurable formulas.

Re:Wind Waker Graphics Analysis by kayamon on Saturday November 12, 2016 @12:03AM (#12936685)
It's been a while, but I seem to remember there was an additional indirect texture unit for doing just this kind of stuff.
Re:Wind Waker Graphics Analysis by delroth on Saturday November 12, 2016 @07:54AM (#12937627)
He mentioned this already:

> the only method of texture warping is INDTEXMTX, which was only used for the heat effects in Dragon Roost Cavern

Re:Wind Waker Graphics Analysis by phire on Saturday November 12, 2016 @11:07PM (#12941803)
I agree. I wrote a large comment about this over on reddit.

https://www.reddit.com/r/programming/comments/5cffew/wind_wa...

Re:Wind Waker Graphics Analysis by zfedoran on Friday November 11, 2016 @11:20PM (#12936579)
Do any other games have this file included?
Re:Wind Waker Graphics Analysis by Jasper_ on Friday November 11, 2016 @11:29PM (#12936606)
Twilight Princess and Pikmin have similar files. I think there are a few other games which have them, but I can't remember which.
Re:Wind Waker Graphics Analysis by avar on Friday November 11, 2016 @05:31PM (#12935097)
I was deeply into Nintendo games in the late 90s leading up to Wind Waker's release. I remember after it was announced that so many people were deeply disappointed in these "kiddy" graphics.

Remember that as far as the major releases go it was released in 2002 after Ocarina of Time in 1998 (and a sequel using the same engine in 2000).

People wanted a "real" Zelda game with "real" graphics, like what became Twilight Princess in 2006, whose graphics are a logical follow-up to Ocarina of Time.

It's funny how history turns out, now Wind Waker is widely lauded for its graphics, and it looks much better than the likes of Ocarina of Time or Twilight Princess.

It's a fantastic example of how Nintendo is still a company that dares to experiment, even with their most wildly successful game franchises. That hasn't always worked out, but we've gotten amazing innovative games like Wind Waker as a result.

Re:Wind Waker Graphics Analysis by david-given on Saturday November 12, 2016 @06:07AM (#12937424)
It is, I think, my favourite Zelda game --- it looks superb, the characters work, the story's interesting (even Ganon actually comes across as a bit sympathetic!), fascinating dungeons, the world is endless fun to explore... I just kinda wish they'd finished it: they way the last part of the game devolves into a series of treasure hunts was disappointing. I gather they ran out of money and there was supposed to be another round of dungeons.

There are also some epic design failures: the biggest one, to me, is that the games give you the boat before it's ready to let you explore. Instead it walls off big chunks of the world to railroad you into going to Dragon Roost Mountain. As soon as I got the boat, of course, I headed straight for the nearest island to see what was there, hit a wall and was turned back. I found that showing me the open world and then not preventing me from going there, and in such a clumsy manner, was very disappointing. I think they'd have done better to have simply moved you to the island outside your control, and only let you take command of the boat once you pick up the baton.

A lot of what gives the game its character was the seamless loading between islands. Twighlight Princess, which was a perfectly decent game, seemed much smaller to me because of the endless constrained environments and loading screens.

Meanwhile, I still haven't finished Skyward Sword.

Re:Wind Waker Graphics Analysis by dclowd9901 on Friday November 11, 2016 @06:41PM (#12935507)
I remember the backlash, and it was bizarre, especially given this was the first Zelda game that gave us _some_ semblance of continuity. But I also do remember a Dolphin demo reel showing a more realistic Zelda that probably made people think that's where the next game was going, so people were naturally disappointed when their expectations were undermined.
Re:Wind Waker Graphics Analysis by yoklov on Saturday November 12, 2016 @03:50AM (#12937157)
> the first Zelda game that gave us _some_ semblance of continuity

What continuity is there in WW? Nothing jumps to mind, especially when the previous game (Majora's Mask) was essentially a direct sequel to OOT in comparison.

Re:Wind Waker Graphics Analysis by einr on Saturday November 12, 2016 @04:10AM (#12937190)
At one point you visit Hyrule Castle and there are allusions to Ocarina of Time. I don't really remember the details but it is made clear in-game that player Link is one in a series of Links.
Re:Wind Waker Graphics Analysis by wmil on Saturday November 12, 2016 @07:39AM (#12937594)
Some of this is from memory, but it takes place on a timeline where Ganondorf was sealed. Then Hyrule was flooded to prevent him from ever being unsealed.

The main character is dressed as Link because children dress as the great hero once a year.

Re:Wind Waker Graphics Analysis by dclowd9901 on Saturday November 12, 2016 @10:59AM (#12938463)
That's true! I'd completely forgotten about MM. It always felt like a "mod" of sorts to OOT.
Re:Wind Waker Graphics Analysis by pyre on Friday November 11, 2016 @05:39PM (#12935150)
Nintendo also stoked the flames by releasing a "demo" video to preview the GameCube that featured a more realistic Link.

https://www.youtube.com/watch?v=wBtAvX4Pkyk

People thought that this would be the next Zelda game.

Re:Wind Waker Graphics Analysis by CobrastanJorji on Friday November 11, 2016 @08:26PM (#12936008)
You couldn't be more right. I seem to recall people being really grumpy about Majora's Mask for being "weird" and not very Zelda-y, and now it frequently appears in "best game ever" lists.
Re:Wind Waker Graphics Analysis by eric_the_read on Friday November 11, 2016 @10:56PM (#12936513)
I have to agree, though-- I replay Ocarina all the time, but every time I try to replay Majora's Mask, I get frustrated and quit a few hours in.
Re:Wind Waker Graphics Analysis by endemic on Saturday November 12, 2016 @01:47PM (#12939423)
Try the 3DS port. I ground through the N64 version when it was first released, due to a sense of "I paid for this, so I'm gonna darn well finish it," but the 3DS version adds hints/accessibility that make it a lot more enjoyable.
Re:Wind Waker Graphics Analysis by w0utert on Saturday November 12, 2016 @08:53AM (#12937790)
Yep, that's what happened to me the few times I tried to pick it up. I'm a huge Zelda fan but MM just feels like a chore. I really don't like the whole calendar-based thing, having to do the same things multiple times, having to revisit the same location over and over again. It kills the sense of progress that makes other Zelda games great. By far my least favorite...
Re:Wind Waker Graphics Analysis by radicalbyte on Saturday November 12, 2016 @03:18AM (#12937096)
I was strongly in the camp which loved the cell-shaded graphics. It's a shame that the complainers "won" because it clearly limited Nintendo's creativity for later games.

Nintendo are at their best when they're unconstrained.

Re:Wind Waker Graphics Analysis by Pxtl on Friday November 11, 2016 @08:41PM (#12936062)
Hah, yes, I remember everyone complaining about "Celda".
Re:Wind Waker Graphics Analysis by mwill on Saturday November 12, 2016 @02:14AM (#12936988)
I still think Wind Waker is one of the most visually appealing games Nintendo has ever released.

I say 'one of' but I can't actually think of anything better at the moment.

Re:Wind Waker Graphics Analysis by Rolpa on Saturday November 12, 2016 @07:53AM (#12937624)
Yoshi's Island?
Re:Wind Waker Graphics Analysis by mercer on Saturday November 12, 2016 @09:20AM (#12937903)
Yoshi's Island, for me, is my favorite Nintendo game graphically, followed by, in no particular order, Metroid Prime, Paper Mario, and Wind Waker.

But it's also my favorite when it comes to gameplay and audio. I don't think I've played a platformer all the way through as often as I've played through Yoshi's Island, and its music still randomly pops into my head quite regularly.

Re:Wind Waker Graphics Analysis by Sakall on Friday November 11, 2016 @09:58PM (#12936348)
Still haven't played it for that reason. Then again, I never bought a game cube.
Re:Wind Waker Graphics Analysis by stuxnet79 on Saturday November 12, 2016 @12:51AM (#12936796)
Dolphin Emulator + Wind Waker ROM = HD experience you never had
Re:Wind Waker Graphics Analysis by nommm-nommm on Tuesday November 15, 2016 @04:51PM (#12962586)
If you have a Wii U there's a remastered version available for that.
Re:Wind Waker Graphics Analysis by kemenaran on Friday November 11, 2016 @04:20PM (#12934444)
The compensation of the sea motion reminds me of how Zelda Link's Awakening sea intro sequence was done on the Game Boy. It's suprising how two sea-themed games can make use of the same techniques accross vastly different hardware :)

Here with some animated gifs: http://kemenaran.winosx.com/posts/links-awakening-rendering-... (disclaimer: I'm the author).

Re:Wind Waker Graphics Analysis by pygy_ on Friday November 11, 2016 @04:23PM (#12934482)
That link is dead here... this works: http://kzone.winosx.com/posts/links-awakening-rendering-the-...

Edit: after reading said post, it's a great explanation of the techniques used in Link's Awakening's intro. That game looked gorgeous on the B/W Gameboy, it's cool to actually understand how they managed to pull it out technically.

Re:Wind Waker Graphics Analysis by DiThi on Friday November 11, 2016 @05:56PM (#12935265)
That link is not dead, just fainted on the shore.
Re:Wind Waker Graphics Analysis by qcoh on Friday November 11, 2016 @04:33PM (#12934588)
Re:Wind Waker Graphics Analysis by bhauer on Friday November 11, 2016 @10:33PM (#12936457)
> For the ultimate experience, I’d recommend listening to the incredibly uplifting soundtrack while reading on…

In particular, skip ahead to 33:54 to start with the "Dawn" fanfare followed by Wind Waker's fantastic Ocean sailing song.

https://youtu.be/KnJiC8FeI2I?t=33m54s

Re:Wind Waker Graphics Analysis by sova on Friday November 11, 2016 @04:09PM (#12934353)
Good work. Wind Waker is a very beautiful game. I like that you discovered that using the boat as the origin point for the ocean/waves makes the rest of elevation computation that much easier.
Re:Wind Waker Graphics Analysis by komali2 on Friday November 11, 2016 @05:33PM (#12935112)
The author mentions "two types of ocean." What's the other type? I don't recall.
Re:Wind Waker Graphics Analysis by KwanEsq on Friday November 11, 2016 @05:49PM (#12935213)
The flat surface with waves that look a bit like ^ but wider and curvier. Seen close to major islands like Windfall and the Forsaken Fortress

Example: http://zeldawiki.org/File:Zeldawindwaker01.jpg

Re:Wind Waker Graphics Analysis by alpineidyll3 on Friday November 11, 2016 @04:28PM (#12934534)
Great relaxing gfx-nerd chaser for a terrible week.
Re:Wind Waker Graphics Analysis by Rolpa on Friday November 11, 2016 @09:15PM (#12936195)
Here's a post on Polycount that analyzes other parts of the game:

http://polycount.com/discussion/104415/zelda-wind-waker-tech...

Re:Wind Waker Graphics Analysis by mmanfrin on Friday November 11, 2016 @05:38PM (#12935147)
Does anyone know of any other threejs talk/walkthrough posts? I love watching the development of things with it, like this video:

https://www.youtube.com/watch?v=db-7J5OaSag

Re:Wind Waker Graphics Analysis by mrdoob2 on Saturday November 12, 2016 @05:24AM (#12937320)
Re:Wind Waker Graphics Analysis by fulafel on Saturday November 12, 2016 @08:18AM (#12937680)
Learningthreejs.com has lots.
Re:Wind Waker Graphics Analysis by panic on Friday November 11, 2016 @04:13PM (#12934381)
It'd be neat to compare this with what the game is actually doing (maybe using the Dolphin emulator's debugger).
Re:Wind Waker Graphics Analysis by korijn on Friday November 11, 2016 @05:26PM (#12935049)
As a big fan of the Zelda series and a graphics geek, this was a very interesting read!
Re:Wind Waker Graphics Analysis by cmrdporcupine on Saturday November 12, 2016 @03:04PM (#12939884)
It's amazing how badly this game was trashed when it came out and how it's come to be loved in retrospect.

If the designers had followed the trend at the time and gone for "realistic" 3d with textures it would look horribly dated now.

But they did the right thing and it has aged extremely well. And the re-release looks great on the Wii U.

Re:Wind Waker Graphics Analysis by iaw on Friday November 11, 2016 @04:18PM (#12934414)
Wow, I hope to see a lot more of these in the future. It was a great read.