Solution to the shadow template?

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
User avatar
Vertex
Posts: 108
Joined: Fri May 22, 2015 1:01 am
Location: Colombia
Contact:

Solution to the shadow template?

Post by Vertex » Fri Jun 05, 2015 6:20 pm

Image

Image


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 :wink:

User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: Solution to the shadow template?

Post by QuestOfDreams » Fri Jun 05, 2015 7:24 pm

The only chance to avoid this (without changing the engine code) is to make the skybox larger than the light's radius.

User avatar
Vertex
Posts: 108
Joined: Fri May 22, 2015 1:01 am
Location: Colombia
Contact:

Re: Solution to the shadow template?

Post by Vertex » Fri Jun 05, 2015 7:30 pm

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 ?
http://www.iris3dgames.com Reality Factory Spanish :wink:

User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: Solution to the shadow template?

Post by QuestOfDreams » Sun Jun 07, 2015 12:52 pm

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.

User avatar
Vertex
Posts: 108
Joined: Fri May 22, 2015 1:01 am
Location: Colombia
Contact:

Re: Solution to the shadow template?

Post by Vertex » Mon Jun 08, 2015 9:43 pm

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
http://www.iris3dgames.com Reality Factory Spanish :wink:

Post Reply