POV-Ray : Newsgroups : povray.macintosh : Layered texture problem Server Time
23 Dec 2024 06:38:44 EST (-0500)
  Layered texture problem (Message 1 to 4 of 4)  
From: Xplo Eristotle
Subject: Layered texture problem
Date: 17 Jul 1999 22:41:58
Message: <37913F01.21A4@unforgettable.com>
First I want to say "good job" to the Mac POV-Ray guys out there, I'm
using 3.1g on a 68k Mac and I haven't hit a bug yet. If this is going to
be the last 68k version, at least you guys seem to have gotten it right.
:)

But now onto my problem...

I've been trying to create a scene that uses a height field as terrain,
and the field is superimposed on a box which is meant to look like
water. (The idea is for the water to sit in the lower parts of the
field, but still allow the field to be visible under the surface of the
water. It doesn't work as intended, but I tried. Testing reflection and
transparency effects takes a long time on an LC040/25, you know. -_-; )

Anyway, the field has two texture layers on it. The first one (and hence
the "bottom" layer) is a bright sandy agate that works marvellously to
produce sand. The second is a y gradient composed of bands of dark
filtering brown and complete transparency, which is intended to darken
the parts of the height field that are touching the edge of the water
(for a "wet sand" look).

The problem is that when I apply the two textures to the side of a
simple box (for testing), they combine as expected, but when applied to
the height field the second texture doesn't show up.

Here's the height field code, in case anyone can glean anything helpful
from it:

height_field
	{
	tga "dirt.tga"
	smooth
	texture
		{
		pigment
			{
			agate
			color_map
				{
				[0.2 color rgb <1,.9,.8>]
				[0.4 color rgb <.8,.7,.6>]
				[0.7 color rgb <1,.8,.6>]
				[1 color rgb <.8,.6,.4>]
				}
			}
		}
	texture
		{
		pigment
			{
			gradient y
			color_map
				{
				[0.4375 color rgbf <1,1,1,1>]
				[0.4375 color rgbf <.5,.5,.5,1>]
				[0.6 color rgbf <.5,.5,.5,1>]
				[0.6 color rgbf <1,1,1,1>]
				}
			scale 4
			translate <0,-2,0>
			}
		}
	scale <150,4,150>
	translate <-75,-2,-10>
	}

Does transforming an object also transform its texture(s)? I wouldn't
expect it to, but if so, that might explain my problem (it hadn't
occurred to me until just now).

If this isn't enough information, I can provide the scene file as well
as the Targa file for the height field (warning: the .tga is a few
hundred k) and a 640 x 480 PICT.


Post a reply to this message

From: Chris Huff
Subject: Re: Layered texture problem
Date: 18 Jul 1999 07:41:29
Message: <3791BD65.FA0356E5@compuserve.com>
This probably has nothing to do with your problem, but an odd quirk of
POV-Ray is that it treats filter and transmit the same in textures.
Also, I usually transform the height field so it is centered over the
origin, apply the texture, then scale/translate it to position. This
makes it easier to align textures.


Post a reply to this message

From: Chris Huff
Subject: Re: Layered texture problem
Date: 18 Jul 1999 07:42:22
Message: <3791BD9F.61700E34@compuserve.com>
I meant it treats filter and transmit the same in LAYERED textures,
sorry.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Layered texture problem
Date: 18 Jul 1999 13:37:21
Message: <379210d1@news.povray.org>
In article <379### [at] unforgettablecom> , Xplo Eristotle 
<inq### [at] unforgettablecom>  wrote:

>> I have cross-posted your problem to povray.newusers because there you get a
>> much more qualified response from experienced artists :-)
>
> Who knew? ^_^

:-)  I am barely an artist (I wasn't refering to this group in general, just
to myself) and there is little traffic in the Macintosh group - of course
there are qualified POV-Ray Mac artists here, but as your problem is not Mac
specific the help in povray.newusers is faster and most user new users will
benefit from it as well (even if the don't read this Mac group :-)


    Thorsten


Post a reply to this message

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