Difference between revisions of "Harry Potter Effect"

From Custom Mario Kart
Jump to navigation Jump to search
(deleted "(4th generation)")
(28 intermediate revisions by 15 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.
 +
 
 +
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.
 +
[[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)]]]]
 +
 
 +
{{Custom Track Tutorial}}
 +
[[Category:Bug]]
 +
[[Category:Custom Track Tutorial]]
 +
[[Category:Tutorials]]

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.