POV-Ray : Newsgroups : povray.general : tile-able hieghtfields : tile-able hieghtfields Server Time
5 Aug 2024 00:26:51 EDT (-0400)
  tile-able hieghtfields  
From: James Taylor
Date: 10 Jan 2003 17:59:40
Message: <3e1f505c@news.povray.org>
hi all,

here's a chunk of code for your consideration (m and cm are arbitrary units
of meters and centimeters)

//start
#local fn = function { pattern {granite} };

HF_Square (fn, no, no, <25,25>, yes, "square1.inc", <0,0,0>, <1,1,1>*m)
object{#include "square1.inc" scale <1,0.1,1> pigment{Green}}

HF_Cylinder(fn, no, no, <25,25>, yes, "cylinder1.inc", <0,0,0>, <0,0,1>*m,
5*cm,10*cm)
object{#include "cylinder1.inc" translate -5*cm*y pigment{Red}}
//end

How would I manipulate this such that the cylinder 'tiles' seamlessly with
the square. The basic end result I'm aiming for is a round_box with a real
normal as opposed to a normal normal... or is there an easier way?

thanks in advance
jim


Post a reply to this message

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