|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |