BrawlBox Tricks

From Custom Mario Kart
Jump to navigation Jump to search
Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling.

This page describes several tricks to do in BrawlBox.

Important: If you have imported a brres with materials (in CTools), Brawlbox isn't able to open (most) MDL0's of CTools, but it is able to open ones of SZS modifier. If you have created a brres in CTools, you can fix the problem by saving the MDL0 in szs modifier once (just open and save, it doesnt even need to fully parse). Note that a small problem still exists, the scale and translation of materials are messed up. Fix this by setting for each material the scale to (1,1) and the translation to (0,0). If you don't set the scale, you'll see a solid color ingame.

The szs modifier might cause a mapping problem that makes every mapping twice as small. If you use 3ds max, you can add XForm UVW for all meshes with U and V 0,5 (make sure "Apply to entire object" is ticked) to fix this problem. If you use Sketchup, just scale the materials for twice. (For example 2000 to 4000.)

Opacity

To enable opacity on a mesh/polygon, browse to the mesh's material (this is found in the MDL0, THIS IS NOT THE TEXTURE!!).
Set the following settings:

  • Ref0 and Ref 1: 0
  • Comp0 and Comp1: Always
  • EnableBlend = true
  • XLU Material = true (will become true when you enable blend automatically, so dont worry about this)
  • EnableAlphaFunction = false (This is for stuff with alpha that doesn't use EnableBlend)
  • EnableDepthTest = true
  • EnableDepthUpdate = false

You can also make a material (more) transparent by setting Constant Alpha Enabled = true and the Value to the value of transparency(0 = opague, 255 = fully transparent).


Animation

SRT0

yet to be done

CLR0

yet to be done

PAT0

yet to be done

Harry Potter Effect Fix

Set for the transparent material EnableAlphaFunction = true. (this is obviously not needed for polygons with opacity)

Don't know what the HP effect is? Harry Potter Effect

Culling

Special Culling settings are mostly used for transparent materials like fences. It makes you see this texture from both sides instead of one side. To set the culling, edit the CullMode setting in the material. Cull_none = you can see it from both sides.