Freddy,
Command or script file, never worked with them as far as i know, I'll go to the SDK.
I'm going to try to recreate what I had done. I opened the hapexplorer and loaded the standard Body_Female, she is shown in the viewer. I go to the materials tab which shows the lighting levels,
Ambient all are set to 1, diffuse all are set to 1, specular all set to .3 except the last which is 1, emissive all set to 0 except the last set to 1, specular power is set to 10. If I look in the Body_femaleDef file I can find the lighting which is
DiffuseMaterialCoeff= 1.000000 1.000000 1.000000 1.000000
SpecularMaterialCoeff= 0.300000 0.300000 0.300000 1.000000
AmbientMaterialCoeff= 1.000000 1.000000 1.000000 1.000000
EmissiveMaterialCoeff= 0.000000 0.000000 0.000000 1.000000
SpecularPowerCoeff= 10.000000
Which agrees with what is stated in the Hap explorer and the lighting looks similar to other players. Next I make some changes, specular power is changed to 15, Ambient is set at .6, .6, .6 and 1.,
specular is set at .2, .2, .2 and 1. So I now have
DiffuseMaterialCoeff= 1.000000 1.000000 1.000000 1.000000
SpecularMaterialCoeff= 0.200000 0.200000 0.200000 1.000000
AmbientMaterialCoeff= 0.6000000 0.6000000 0.6000000 1.000000
EmissiveMaterialCoeff= 0.000000 0.000000 0.000000 1.000000
SpecularPowerCoeff= 15.000000
I can save this as a .mlf and load it at another time. The + will not work for me, haven't found how to use it.
I'm fairly certian what I tried to do yesterday was load a lighting hap which I modified from the original lighting hap that comes with Body_female.htr. If I go back to my I can load the lighting hap in scripts, I am using :
#HaptekSDK Version= 1.0 HapType= lighting FileType= text Name= standardLight
Light= Ambient
Type= AMBIENT
LightColor= 0.40 0.40 0.50
}
Light= LightOne
Type= DIRECTIONALLIGHT
# R G B
LightColor= 0.7 0.6 0.5
# x y z
LightDirection= -5.0 -3.5 8
}
This can load in the Hapexplorer but the lighting is dimmer when compared to the Hapregistry player.
1, I'm lost when I use the + key
2, The Hapexplorer uses lighting parameters from the Def file which is different from hap lighting files
I hope I have been able to explain the steps I took and the results obtained.
Carl2