POV-Ray : Newsgroups : povray.general : Re: Need help creating an effect Server Time
1 Nov 2024 19:15:39 EDT (-0400)
  Re: Need help creating an effect (Message 1 to 2 of 2)  
From: Bill DeWitt
Subject: Re: Need help creating an effect
Date: 23 Jul 1999 12:40:30
Message: <37989afe@news.povray.org>
No, but thanks,
    I was thinking something more like orb-cyl that I could use to put my HF
onto an undulating surface. Maybe I can use CC's object bender to do it...
I'll have to try it after lunch. I don't remember if it works on a HF...


From: Ken <tyl### [at] pacbellnet>
Subject: Re: Need help creating an effect
Date: Friday, July 23, 1999 12:13 PM



Bill DeWitt wrote:
>
> I have an Image that I rendered for the last IRTC and have now adapted for
> the local Bike Club Tee Shirt. I want to place a Script logo over the
image
> so that it looks like a floating banner. I have a height field for the
> script that looks just right (like fingernail polish) and I map the image
on
> a plane then put the script HF in front of that (see SCFW in p.b.i)(soon)
> but that makes the script flat. I thought of putting the shuttle image on
> the inside of a cylinder then using an unusual camera to make that seem
flat
> and the script bulge, but I really want undulation, not bulge.
>
>     I hope I have described this well, any suggestions?



  You take a look at the sine wave surfer a texture making utility at:
http://webclub.solutions.fi/~xtmb/sws/index.htm

  There is a waving flag animation in one of the groups here I might be able
  to locate for you if you want me to track it down.

  Here are a few examples of sine wave shapes you might be able to adapt to
  your needs.

  // Sine wave shape example
  #declare Amplitude=1;
  #declare Cycles=3;
  #declare StartAngle=pi*3/2;
  #declare WaveStartX=-5;
  #declare WaveWidth=10;
  #declare ItemAmnt=100;
  #declare Item=sphere { 0,.1 pigment { rgb <1,0,0> } finish { specular
.5 } }
  #declare Index=0;
  #while(Index<ItemAmnt)
  #declare Angle=StartAngle+2*pi*Cycles*Index/ItemAmnt;
  #declare PosX=WaveStartX+WaveWidth*Index/ItemAmnt;
  #declare PosY=Amplitude*sin(Angle);
  object { Item translate <PosX,PosY,0> }
  #declare Index=Index+1;
  #end


  // Sine wave shape example
  #declare i=0;
  #while (i<90)
  sphere {0,1 pigment {rgb <1,0,0>}finish {ambient 1.0}
  translate <i,10*sin(i*pi/30),0>}
  #declare i = i + 1;
  #end


  // Sine wave shape with face rotation added
  #declare i=0;
  #while (i<90)
  #declare angle1 = i*pi/30;
  box {<-0.5,-0.5,-0.5>,<0.5,0.5,0.5>
  pigment {rgb <1,0,0>}
  finish{ambient 1.0}
  rotate <0,0,-45*sin(angle1)>
  translate <i,10*sin(angle1+pi/2),0>}
  #declare i = i + 1;
  #end;


Good  luck,

--
Ken Tyler

mailto://tylereng@pacbell.net
http://home.pacbell.net/tylereng/links.htm


Post a reply to this message

From: Bob Hughes
Subject: Re: Need help creating an effect
Date: 23 Jul 1999 16:24:10
Message: <3798CF3A.88754137@aol.com>
Did you not get the memo about the isosurface pigment function in the
SuperPatch? It can do what you are asking about, if I understand what
you are asking. See the text.scene-files group for a Spherical HF
message by Zeger Knaepen, it is a good example of what can be done.


Bill DeWitt wrote:
> 
>     I was thinking something more like orb-cyl that I could use to put my HF
> onto an undulating surface. Maybe I can use CC's object bender to do it...
> I'll have to try it after lunch. I don't remember if it works on a HF...
>


Post a reply to this message

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