Solution to the shadow template?
Solution to the shadow template?
https://youtu.be/lLQvnzjfCt4
Any suggestions for the shade is not projected in the inerior part of a SkyBox ?
http://www.iris3dgames.com Reality Factory Spanish
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Re: Solution to the shadow template?
The only chance to avoid this (without changing the engine code) is to make the skybox larger than the light's radius.
Re: Solution to the shadow template?
QuestOfDreams wrote:The only chance to avoid this (without changing the engine code) is to make the skybox larger than the light's radius.
Thank you very much .
Another question , how can I simulate sunlight source with lights cast shadows ?
http://www.iris3dgames.com Reality Factory Spanish
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Re: Solution to the shadow template?
There's only code for point lights and spotlights in the engine, so the best you can do to have a sunlight that casts stencil shadows is to put a point light far away from the player.Vertex wrote:Another question , how can I simulate sunlight source with lights cast shadows?
Re: Solution to the shadow template?
Thanks You.QuestOfDreams wrote:There's only code for point lights and spotlights in the engine, so the best you can do to have a sunlight that casts stencil shadows is to put a point light far away from the player.Vertex wrote:Another question , how can I simulate sunlight source with lights cast shadows?
I have done some experiments and the result is this.
I found a solution and create a Pawn is called Sun , which has engaged the spot light dynamic entity. This entity Sun follows the player .
The drawbacks that I have and that I think can ener solution is that the light has to be above the ceiling of infrastructure such as homes or as a dynamic light may be turned off when entering certain sectors.
Code: Select all
// File Script Sun.s
{
Start[()
{
//Console(true);
LowLevel("Sol");
SetNoCollision();
}]
Sol[()
{
PawnRender(false);
PositionToPawn("Player",0,300,100,false,true); // ;-)
}]
}
http://www.iris3dgames.com Reality Factory Spanish