Article View: comp.graphics.animation
Article #814Re: Trouble with POV animation/texturing
From: Scott Mark
Date: Tue, 12 Jan 1993 14:57
Date: Tue, 12 Jan 1993 14:57
85 lines
2806 bytes
2806 bytes
In article <1ispmoINNbh7@matt.ksu.ksu.edu> dudley@matt.ksu.ksu.edu (D U D L E Y) writes:
>sjm@miles.com (Scott Mark) writes:
>
>>I have been thinking about doing animations with POV, but it seems that
>>the texture I'm using (DMFWood4) shifts when I move my camera!
>
>From the documentation:
>
># When animating objects with solid textures, the textures
># must move with the object, i.e. apply the same rotate or
># translate functions to the texture as to the object itself.
># This is now done automatically if the transformations are
># placed _after_ the texture block. Example:
From the original posting: (No offense intended, but read what I _wrote_!)
>I have been thinking about doing animations with POV, but it seems that
>the texture I'm using (DMFWood4) shifts when I move my camera!
------
I am not moving objects, before or after applying textures. For completeness
I am including the scene file below. It is short. It doesn't take long
to render with antialiasing turned off.
When I render the following scene, I get some nice variation to the rings
running diagonally from top-front-left of the box to bottom-front-right.
If I move the camera to <1 7 -10> to get a closer look, the variation
disappears! Just nice smooth concentric rings.
I was under the impression that the textures were deterministic, unless
there was the optional floating point value right after the keyword.
-------------------------- cut here ---------------------------
#include "colors.inc"
#include "shapes.inc"
#include "textures.inc"
camera {
/*
location <1 7 -10>
*/
location <1 15 -10>
direction <0 0 1.5>
up <0 1 0>
right <1.33 0 0>
look_at < 0 4 -4>
}
object {
light_source {
<1 15 -10>
color White
}
}
object {
/*
intersection {
box { <-4 4 0> <4 10 5> translate <0 0 -4> }
plane { <0 0 1> 0 rotate <0 45 0> }
plane { <0 0 1> 0 rotate <0 -45 0> }
} bounded_by {
box { <-4 4 0> <4 10 5> translate <0 0 -4> }
*/
box { < -4 -4 -4> < 4 4 4>
} texture {
DMFWood4
} color White
}
/* one board's texture, fairly nice
DMFWood4
rotate < 94 0 0>
translate <0 0 -4>
rotate < 0 5 0>
scale <4 1 1>
*/
-------------------------- cut here ---------------------------
Scott Mark
sjm@miles.com
Technical Details
Message-ID:
<1993Jan12.145700.9632@miles.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!gator!miles!sjmReferences:
<1993Jan9.183129.13662@miles.com> <1ispmoINNbh7@matt.ksu.ksu.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.graphics.animation Path: arc1-ca.pugleaf.net!sparky!uunet!gator!miles!sjm From: sjm@miles.com (Scott Mark) Subject: Re: Trouble with POV animation/texturing Message-ID: <1993Jan12.145700.9632@miles.com> Organization: Miles Inc., Diagnostics Division, Elkhart, IN References: <1993Jan9.183129.13662@miles.com> <1ispmoINNbh7@matt.ksu.ksu.edu> Date: Tue, 12 Jan 1993 14:57:00 GMT Lines: 85