POV-Ray : Newsgroups : povray.newusers : Flag sample Server Time
26 Nov 2024 15:01:04 EST (-0500)
  Flag sample (Message 1 to 4 of 4)  
From: Eric
Subject: Flag sample
Date: 17 Apr 2004 03:25:01
Message: <web.4080db4980e354073cec3e620@news.povray.org>
Hi,

I copied the flag sample from the documentation into my own scene.  It works
fine, until I replace the blue texture with an image.  Then the wavy
pattern does not render anymore.  Is it possible to get the wavy pattern
(from varying the surface normal) to work with an image?  How does one need
to modify the code from the documentation?

Thanks,

Eric


Post a reply to this message

From: Hughes, B 
Subject: Re: Flag sample
Date: 17 Apr 2004 13:45:33
Message: <40816d3d$1@news.povray.org>
"Eric" <pov### [at] johannsenus> wrote in message
news:web.4080db4980e354073cec3e620@news.povray.org...
>
> I copied the flag sample from the documentation into my own scene.  It
works
> fine, until I replace the blue texture with an image.  Then the wavy
> pattern does not render anymore.  Is it possible to get the wavy pattern
> (from varying the surface normal) to work with an image?  How does one
need
> to modify the code from the documentation?

If the example is from section 3.12.3 The Phase Keyword in the Beginning
Tutorial about making animations (only animated flag I could locate) there
shouldn't be any problem replacing Blue with:

image_map { jpeg "yourimage.jpg" }

Using whatever type image you actually have which works with POV, i.e. BMP,
TGA, PNG, etc. Can leave all else the same, although, I'd suggest trying
turbulence 0.5 in the normal to give the waves some distortion.

If you want to go beyond the static object so that it moves too, not just
the normal, then a bicubic_patch is what would work well for that since the
image can be uv_mapped.

-- 
Bob H.
http://www.3digitaleyes.com


Post a reply to this message

From: Eric
Subject: Re: Flag sample
Date: 18 Apr 2004 15:00:00
Message: <web.4082cf5e37c1021a980530f60@news.povray.org>
> If the example is from section 3.12.3 The Phase Keyword in the Beginning
> Tutorial about making animations (only animated flag I could locate) there
> shouldn't be any problem replacing Blue with:
>
> image_map { jpeg "yourimage.jpg" }

I had changed the lighting tags, and that messed up the Phase keyword.
Restoring to the tags from the example made it work.  I guess it's not a
good idea to change two variables at once when learning a new system :-)

Thanks!


Post a reply to this message

From: Hughes, B 
Subject: NT: YW! :-)
Date: 19 Apr 2004 02:06:21
Message: <40836c5d$1@news.povray.org>


Post a reply to this message

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