RE: [Plib-users] SSG loading lights
Brought to you by:
sjbaker
|
From: Dave M. <Dav...@dy...> - 2000-10-05 21:48:17
|
Dan wrote:
> The different ssg loaders don't seem to load lights for any of
> the formats. Is there any chance of light loading being added
> to any of the loaders? I'm using the 3ds and ASE loaders currently.
>
ASE files contain lights (if you check the box for them in 3dsmax). there
is lots of info there. for example,
*LIGHTOBJECT {
*NODE_NAME "Spot01"
*LIGHT_TYPE Target
*NODE_TM {
*NODE_NAME "Spot01"
*INHERIT_POS 0 0 0
*INHERIT_ROT 0 0 0
*INHERIT_SCL 1 1 1
*TM_ROW0 0.0000 1.0000 0.0000
*TM_ROW1 -0.5505 0.0000 0.8349
*TM_ROW2 0.8349 -0.0000 0.5505
*TM_ROW3 611.2228 -0.0000 413.9070
*TM_POS 611.2228 -0.0000 413.9070
*TM_ROTAXIS -0.4284 -0.4284 -0.7956
*TM_ROTANGLE 1.7975
*TM_SCALE 1.0000 1.0000 1.0000
*TM_SCALEAXIS 0.0000 0.0000 0.0000
*TM_SCALEAXISANG 0.0000
}
*NODE_TM {
*NODE_NAME "Spot01.Target"
*INHERIT_POS 0 0 0
*INHERIT_ROT 0 0 0
*INHERIT_SCL 0 0 0
*TM_ROW0 1.0000 0.0000 0.0000
*TM_ROW1 0.0000 0.0000 1.0000
*TM_ROW2 0.0000 -1.0000 0.0000
*TM_ROW3 -19.4201 0.0000 -1.9183
*TM_POS -19.4201 0.0000 -1.9183
*TM_ROTAXIS -1.0000 0.0000 0.0000
*TM_ROTANGLE 1.5708
*TM_SCALE 1.0000 1.0000 1.0000
*TM_SCALEAXIS 0.0000 0.0000 0.0000
*TM_SCALEAXISANG 0.0000
}
*LIGHT_SHADOWS Mapped
*LIGHT_USELIGHT 1
*LIGHT_SPOTSHAPE Circle
*LIGHT_USEGLOBAL 0
*LIGHT_ABSMAPBIAS 0
*LIGHT_OVERSHOOT 0
*LIGHT_SETTINGS {
*TIMEVALUE 0
*LIGHT_COLOR 0.9098 0.9098 0.9098
*LIGHT_INTENS 1.2500
*LIGHT_ASPECT 1.0000
*LIGHT_HOTSPOT 43.0000
*LIGHT_FALLOFF 45.0000
*LIGHT_TDIST 0.0000
*LIGHT_MAPBIAS 1.0000
*LIGHT_MAPRANGE 4.0000
*LIGHT_MAPSIZE 512
*LIGHT_RAYBIAS 0.0000
}
}
> I'm guessing that no game creators store lights in the model files.
> It doesn't look too hard to add though.
correct. pretty easy. ssg already has an ssgLight entity.
> I would vote for having
> light loading added if possible.
>
just a matter of time before someone adds it. if you have time, take a try
and send me the patch. it might be a while before i could get to it.
thanks,
-- Dave McClurg
mailto:dp...@ef...
http://mcdave.cjb.net
|