|
|
I ran across a few problems while trying to work out some more FFT code, and am
wondering if it's a bug, or just some massive error on my part.
The first was trying to get a debug stream to write to file, but not to console.
I used -GD and -GDFFT_Debug.txt and neither turned off output to the console.
I also tried Debug_Console=off in the "command line" section of the windows GUI,
and still got output to the screen.
The most disturbing thing that I was struggling with, is that POV-Ray seemed to
be loading a different .gif file than the one I was specifying.
At first I was using just the filename, then I specified the full path just to
make sure. Identical results.
I can't even begin to imagine how this happens.
I had the same problem with 3.7 and 3.71 Beta 2
I didn't get a chance to see if it was only for gifs, and worked fine for jpg,
png, etc.
Could someone check this out?
==========================================================================
#version 3.7;
global_settings {assumed_gamma 1.0}
#include "colors.inc"
#include "functions.inc"
//
################################################################################
#declare Filename =
"C:/Users/Drew/Documents/POV-Ray/v3.7/Image_Maps/sincombo2.gif";
#declare Zoom = 1;
//
################################################################################
#declare Picture = pigment {image_map {gif Filename}}
#declare Resolution = max_extent (Picture);
#declare ImageHeight = Resolution.y;
#declare ImageWidth = Resolution.x;
#declare PictureScale = <Resolution.x, Resolution.y, 1>;
#if (Resolution.x > Resolution.y)
#declare Y = 1;
#else
#declare Y = 1*(image_width/image_height);
#end
#declare TotalPixels = Resolution.x * Resolution.y;
#declare AdjustCamera = max(Resolution.x, Resolution.y)*Y;
#debug concat ( "PictureScale = ", vstr (3, PictureScale, ", ", 3, 3), " ...
Total pixels = ", str(TotalPixels, 3, 3), " \n")
#declare Zoom = 0.95;
#declare AdjustCamera = 500; //max(Resolution.x, Resolution.y)*Y;
#declare Camera2 =
camera {
orthographic
location <image_width/2, (AdjustCamera/Zoom), image_width/4>
right x*image_width/Zoom
up y*image_height/Zoom
look_at <image_width*0.5, 0, (image_width/4)+0.1>
}
camera {Camera2}
light_source {<0, 500, -10> color rgb <1, 1, 1>}
box {<0, 0, 0>, <1, 0.1, 1>
pigment {Picture}
scale <5*(image_width/10), 1, 5*(image_width/10)>
translate <0, 0, 0>
}
Post a reply to this message
|
|