|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi all,
I am a new user of pov-ray. I want to know how to get the reflection data
which are used to form the scenes.
Thanks
Wu
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3d8a59e9$1@news.povray.org>,
"Wu Yang" <wya### [at] cswrightedu> wrote:
> I am a new user of pov-ray. I want to know how to get the reflection data
> which are used to form the scenes.
Well, my first thought is that you don't understand how POV does
reflections. When a ray hits a reflective surface, POV computes the
direction it would reflect off in from the intersection point and
normal, and the incoming ray direction and origin. It then starts
tracing another ray in the reflected direction, and uses the color
computed along that ray as the reflected color. There isn't any
"reflection data", just a lot of rays. It sounds like you might be
looking for environment map data, POV doesn't use environment maps, it
uses raytracing to compute true reflections instead.
You could hack in a bit of code that writes all reflected rays to a
file, I don't know if that would be of any use to you. The function to
modify would be Reflect() in lighting.cpp. Or you could do it at a lower
level and modify Trace() in render.cpp to output data for every ray
traced.
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi,
Thank you for your reply. You message is very helpful for me. In your
letter, you mentioned some C++ files and functions. Would you please inform
me where I can find them.
Thanks
Wu
"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> In article <3d8a59e9$1@news.povray.org>,
> "Wu Yang" <wya### [at] cswrightedu> wrote:
>
> > I am a new user of pov-ray. I want to know how to get the reflection
data
> > which are used to form the scenes.
>
> Well, my first thought is that you don't understand how POV does
> reflections. When a ray hits a reflective surface, POV computes the
> direction it would reflect off in from the intersection point and
> normal, and the incoming ray direction and origin. It then starts
> tracing another ray in the reflected direction, and uses the color
> computed along that ray as the reflected color. There isn't any
> "reflection data", just a lot of rays. It sounds like you might be
> looking for environment map data, POV doesn't use environment maps, it
> uses raytracing to compute true reflections instead.
>
> You could hack in a bit of code that writes all reflected rays to a
> file, I don't know if that would be of any use to you. The function to
> modify would be Reflect() in lighting.cpp. Or you could do it at a lower
> level and modify Trace() in render.cpp to output data for every ray
> traced.
>
> --
> Christopher James Huff <cja### [at] earthlinknet>
> http://home.earthlink.net/~cjameshuff/
> POV-Ray TAG: chr### [at] tagpovrayorg
> http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3d8bb21d@news.povray.org>, "Wu Yang" <wya### [at] cswrightedu>
wrote:
> Thank you for your reply. You message is very helpful for me. In your
> letter, you mentioned some C++ files and functions. Would you please inform
> me where I can find them.
You can download the POV-Ray source code on the POV-Ray web page at the
same place you download the executables.
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi,
I tried to build povray.dsw, but I can not get PVENGINE.EXE in
WINDOWS\VC6\BIN directory. Do you know the reason?
Thanks
Wu
"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> In article <3d8bb21d@news.povray.org>, "Wu Yang" <wya### [at] cswrightedu>
> wrote:
>
> > Thank you for your reply. You message is very helpful for me. In your
> > letter, you mentioned some C++ files and functions. Would you please
inform
> > me where I can find them.
>
> You can download the POV-Ray source code on the POV-Ray web page at the
> same place you download the executables.
>
> --
> Christopher James Huff <cja### [at] earthlinknet>
> http://home.earthlink.net/~cjameshuff/
> POV-Ray TAG: chr### [at] tagpovrayorg
> http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3d925ca5$1@news.povray.org>,
"Wu Yang" <wya### [at] cswrightedu> wrote:
> I tried to build povray.dsw, but I can not get PVENGINE.EXE in
> WINDOWS\VC6\BIN directory. Do you know the reason?
Sorry, I don't have Windows and have never used Visual C++, so I'm not
much help there. Maybe try asking again in povray.programming.
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thank you for your reply. I have gone through it.
Wu
"Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> In article <3d925ca5$1@news.povray.org>,
> "Wu Yang" <wya### [at] cswrightedu> wrote:
>
> > I tried to build povray.dsw, but I can not get PVENGINE.EXE in
> > WINDOWS\VC6\BIN directory. Do you know the reason?
>
> Sorry, I don't have Windows and have never used Visual C++, so I'm not
> much help there. Maybe try asking again in povray.programming.
>
> --
> Christopher James Huff <cja### [at] earthlinknet>
> http://home.earthlink.net/~cjameshuff/
> POV-Ray TAG: chr### [at] tagpovrayorg
> http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |