I'm not using any special lighting.
The actor creation code is a script:
load_actor mob_menu01 models/vip.tva 3
set_actor_pos mob_menu01 35 7 100
set_actor_rot mob_menu01 -90 130 0
set_actor_params mob_menu01 1 1 2 0 128 1
set_actor_scale mob_menu01 0.5 0.5 0.5
First line loads actor with specified name "mob_menu01", all other commands are using this name to operate on target object.
1st param - command, as well
2nd param - object name
3rd param - path to TVA file
4th param - culling mode value (3 means BACK_CULL)
Script parser code:
....
CTVActor* mesh = pScene->CreateActor(mesh_name);
mesh->LoadTVA(path,true,true);
mesh->SetCullMode((cCONST_TV_CULLING)culling_mode);
set_actor_pos, set_actor_rot - i have nothing to say
Fourth line is setting up actor's parameters:
1st param - command
2nd param - object name
3rd param - use shadows ?
4th param - use additive shadows ?
5th param - lighting mode value (2 means managed lighting mode)
6th param - use alpha testing ?
7th param - alpha testing reference value
8th param - use depth write ?
9th param - group number for alpha testing
And the snippet of script parser code:
....
CTVActor* mesh = glb.GetActor (mesh_name);
if (mesh)
{
mesh->SetShadowCast(shadowcast==1, additive==1);
mesh->SetLightingMode((cCONST_TV_LIGHTINGMODE)lightingmode);
mesh->SetAlphaTest(usealpha==1,referencealpha,dbwrite==1);
}
jviper, actor only
Fog settings:
set_fog_parameters 1 200 900 1 1 1 1
Fog is enabled. Fog near: 200, Fog Far: 900. Density is 1. Fog color is white.