POV-Ray : Newsgroups : povray.beta-test : Several problems Server Time
22 Dec 2024 09:47:48 EST (-0500)
  Several problems (Message 1 to 8 of 8)  
From: Bald Eagle
Subject: Several problems
Date: 10 Mar 2017 07:45:00
Message: <web.58c29fc186a7d0f7c437ac910@news.povray.org>
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

From: clipka
Subject: Re: Several problems
Date: 10 Mar 2017 07:59:01
Message: <58c2a315$1@news.povray.org>
Am 10.03.2017 um 13:44 schrieb Bald Eagle:

> 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.

Neither can I, to be honest.
Are you /sure/ the image loaded is /genuinely/ different from the file
you want to be loaded, and it isn't just a case of an unexpected look
caused by the lighting conditions, surface properties or whatnot?

Also, how does the loaded image look like? (*)


> I had the same problem with 3.7 and 3.71 Beta 2

It's a bit misplaced in this newsgroup then, isn't it?


> #declare Picture = pigment {image_map {gif Filename}}
...
> box {<0, 0, 0>, <1, 0.1, 1>
>  pigment {Picture}
>  scale <5*(image_width/10), 1, 5*(image_width/10)>
>  translate <0, 0, 0>
> }

(*) Could it, for instance, show just coloured stripes or bands? You
know, like if someone accidentally tried to map a pattern extending
across the XY plane (such as an image_map with default map_type) onto a
box that extends across the XZ plane (like a box {<0,0,0>,<1,0.1,1>})?

Just asking ;)


Post a reply to this message

From: Stephen
Subject: Re: Several problems
Date: 10 Mar 2017 09:27:20
Message: <58c2b7c8$1@news.povray.org>
On 3/10/2017 12:44 PM, Bald Eagle wrote:
> Could someone check this out?

I'm not sure what you are doing with your code. But if you rotate the 
box 90° by X you get the bottom part of the gif showing.


box {<0, 0, 0>, <1, 0.1, 1>
  pigment {Picture}
  rotate 90 * x
  scale <5*(image_width/10), 1, 5*(image_width/10)>
  translate <0, 0, 0>
}

-- 

Regards
     Stephen


Post a reply to this message

From: Stephen
Subject: Re: Several problems
Date: 10 Mar 2017 09:53:53
Message: <58c2be01$1@news.povray.org>
On 3/10/2017 2:27 PM, Stephen wrote:
> box {<0, 0, 0>, <1, 0.1, 1>
>   pigment {Picture}
>   rotate 90 * x
>   scale <5*(image_width/10), 1, 5*(image_width/10)>
>   translate <0, 0, 0>
> }


Duh! This is better. If it is what you want.

box {<0, 0, 0>, <1, 0.1, 1>
  pigment {Picture
  rotate 90 * x
}

  scale <5*(image_width/10), 1, 5*(image_width/10)>
  translate <0, 0, 0>
}


-- 

Regards
     Stephen


Post a reply to this message

From: Bald Eagle
Subject: Re: Several problems
Date: 10 Mar 2017 10:10:01
Message: <web.58c2c13b60fc794bc437ac910@news.povray.org>
Yes, thanks,

#declare Picture = pigment {image_map {gif Filename}rotate x*90}

indeed solved the problem.  Too many parallel, or more accurately, orthogonal
experiments going all at once.

It didn't help that the sideways view strongly resembled other sinusoidal
pattern in other files.

There are days, and then there are DAYS.   :|

Thank you both for the gentle nudge back towards sanity.  :)


Post a reply to this message

From: Stephen
Subject: Re: Several problems
Date: 10 Mar 2017 11:01:44
Message: <58c2cde8$1@news.povray.org>
On 3/10/2017 3:07 PM, Bald Eagle wrote:
> Yes, thanks,
>
> #declare Picture = pigment {image_map {gif Filename}rotate x*90}
>
> indeed solved the problem.  Too many parallel, or more accurately, orthogonal
> experiments going all at once.
>

But, but aren't they the same? ;)

> It didn't help that the sideways view strongly resembled other sinusoidal
> pattern in other files.
>

I've made so many mistakes with image maps the output looked familiar.

And your point about stopping the text streams going to the console.
I've never been able to disable them. And that is going back to Pov 3.5 
when I first wanted to.

> There are days, and then there are DAYS.   :|
>

There are days, and then there are WEEKS and MONTHS. ;)

> Thank you both for the gentle nudge back towards sanity.  :)
>
>


-- 

Regards
     Stephen


Post a reply to this message

From: clipka
Subject: Re: Several problems
Date: 10 Mar 2017 11:47:07
Message: <58c2d88b$1@news.povray.org>
Am 10.03.2017 um 16:07 schrieb Bald Eagle:
> Yes, thanks,
> 
> #declare Picture = pigment {image_map {gif Filename}rotate x*90}
> 
> indeed solved the problem.  Too many parallel, or more accurately, orthogonal
> experiments going all at once.

Orthogonal is good. It means you can only have at most 3 experiments at
the same time ;)


Post a reply to this message

From: Bald Eagle
Subject: Re: Several problems
Date: 10 Mar 2017 12:00:00
Message: <web.58c2db4960fc794bc437ac910@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 10.03.2017 um 16:07 schrieb Bald Eagle:
> > Yes, thanks,
> >
> > #declare Picture = pigment {image_map {gif Filename}rotate x*90}
> >
> > indeed solved the problem.  Too many parallel, or more accurately, orthogonal
> > experiments going all at once.
>
> Orthogonal is good. It means you can only have at most 3 experiments at
> the same time ;)

Bah.   Tell that to these guys!
http://www.dimensions-math.org/

:O


Post a reply to this message

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