Game Development Community

How do you do Cube Mapping on Torque Advanced Engine?

by William Goh (Joondalup IT TAFE) · in Game Design and Creative Issues · 06/09/2009 (8:05 pm) · 1 replies

I would like to apply a Cube Map on the Torque Advanced Engine of TGEA1_7_1. How would I put a cube map on and remove the glow effect from my rock?

#1
06/12/2009 (5:58 pm)
From tgea 1.8.1/gameExamples/ForgeDemo/game/ScriptsAndAssets/interiors/platform/material.cs:
new CubemapData( Chrome )
{
   cubeFace[0] = "~/data/interiors/platform/chromexpos2";
   cubeFace[1] = "~/data/interiors/platform/chromexneg2";
   cubeFace[2] = "~/data/interiors/platform/chromeypos2";
   cubeFace[3] = "~/data/interiors/platform/chromeyneg2";
   cubeFace[4] = "~/data/interiors/platform/chromezpos2";
   cubeFace[5] = "~/data/interiors/platform/chromezneg2";
};
It's attached to a dif cube. Hope that helps you.