|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
The docs don't tell you how *far away* the sun is from the center of the
scene when you include this file. What is the distance?
-Mike
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I have some other lighting questions as well.
1. Does CIE_Skylight.inc in LightsysIV use media to create the sky
color, or does it simply create a sky_sphere pigment?
2. Does it create a sun as well as a sky? Is the sun an object, or is it
just a brighter spot in the sky?
2.Right now I am using the looks_like statement, to create a sun object
and light source. Unfortunately, the distances are so great that the sun
object is culled from the scene. Is there a way to place the object
nearer to the camera while still having the light source very far away?
I'm guessing that this would normally create problems such as shadows.
How do I get around them?
-Mike
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
SharkD escribió:
> I have some other lighting questions as well.
>
> 1. Does CIE_Skylight.inc in LightsysIV use media to create the sky
> color, or does it simply create a sky_sphere pigment?
It is a mesh dome, where triangles are colored according to complex
calculations. Read the readme_skylight.txt file: it's all explained there by
the author, Philippe Debar.
> 2. Does it create a sun as well as a sky? Is the sun an object, or is it
> just a brighter spot in the sky?
No object, is just a spot in the dome mesh. AFAIK, this spot doesn't
models the sun, but the brightness of the sky at that point. I usually put a
light_source at the SolarPosition returned by the include.
> 2.Right now I am using the looks_like statement, to create a sun object
> and light source. Unfortunately, the distances are so great that the sun
> object is culled from the scene. Is there a way to place the object
> nearer to the camera while still having the light source very far away?
> I'm guessing that this would normally create problems such as shadows.
> How do I get around them?
Just take out the object from the looks_like and place it where you want,
adding no_shadow to it.
--
Jaime
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
SharkD schrieb:
> The docs don't tell you how *far away* the sun is from the center of the
> scene when you include this file. What is the distance?
A quick look at sunpos.inc reveals that the point returned by the SunPos
macro will be placed 1000000000 (1e+9) units away.
You can pick your own favorite distance by using
#declare MySunPos = vnormalize(SunPos(...))*MySunDistance;
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
SharkD schrieb:
> 2.Right now I am using the looks_like statement, to create a sun object
> and light source. Unfortunately, the distances are so great that the sun
> object is culled from the scene. Is there a way to place the object
> nearer to the camera while still having the light source very far away?
> I'm guessing that this would normally create problems such as shadows.
> How do I get around them?
You can...
a) place a sphere a good deal closer, give it ambient-only finish, and
mark it as "no_shadow" to prevent it from casting shadows, or
b) use a sky_sphere with some smart pigment generating a bright spot
where the sun should be.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
SharkD a écrit :
> I have some other lighting questions as well.
>
> 1. Does CIE_Skylight.inc in LightsysIV use media to create the sky
> color, or does it simply create a sky_sphere pigment?
> 2. Does it create a sun as well as a sky? Is the sun an object, or is it
> just a brighter spot in the sky?
> 2.Right now I am using the looks_like statement, to create a sun object
> and light source. Unfortunately, the distances are so great that the sun
> object is culled from the scene. Is there a way to place the object
> nearer to the camera while still having the light source very far away?
> I'm guessing that this would normally create problems such as shadows.
> How do I get around them?
>
> -Mike
If the light_source with it's looks_like objects is to far away, you can
place it closer while making it proportionaly smaller.
So, if you place it 1000 times closer, make it 1000 times smaller. This
will preserve it's perceived dimention.
Also, use the "parallel" attribute for the light_source, with "point_at
0" to orient it toward the center of your scene. This simulate a
light_source cituated at "infinity".
It's always a good idea to create your scene around the origin.
Alain
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
clipka wrote:
> A quick look at sunpos.inc reveals that the point returned by the SunPos
> macro will be placed 1000000000 (1e+9) units away.
>
> You can pick your own favorite distance by using
>
> #declare MySunPos = vnormalize(SunPos(...))*MySunDistance;
Does the scene's basic unit of measurement matter when using sunpos?
Also, is the sun's radius/diameter isn't calculated by the script?
-Mike
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Alain wrote:
> If the light_source with it's looks_like objects is to far away, you can
> place it closer while making it proportionaly smaller.
>
> So, if you place it 1000 times closer, make it 1000 times smaller. This
> will preserve it's perceived dimention.
>
> Also, use the "parallel" attribute for the light_source, with "point_at
> 0" to orient it toward the center of your scene. This simulate a
> light_source cituated at "infinity".
>
> It's always a good idea to create your scene around the origin.
>
>
> Alain
OK, thanks.
-Mike
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
SharkD schrieb:
> Does the scene's basic unit of measurement matter when using sunpos?
No, the SunPos macro doesn't care about the size of the rest of your scene.
> Also, is the sun's radius/diameter isn't calculated by the script?
No, SunPos only computes the sun's position.
For realism, the diameter should be approximately 1/100 of the distance.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |