POV-Ray : Newsgroups : povray.programming : how to write the reflected ray to a file? : Re: how to write the reflected ray to a file? Server Time
28 Jul 2024 06:14:42 EDT (-0400)
  Re: how to write the reflected ray to a file?  
From: Wu Yang
Date: 10 Oct 2002 14:26:29
Message: <3da5c655$1@news.povray.org>
Thanks a lot
Wu
"Vahur Krouverk" <vkr### [at] starmanee> wrote in message
news:3DA### [at] starmanee...
> Wu Yang wrote:
> > Hi, all
> >    I want to write the reflected ray to a file and I tried to cout the
> > New_Ray to the screen by adding "cout << New_Ray.Direction;" into the
> > Reflect() function and rebuild the project. But it is no use. When I
execute
> > the pvengine.exe, nothing appears on the screen. Could you please give
me
> > some advice about how to write the reflected ray to a file.
>
> If you want to write to file, then write to file :-)
> If you write to standard output, then it could not be seen (at least
> with pvengine.exe), as it is Windows application and Windows
> applications usually do not display text, written to standard output.
> So you have to create ofstream to write to file.
>
> Other possibility is to redirect standard output to file. For this start
> pvengine from command line as follows:
> pvengine.exe 1>output
> this will redirect all text, written to standard output stream, to file
> output.
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.