Enabling shadows from light sources in Toussaint
DJ Kovrik has tried to do that in every way possible, but nothing worked. I asked Flash in Flesh W3 game developer and got this response: "There's SetCastingShadows function in scripts which allows to enable shadow casting for components with meshes. It's doing the same thing as a parameter in entity templates, so you can access it from both places. As for special effects (ie. fire) being a light source, it was a parameter of a special effect. As far as I remember this parameter was also accessible from character entity, since each entity had his own list of special effects."
Where would I look for SetCastingShadows function in scripts? Which scripts? I verified that there are quest-related light sources allow for Geralt's shadow and other mesh shadows, just like there are light sources that allow meshes OTHER THAN Geralt to cast shadows. For example, in Regis layer at the cemetary, there's a candle holder, around which Geralt does cast shadow, but the same exact template does not cast shadows in other places. Similarly, in Regis' layer there is a table with a candle. Meshes from table parts, like some cup or pen, do cast shadows, but Geralt does not...
Since the original More Shadows mod were template based, maybe Toussaint is more complicated and needs that SetCastingShadows functional to be enabled in scripts, but I am not a script person - I would have no clue where to even start looking...
I inquired further, but I doubt I will get a reply from Flash in Flesh, so maybe someone here knows about that script function?
DJ Kovrik has tried to do that in every way possible, but nothing worked. I asked Flash in Flesh W3 game developer and got this response: "There's SetCastingShadows function in scripts which allows to enable shadow casting for components with meshes. It's doing the same thing as a parameter in entity templates, so you can access it from both places. As for special effects (ie. fire) being a light source, it was a parameter of a special effect. As far as I remember this parameter was also accessible from character entity, since each entity had his own list of special effects."
Where would I look for SetCastingShadows function in scripts? Which scripts? I verified that there are quest-related light sources allow for Geralt's shadow and other mesh shadows, just like there are light sources that allow meshes OTHER THAN Geralt to cast shadows. For example, in Regis layer at the cemetary, there's a candle holder, around which Geralt does cast shadow, but the same exact template does not cast shadows in other places. Similarly, in Regis' layer there is a table with a candle. Meshes from table parts, like some cup or pen, do cast shadows, but Geralt does not...
Since the original More Shadows mod were template based, maybe Toussaint is more complicated and needs that SetCastingShadows functional to be enabled in scripts, but I am not a script person - I would have no clue where to even start looking...
I inquired further, but I doubt I will get a reply from Flash in Flesh, so maybe someone here knows about that script function?
Last edited by a moderator: