Scene File (SCN)

The scene file acts as an index for all objects that are rendered in a location (track).

Notepad++ Syntax Highlighting

Here is a User Defined Language for SCN Files for Notepad++. You can use this to enable syntax highlighting.

To import, click Language → Define Your Langauge. And import on the following screen.

SCN_File_Syntax.xml

Recommended Workflow

Whilst 3ds Max Plugins allow for a complete SCN export format, it's recommended just to configure the plugins to export text snippets for selected objects only, and manually copy them in.

Organizing SCN Instances

It is possible to have more than a single mesh inside a SCN Instance. This can be used to setup LOD meshes or even just optimize mesh and material loading. It should be noted that any objects grouped together must be sufficiently close that they do not cover more than 20 omni lights. This will cause issues with night lighting. For information how to setup LOD meshes see Export an Object LOD.

Template File

Beneath is a template file. Make sure to replace <Location> and <Event>.

It contains only XSector instances and sections for other instances.

Typical layout for probes are included, they need Included instances setting up though. See Reflection Mappers for more information.

Clip planes for the main view should be adjusted for how far into the distance needs to be seen for the location.

Template SCN File
CUBEASF

//-------------------------------------------------------

MaterialPath=<Location>\ASSETS\Materials
SearchPath=.
SearchPath=<Location>
SearchPath=<Location>\<Event>
SearchPath=<Location>\ASSETS\ANIMS
SearchPath=<Location>\ASSETS\GMTs
SearchPath=<Location>\ASSETS\MAPS
SearchPath=<Location>\ASSETS\SPONSORMAPS


//-------------------------------------------------------

MASFile=COMMONMAPS.MAS

//-------------------------------------------------------

View=mainview
{
  Clear=False
  Color=(0, 0, 0)
  Size=(1.00, 1.00) Center=(0.5, 0.5)
  FOV=(77.75, 31.25)
  ClipPlanes=(0.07, 4000.00)
  View=rearview
  {
    Clear=False
    Color=(0, 0, 0)
    Size=(0.200, 0.100) Center=(0.50, 0.01)
    FOV=(77.75, 31.25)
    ClipPlanes=(0.50, 750.00)    
  }
}

//-------------------------------------------------------

GroupMethod=Dynamic
MaxShadowRange=(500.00)
ReflectPlane=(0.000, -1.000, 0.000, 1.0)

//-------------------------------------------------------

//-------------------------------------------------------
//----------------------TERRAIN--------------------------
//-------------------------------------------------------


//-------------------------------------------------------
//------------------TERRAIN DECALS-----------------------
//-------------------------------------------------------

//-------------------------------------------------------
//----------------------FOLIAGE--------------------------
//-------------------------------------------------------

//-------------------------------------------------------
//---------------------BARRIERS--------------------------
//-------------------------------------------------------

//-----------------------ARMCO---------------------------

//-----------------------WALLS---------------------------

//-----------------------FENCES--------------------------

//-----------------------TYRES---------------------------

//--------------------OUTER WALLS------------------------
//-------------------------------------------------------
//----------------BARRIER COLLISIONS---------------------
//-------------------------------------------------------


//-------------------------------------------------------
//--------------ON TRACK COLLISION PROPS-----------------
//-------------------------------------------------------

//-------------------------------------------------------
//-------------------BRAKE MARKERS-----------------------
//-------------------------------------------------------


//-------------------------------------------------------
//--------------ADVERTISEMENT OBJECTS--------------------
//-------------------------------------------------------


//-------------------------------------------------------
//------------------BRIDGE OBJECTS-----------------------
//-------------------------------------------------------


//-------------------------------------------------------
//---------------------PIT BUILDING----------------------
//-------------------------------------------------------


//-------------------------------------------------------
//----------------------PIT DOORS------------------------
//-------------------------------------------------------




//-------------------------------------------------------
//---------------------GRANDSTAND------------------------
//-------------------------------------------------------



//-------------------------------------------------------
//------------BUILDINGS INDUSTRIAL & URBAN---------------
//-------------------------------------------------------


//-------------------------------------------------------
//------------------------TSO----------------------------
//-------------------------------------------------------

//---------RACING STARTING LIGHTS / PITLIGHTS------------

//-------------------DIGITAL FLAGS-----------------------

//-----------------PITLANE OBJECTS-----------------------

//------------------MARSHAL STANDS-----------------------
//------------------TRAFFIC SIGNS------------------------

//-----------------------TENTS---------------------------

//------------------CAMPING OBJECTS----------------------

//-----------------------MEDIA---------------------------

//---------------------POWERLINES------------------------

//--------------------LIGHT POLES------------------------

//----------------------GENERAL--------------------------



//-------------------------------------------------------
//----------------------MARSHALS-------------------------
//-------------------------------------------------------

//-------------------------------------------------------
//----------------------SPECTATORS-----------------------
//------------Not visible in practice sessions-----------
//-------------------------------------------------------


//-------------------------------------------------------
//----- Audience only visible in practice sessions ------
//-------------------------------------------------------


//-------------------------------------------------------
//----------------------VEHICLES-------------------------
//-------------------------------------------------------


//-------------------------------------------------------
//-------------------NIGHTGLOW and PFX-------------------
//-------------------------------------------------------


//-------------------------------------------------------
//------------------MANDATORY OBJECTS--------------------
//-------------------------------------------------------

Instance=XFINISH
{
  Render=False 
  MeshFile=XFINISH.gmt CollTarget=True HATTarget=False 
  Response=VEHICLE,TIMING
}
Instance=XSECTOR1
{
  Render=False 
  MeshFile=XSECTOR1.gmt CollTarget=True HATTarget=False 
  Response=VEHICLE,TIMING
}
Instance=XSECTOR2
{
  Render=False 
  MeshFile=XSECTOR2.gmt CollTarget=True HATTarget=False 
  Response=VEHICLE,TIMING
}
Instance=XPITIN
{
  Render=False 
  MeshFile=XPITIN.gmt CollTarget=True HATTarget=False 
  Response=VEHICLE,PITSTOP
}
Instance=XPITOUT
{
  Render=False 
  MeshFile=XPITOUT.gmt CollTarget=True HATTarget=False 
  Response=VEHICLE,PITSTOP
}

//-------------------------------------------------------
//-----------------AMBIENT LIGHT HULLS-------------------
//-------------------------------------------------------


//-------------------------------------------------------
//--------------------NO RAIN ZONES----------------------
//-------------------------------------------------------


//-------------------------------------------------------
//-----------------NIGHTLIGHTS OMNI----------------------
//-------------------------------------------------------



//-------------------------------------------------------
//-------------------REFLECTION MAPS---------------------
//-------------------------------------------------------

ReflectionMapper=REFLECTEDENV
{
  Type=Planar
  TextureSize=(1024)
  UpdateRate=(100.000)
  StaticSwitch=(100.000)
  MaxElementsCap=(64)
  FarPlane=(300.00)
  TrackingIns=NULL
  //IncludeIns=....
}

ReflectionMapper=STATIC01
{
  Type=Cubic
  TextureSize=(1024)
  UpdateRate=(0.100)
  StaticSwitch=(10000.000)
  Pos=(0.0,0.0,0.0)
  //IncludeIns=...
}
ReflectionMapper=REFMAP0
{
  Type=Cubic
  TextureSize=(1024)
  UpdateRate=(100.000)
  StaticSwitch=(500.000)
  TrackingIns=True
  //IncludeIns=...
}


IRRADIANCE_PROBE=IRRAD_GLOBAL
{
INFLUENCE_RANGE = (0.0)
PROBE_POSITION = (0.0,0.0,0.0)
}
//IRRADIANCE_PROBE=IRRAD_0
//{
//INFLUENCE_VOLUME=PITBUILDING_IPB
//INFLUENCE_RANGE = (20.0)
//PROBE_POSITION = (0.0,10.0,200.0)
//}