POV-Ray : Newsgroups : povray.binaries.images : 2D function needs 3rd dimension Server Time
18 Nov 2024 04:16:59 EST (-0500)
  2D function needs 3rd dimension (Message 1 to 3 of 3)  
From: Dennis Miller
Subject: 2D function needs 3rd dimension
Date: 26 May 2002 17:46:58
Message: <3cf157d2@news.povray.org>
Here's a shot of the 2D function I have been discussing in povray.general. I
would like to find a way to have the image "extrude" out towards the viewer
on the -z axis, using the function as a sort of "3D contour.". Anyone have
any suggestions using the function below, an approximate of the actual?
Thanks very much,
Dennis.
#declare A =1;
#declare B =1;
#declare C =1;
#declare D =1;
#declare E =1; //1
#declare F =1;

#declare I =1;
#declare J =1;
#declare K =1;
#declare L =1;


function
    {E*sin(A*sin(I*x*.01) + B*cos(J*y))
              + F*cos(C*cos(K*x) + D*sin(L*y)) }


Post a reply to this message


Attachments:
Download '2dfunction.jpg' (180 KB)

Preview of image '2dfunction.jpg'
2dfunction.jpg


 

From: Timothy R  Cook
Subject: Re: 2D function needs 3rd dimension
Date: 27 May 2002 00:18:30
Message: <3CF1B394.E87693ED@bellsouth.net>
Use it as a heightfield?

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Kevin Loney
Subject: Re: 2D function needs 3rd dimension
Date: 27 May 2002 00:59:14
Message: <3cf1bd22@news.povray.org>
you might try this

camera {
 location <20, 16, 12>
 look_at <0, 0, 0>
}

light_source {
 <500, 1500, 750>
 rgb 1
}

#declare fn_llama = function (x,y,z,A,B,C,D,E,F,I,J,K,L) {
 E*sin(A*sin(I*x*.01) + B*cos(J*z)) + F*cos(C*cos(K*x) + D*sin(L*z)) - y
}

isosurface {
 function {
  -fn_llama(x,y,z,1,1,1,1,1,1,1,1,1,1)
 }
 contained_by {
  box {
   <-16, -2, -16>, <16, 2, 16>
  }
 }
 accuracy .001
 max_gradient 4
 pigment {
  rgb 1
 }
}


--
Kevin
http://www.geocities.com/qsquared_1999/
#macro _(r)#if(r<12)#local i=asc(substr("oqshilacefg",r,1))-97;
disc{<mod(i,7)-3,div(i,7)-1,6>,z,.4pigment{rgb 10}}_(r+1)
#end#end _(1)//KL


Post a reply to this message

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