Difference between revisions of "Harry Potter Effect"

From Custom Mario Kart
Jump to navigation Jump to search
Line 16: Line 16:
 
== Tutorial how to fix it ==
 
== Tutorial how to fix it ==
  
1) Open your course_model.brres with Brawlbox<br>
+
1) Open your BRRES file with Brawlbox 0.65c (or 0.65b which also requires hex editing)<br>
2) Go into the Material Folder<br>
+
2) Go to 3DModels> course> Materials<br>
3) Go to every transparent texture and make Alphatest false to true<br>
+
3) Go to every transparent material shown here, and make EnableAlphaTest true (which also allows opacity - unconfirmed)<br>
4) save it<br>
+
4) Click the + on each texture in the materials folder of the MDL0, including the nontransparent ones, and make the scale (1,1) for everything instead of (0,0) (or else the track will be all solid colors).
 +
4) Save it. If you are using Brawlbox 0.65c, skip to step 9.<br>
 
5) open it with the szs mod<br>
 
5) open it with the szs mod<br>
 
6) extract the MDL0<br>
 
6) extract the MDL0<br>
7) write 0000 0000 to 0x28 and 0x40<br>
+
7) write 0000 0000 in a hex editor to 0x28 and 0x40 (NOT necessary if you have Brawlbox 0.65c)<br>
 
8) import it into the course_model again with the szs mod<br>
 
8) import it into the course_model again with the szs mod<br>
9) import the course_model into your szs<br>
+
9) You're done! Now just reimport the BRRES file to the SZS like normal. <br>
10) test it and be happy.<br>
+
10) Test, and if anything went wrong make sure you didn't unintentionally change anything you shouldn't have.<br>
 
<br>
 
<br>
Thanks Baoulettes!<br>
+
Thanks Voldemort, AKA Baoulettes!<br>
 
 
  
 
== Anti Harry Potter effect ==
 
== Anti Harry Potter effect ==

Revision as of 00:07, 6 February 2012

File:HarryPottereffect.png
Here you can see the "Harry Potter effect" in an old GCN SL preview.

The "Harry Potter effect" is a texturing glitch that appears only in newer custom tracks. That's because newer track models are created with the BRRES Editor, that currently has this glitch. This bug won't happen if you use only the SZS Modifier to create your custom tracks. It's named like that because of Harry Potter's invisibility cape - it's not invisible, but it covers what's behind it.

This glitch happens if the transparent polygons in the BRRES file appear before the normal ones. The previous polygon will always appear on top of the later one, even if it's transparent.

To fix it, you need to have the transparent polygons as the last ones of the BRRES file. To do this you have to set the transparent polygons to be the last ones in the OBJ file. In 3DS Max you can set the order of the polygons. Google Sketchup uses the texture names for the order, so you need to change the texture names so that they're the last ones.

This will, however, still happen if a transparent polygon is behind another. To fix this, you have to change the order of the polygons even more.

Example Video

Harry Potter Effect


Tutorial how to fix it

1) Open your BRRES file with Brawlbox 0.65c (or 0.65b which also requires hex editing)
2) Go to 3DModels> course> Materials
3) Go to every transparent material shown here, and make EnableAlphaTest true (which also allows opacity - unconfirmed)
4) Click the + on each texture in the materials folder of the MDL0, including the nontransparent ones, and make the scale (1,1) for everything instead of (0,0) (or else the track will be all solid colors). 4) Save it. If you are using Brawlbox 0.65c, skip to step 9.
5) open it with the szs mod
6) extract the MDL0
7) write 0000 0000 in a hex editor to 0x28 and 0x40 (NOT necessary if you have Brawlbox 0.65c)
8) import it into the course_model again with the szs mod
9) You're done! Now just reimport the BRRES file to the SZS like normal.
10) Test, and if anything went wrong make sure you didn't unintentionally change anything you shouldn't have.

Thanks Voldemort, AKA Baoulettes!

Anti Harry Potter effect

File:AntiHarryPotterEffect.png
Here you can see it.

This is an even more crazy glitch we discovered.