|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
What do the three numbers for Light Source Location represent? I have
looked all over for this info, but to no avail.
Thanks
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
You must not have looked in the manual!!! Look here:
http://www.povray.org/documentation/view/3.6.1/246/
to get a description of the light_source. Location is
self-explanatory, its a vector describing the location of the
light_source.
Look here:
http://www.povray.org/documentation/view/3.6.1/229/
for more info on vectors. Look here:
http://www.povray.org/documentation/view/3.6.1/15/
for an explanation of POV-Ray's coordinate system.
That should pretty much cover it.
Kyle
On Sat, 2 Jul 2005 22:41:45 EDT, "waynehays1" <way### [at] yahoocom>
wrote:
>What do the three numbers for Light Source Location represent? I have
>looked all over for this info, but to no avail.
>
>Thanks
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Maybe I'm slow but I still don't get it. Are the three numbers x, y, z? I
don't think so, but I cant tell what they are.
Wayne
Kyle <hob### [at] gatenet> wrote:
> You must not have looked in the manual!!! Look here:
>
> http://www.povray.org/documentation/view/3.6.1/246/
>
> to get a description of the light_source. Location is
> self-explanatory, its a vector describing the location of the
> light_source.
>
> Look here:
>
> http://www.povray.org/documentation/view/3.6.1/229/
>
> for more info on vectors. Look here:
>
> http://www.povray.org/documentation/view/3.6.1/15/
>
> for an explanation of POV-Ray's coordinate system.
>
> That should pretty much cover it.
>
>
> Kyle
>
>
> On Sat, 2 Jul 2005 22:41:45 EDT, "waynehays1" <way### [at] yahoocom>
> wrote:
>
> >What do the three numbers for Light Source Location represent? I have
> >looked all over for this info, but to no avail.
> >
> >Thanks
> >
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Yes, location is a vector <x, y, z> describing the position of the
light_source. So, if you have the following code:
light_source { <10, 100, 20>, rgb<1, 1, 1> }
You're telling POV-Ray to place a white (rgb<1, 1, 1>) light_source at
the coordinates x=10, y=100, z=20.
Kyle
On Sat, 2 Jul 2005 23:54:26 EDT, "waynehays1" <way### [at] yahoocom>
wrote:
>Maybe I'm slow but I still don't get it. Are the three numbers x, y, z? I
>don't think so, but I cant tell what they are.
>
>Wayne
>
>
>Kyle <hob### [at] gatenet> wrote:
>> You must not have looked in the manual!!! Look here:
>>
>> http://www.povray.org/documentation/view/3.6.1/246/
>>
>> to get a description of the light_source. Location is
>> self-explanatory, its a vector describing the location of the
>> light_source.
>>
>> Look here:
>>
>> http://www.povray.org/documentation/view/3.6.1/229/
>>
>> for more info on vectors. Look here:
>>
>> http://www.povray.org/documentation/view/3.6.1/15/
>>
>> for an explanation of POV-Ray's coordinate system.
>>
>> That should pretty much cover it.
>>
>>
>> Kyle
>>
>>
>> On Sat, 2 Jul 2005 22:41:45 EDT, "waynehays1" <way### [at] yahoocom>
>> wrote:
>>
>> >What do the three numbers for Light Source Location represent? I have
>> >looked all over for this info, but to no avail.
>> >
>> >Thanks
>> >
>
>
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
None of that info says what the three values are. Is it x,y,z ??? I don't
believe it is, if I'm wrong, then I must not understand the units involved.
I don't know why this seems so difficult, but it is.
Wayne
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
waynehays1 wrote:
> None of that info says what the three values are. Is it x,y,z ??? I don't
> believe it is, if I'm wrong, then I must not understand the units involved.
> I don't know why this seems so difficult, but it is.
>
> Wayne
>
>
>
>
I guess we'll need to see your code and an explanation of what behavior
seems odd to you in order to help.
If you use an example light source from the insert menu you may notice
that a technique commonly used is to position the light at the origin
then add a transform to give its real position. If you copied a light
from the insert menu then edited the location maybe you didn't notice
the further "translate" in the code?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I think this is part of what is going on, but it just doesn't tell me what I
need to know. I am sure it is here, but I just don't understand. Thanks
for being patient with a noob.
camera {
orthographic
location <SCALE_FACTOR/2,SCALE_FACTOR,SCALE_FACTOR/2>
up SCALE_FACTOR*z
right SCALE_FACTOR*x
direction -y
}
What does this do? -and- what plane is my view in?
Wayne
-----------------------------------------
Jim Charter <jrc### [at] msncom> wrote:
> I guess we'll need to see your code and an explanation of what behavior
> seems odd to you in order to help.
>
> If you use an example light source from the insert menu you may notice
> that a technique commonly used is to position the light at the origin
> then add a transform to give its real position. If you copied a light
> from the insert menu then edited the location maybe you didn't notice
> the further "translate" in the code?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
waynehays1 <way### [at] yahoocom> wrote:
> Maybe I'm slow but I still don't get it. Are the three numbers x, y, z? I
> don't think so
Why you don't think so?
--
- Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
The numbers are x, y, z. I'm not sure why you wouldn't think so.
BTW, I just noticed the first link I gave you was for the camera, not
for the light source. Oops. Here's the correct link to the
light_source in the manual:
http://www.povray.org/documentation/view/3.6.1/308/
Kyle
On Sat, 2 Jul 2005 23:54:26 EDT, "waynehays1" <way### [at] yahoocom>
wrote:
>Maybe I'm slow but I still don't get it. Are the three numbers x, y, z? I
>don't think so, but I cant tell what they are.
>
>Wayne
>
>
>Kyle <hob### [at] gatenet> wrote:
>> You must not have looked in the manual!!! Look here:
>>
>> http://www.povray.org/documentation/view/3.6.1/246/
>>
>> to get a description of the light_source. Location is
>> self-explanatory, its a vector describing the location of the
>> light_source.
>>
>> Look here:
>>
>> http://www.povray.org/documentation/view/3.6.1/229/
>>
>> for more info on vectors. Look here:
>>
>> http://www.povray.org/documentation/view/3.6.1/15/
>>
>> for an explanation of POV-Ray's coordinate system.
>>
>> That should pretty much cover it.
>>
>>
>> Kyle
>>
>>
>> On Sat, 2 Jul 2005 22:41:45 EDT, "waynehays1" <way### [at] yahoocom>
>> wrote:
>>
>> >What do the three numbers for Light Source Location represent? I have
>> >looked all over for this info, but to no avail.
>> >
>> >Thanks
>> >
>
>
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
waynehays1 wrote:
> I think this is part of what is going on, but it just doesn't tell me what I
> need to know. I am sure it is here, but I just don't understand. Thanks
> for being patient with a noob.
>
> camera {
> orthographic
> location <SCALE_FACTOR/2,SCALE_FACTOR,SCALE_FACTOR/2>
> up SCALE_FACTOR*z
> right SCALE_FACTOR*x
> direction -y
> }
>
> What does this do? -and- what plane is my view in?
>
Okay, I thought you were talking about light sources.
The meaning of vectors in camera definitions can be a little more
varied.
However the code you show locates the camera in the positive quadrant
looking straight down at the x-z plane in its positive quadrant. It is
apparently designed to view the center of a unit box, lets say, in the
positive quadrant, and adjust to any scaling of the box
ie.
#local SCALE_FACTOR = 2;
#if ( on )
camera {
orthographic
location <SCALE_FACTOR/2, SCALE_FACTOR, SCALE_FACTOR/2>
up SCALE_FACTOR*z
right SCALE_FACTOR*x
direction -y
}
#end
box {
<0,0,0>
<1,-.1,1>
scale SCALE_FACTOR
pigment {
gradient x
pigment_map {
[0 rgb Red]
[1 rgb 1] }
scale 1
}
finish { ambient 1 }
}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|