Emuforums.com

Go Back   Emuforums.com > Gamecube Emulation > Dolphin Discussion
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old December 14th, 2008   #1 (permalink)
Registered User
 
Join Date: Aug 2008
Location: USA
Posts: 18
Zelda WW Pictograph bug info

So I've been poking around with this bug for a while now, but without more knowledge on my part, I doubt I'll get any farther, so I figured it'd be a good idea to mention what I did find out. Namely, why this bug is happening.

The source of the bug comes from the way that the OpenGL and DirectX plugins handle the commands sent to them by the function GXCopyTex under certain circumstances. It's not really worth getting into the details here, so I'm just going to list the commands in question. They consist of 6 BP register loads, with one register already set to a certain value which may or may not be important. Fifo that sets this value is not actually within the function, but it would be:

61 43 000041

The first two loads are routine: outlining the area on the screen that needs to be copied. Fifo for these is:

61 49 0130a8
61 4a 033d2f

Then comes:

61 4d 000013

From what I can see, it's not entirely clear yet what this register is supposed to do. However, I don't think this is the problem in this scenario.

The next is the destination of the copy:

61 4b 04be0d

This represents the location in memory of 0x8097c1a0

Finally, the action of copying is performed with the following command;

61 52 018213

Based on the current implementation of the plugins, this performs an HLE function to copy the texture.

There's just one problem here. Because this is done via HLE, there is one outcome of this scenario which is currently not being performed. The pictograph algorithm in Zelda: Wind Waker actually requires the texture to be copied to the location in memory where the destination of the copy would have been, storing it there in the exact format and dimensions specified by the copy. This information is required in order to perform further processing on the image before being stored wherever the pictograph data is being stored. Because the texture copying is not being done at a low level, the memory space where it would have been read during the further processing is empty, which generates an error.

So that's the story of that bug. I wish I could fix it myself, but I really don't know enough about either DirectX or OpenGL to be able to implement a fix. Hopefully this information will be helpful to someone, and hopefully I haven't made any mistakes in my reasoning along the way.
Maratanos is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old December 17th, 2008   #2 (permalink)
Rockman fan
 
RockmanForte's Avatar
 
Join Date: May 2002
Location: Earth!
Posts: 5,098
I wonder if someone did fix this ? He has good conception, I think.
__________________
I have:

Wii: Starfall, Neogamma R8 beta 11, and currently on 3.2u
PSP PHAT: 1001k [TA-081] Custom Firmware 5.50 GEN-D2(FULL)

CASE: EagleTech Sidewinder Gaming Tower Case w/420W Power Supply Black
OS: Windows 7 Ultimate 64bit
CPU: Intel core 2 Duo Processor E8400 (2x 3.0GHz/6MB L2 Cache/1333FSB)
Processor Cooling: Thermaltake V1 CPU Cooling Fan System Kit Silent & Overclocking Proof
Graphics Card: NVIDIA GeForce 8800GT 512MB w/DVI + TV Out Video
Memory: 2048GB [1024GB X2] DDR2-800 PC6400 Memory Module Corsair-Value or Major Brand
Sound Card: 3D Premium Surround Sound Onboard
RockmanForte is offline   Reply With Quote
Old December 17th, 2008   #3 (permalink)
******
 
Join Date: Jul 2008
Posts: 1,188
Hmm, yeah some gfx bugsz

Last edited by omegadox; December 17th, 2008 at 23:45..
omegadox is offline   Reply With Quote
Old December 17th, 2008   #4 (permalink)
Emu author
 
Join Date: May 2003
Posts: 417
Maratanos, good analysis.

Omega, no. But it's the same problem that Mario Sunshine has with its goo. Guess someone will have to get around to fixing it, heh...
ector is offline   Reply With Quote
Old December 17th, 2008   #5 (permalink)
Rockman fan
 
RockmanForte's Avatar
 
Join Date: May 2002
Location: Earth!
Posts: 5,098
I hope Pictograph bug will be fix.. It can help other some games that similiar to it.
__________________
I have:

Wii: Starfall, Neogamma R8 beta 11, and currently on 3.2u
PSP PHAT: 1001k [TA-081] Custom Firmware 5.50 GEN-D2(FULL)

CASE: EagleTech Sidewinder Gaming Tower Case w/420W Power Supply Black
OS: Windows 7 Ultimate 64bit
CPU: Intel core 2 Duo Processor E8400 (2x 3.0GHz/6MB L2 Cache/1333FSB)
Processor Cooling: Thermaltake V1 CPU Cooling Fan System Kit Silent & Overclocking Proof
Graphics Card: NVIDIA GeForce 8800GT 512MB w/DVI + TV Out Video
Memory: 2048GB [1024GB X2] DDR2-800 PC6400 Memory Module Corsair-Value or Major Brand
Sound Card: 3D Premium Surround Sound Onboard
RockmanForte is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 04:29.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5