Difference between revisions of "Harry Potter Effect"

From Custom Mario Kart
Jump to navigation Jump to search
m (use wiki list)
(16 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Image:HarryPottereffect.png|thumb|right|320px|Here you can see the "Harry Potter effect" in an old GCN SL preview.]]
+
{{Bugs}}
 +
{{about|This page is a part of the [[Custom Track Tutorial]].}}
  
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 [[CTools Pack|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.
+
== Overview ==
 +
The '''Harry Potter Effect''' is a texturing glitch that appears in many [[custom tracks]] created with the [[CTools Pack|BRRES Editor]]. It was named after Harry Potter's invisibility cloak; it was not invisible, but it covered what was 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.
+
This glitch occurs if transparent polygons in the [[BRRES]] file appear before normal ones. The previous polygon will always appear on top of the latter one, even if it is 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.
+
== Media ==
 +
{{youtube-box|bug|doSSAli8hl4|[[N64 Kalimari Desert (Captain Kwark & Wiimm)]]}}
 +
[[File:GCN Sherbet Land (Tock) Harry Potter Effect.png|270px|thumb|none|A preview of the effect on [[GCN Sherbet Land (Tock)]]]]
  
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.
+
== Solutions ==
 +
This problem can be fixed by using [[BrawlBox]]. Check [[Creating a BRRES with BrawlBox#Materials for Textures With Transparency/Opacity|this section]] for more information.
  
== Example Video ==
+
Make sure that, in the texture reference under each material, ''Scale'' is set to to (1,1) and ''Translation'' to (0,0). This will avoid your texture from becoming a solid color in game. Repeat the step with each material.
  
{{youtube-box||doSSAli8hl4|Harry Potter Effect}}
+
== Anti-Harry Potter Effect ==
 +
If this or some other glitch occurs after fixing your BRRES file in BrawlBox, you probably unintentionally changed another setting.
  
 +
In this screenshot, the "DepthFunction" setting of the red wall was mistakenly set to "Greater" instead of "Less or Equal" like normal.
 +
[[File:Sunset Ridge (Vulcanus2 & BigOto2) RC2 Anti-Harry Potter Effect.png|270px|thumb|none|A preview of the anti-effect on [[Sunset Ridge (Vulcanus2 & BigOto2)]]]]
  
== Tutorial how to fix it ==
+
{{Custom Track Tutorial}}
 
+
[[Category:Bug]]
# Open your BRRES file with [[BrawlBox]] 0.65c.
+
[[Category:Custom Track Tutorial]]
# Go to 3DModels> course> Materials
+
[[Category:Tutorials]]
# Go to every '''transparent''' material shown here, and make EnableAlphaTest true.
 
# 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).
 
# Save it.
 
# You're done! Now just reimport the BRRES file to the SZS like normal.
 
# 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 ==
 
 
 
[[Image:AntiHarryPotterEffect.png|thumb|right|320px|Here you can see it.]]
 
This is an even more crazy glitch we discovered.
 
 
 
UPDATE: Just an error on BigOto's part. Accidentally set DepthFunction to "Greater" instead of "Less or Equal" like normal.
 
 
 
 
 
[[category:Bug]]
 

Revision as of 11:54, 20 October 2021

This page is a part of the Custom Track Tutorial.

Overview

The Harry Potter Effect is a texturing glitch that appears in many custom tracks created with the BRRES Editor. It was named after Harry Potter's invisibility cloak; it was not invisible, but it covered what was behind it.

This glitch occurs if transparent polygons in the BRRES file appear before normal ones. The previous polygon will always appear on top of the latter one, even if it is transparent.

Media

A preview of the effect on GCN Sherbet Land (Tock)

Solutions

This problem can be fixed by using BrawlBox. Check this section for more information.

Make sure that, in the texture reference under each material, Scale is set to to (1,1) and Translation to (0,0). This will avoid your texture from becoming a solid color in game. Repeat the step with each material.

Anti-Harry Potter Effect

If this or some other glitch occurs after fixing your BRRES file in BrawlBox, you probably unintentionally changed another setting.

In this screenshot, the "DepthFunction" setting of the red wall was mistakenly set to "Greater" instead of "Less or Equal" like normal.