|
From: James W. W. <os...@jw...> - 2007-07-02 16:19:06
|
On Jul 2, 2007, at 7:27 AM, Jose' Cruanyes wrote: > > Il giorno 02/lug/07, alle ore 15:42, Roger Holmes ha scritto: >> >> If it needs an extra data field, your spherical light should inherit >> from point light. Can we make it so that renderers which do not >> support them see the base class instead, and just give crisper >> shadows. > > I've not still decided, but the better (IMHO) will be to extend the > point light, call it spherical, and let access it fron the old API as > point light, when the radius data will be ignored > > the problem will be the metafile I/O, in reading old files there's no > problem, the problem is in reading new files with old code... the > lights will be lost, since it will be saved as spherical, and the old > code expects point lights, unless we don't save the lights with > radius 0.0 as point lights... > > I'll update the Quesa renderers to use it as point light, > > for the Microspot, you can just add a case label and treat it as > point light, If a spherical light is a subclass of point light, then presumably Q3Light_GetType would return kQ3LightTypePoint for a spherical light, and the Interactive and OpenGL renderers would not need any update. |