POV-Ray : Newsgroups : povray.general : slope with a non-constant vector Server Time
25 Dec 2024 20:37:48 EST (-0500)
  slope with a non-constant vector (Message 1 to 3 of 3)  
From: David Given
Subject: slope with a non-constant vector
Date: 14 Dec 2013 18:53:38
Message: <52acef82$1@news.povray.org>
I'm fighting textures for my planet, with a fairly small amount of
success. The problem is that because I can't manually paint any object
(because the entire terrain is more-or-less procedural), I have to
somehow extract enough information from the model to texture it
interestingly. I'm finding it all looks very samey.

One tool that would be incredibly useful is slope patterns. That way I
can have the kind of vegetation change depending on the slope, with bare
rock on the steepest.

Unfortunately, slope's direction vector appears to be a constant. And
planets are round, which means gravity keeps changing...

Is there a way around this?

-- 
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│ "There does not now, nor will there ever, exist a programming
│ language in which it is the least bit hard to write bad programs." ---
│ Flon's Axiom


Post a reply to this message

From: clipka
Subject: Re: slope with a non-constant vector
Date: 14 Dec 2013 19:51:47
Message: <52acfd23@news.povray.org>
Am 15.12.2013 00:53, schrieb David Given:
> I'm fighting textures for my planet, with a fairly small amount of
> success. The problem is that because I can't manually paint any object
> (because the entire terrain is more-or-less procedural), I have to
> somehow extract enough information from the model to texture it
> interestingly. I'm finding it all looks very samey.
>
> One tool that would be incredibly useful is slope patterns. That way I
> can have the kind of vegetation change depending on the slope, with bare
> rock on the steepest.
>
> Unfortunately, slope's direction vector appears to be a constant. And
> planets are round, which means gravity keeps changing...
>
> Is there a way around this?

There is indeed; try the following syntax:

#version 3.7;
#declare PlanetCenter=<0,0,0>;
slope {
   point_at PlanetCenter
}


Post a reply to this message

From: David Given
Subject: Re: slope with a non-constant vector
Date: 16 Dec 2013 08:27:07
Message: <52aeffab$1@news.povray.org>
On 15/12/13 00:51, clipka wrote:
[...]
> #version 3.7;
> #declare PlanetCenter=<0,0,0>;
> slope {
>   point_at PlanetCenter
> }

Brilliant, thanks. Now I just need to do something with it --- coming up
with decent textures is *so* much harder than actually placing the
geometry...

-- 
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│ "There does not now, nor will there ever, exist a programming
│ language in which it is the least bit hard to write bad programs." ---
│ Flon's Axiom


Post a reply to this message

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