Page 1 of 1

Solution to the shadow template?

Posted: Fri Jun 05, 2015 6:20 pm
by Vertex
Image

Image


https://youtu.be/lLQvnzjfCt4
Any suggestions for the shade is not projected in the inerior part of a SkyBox ?

Re: Solution to the shadow template?

Posted: Fri Jun 05, 2015 7:24 pm
by QuestOfDreams
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?

Posted: Fri Jun 05, 2015 7:30 pm
by Vertex
QuestOfDreams wrote:The only chance to avoid this (without changing the engine code) is to make the skybox larger than the light's radius.
Image

Thank you very much .


Another question , how can I simulate sunlight source with lights cast shadows ?

Re: Solution to the shadow template?

Posted: Sun Jun 07, 2015 12:52 pm
by QuestOfDreams
Vertex wrote:Another question , how can I simulate sunlight source with lights cast shadows?
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.

Re: Solution to the shadow template?

Posted: Mon Jun 08, 2015 9:43 pm
by Vertex
QuestOfDreams wrote:
Vertex wrote:Another question , how can I simulate sunlight source with lights cast shadows?
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.
Thanks You.
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); //  ;-)
		
	}]
	
	
}

Image