![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I found a thread on this before but I can't seem to find it twice...
I am trying to apply 1 image_map to 45 bicubic_patches but I am getting
45 image_maps applied to each bicubic_patch, some are even turned in the
wrong direction.
In the thread I can't seem to find now, Nathan mentioned using
uv_vectors
to correct this. But I'm not sure how this works. I tried fiddling with
it
but didn't notice any changes.
I suppose I could try breaking up the image_map into several pieces and
apply them individually to each patch but I'd rather learn how
uv_vectors
works.
For those who are curious I'm making a flag.
TIA
--
Phil
...coffee?...yes please! extra sugar,extra cream...Thank you.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Phil Clute wrote:
>
> I found a thread on this before but I can't seem to find it twice...
>
> I am trying to apply 1 image_map to 45 bicubic_patches but I am getting
> 45 image_maps applied to each bicubic_patch, some are even turned in the
> wrong direction.
> In the thread I can't seem to find now, Nathan mentioned using
> uv_vectors
> to correct this. But I'm not sure how this works. I tried fiddling with
> it
> but didn't notice any changes.
> I suppose I could try breaking up the image_map into several pieces and
> apply them individually to each patch but I'd rather learn how
> uv_vectors
> works.
>
> For those who are curious I'm making a flag.
I wrote a little thing about this some time ago, which might interest
you. The flag generation part is not really what one would call an
extremely scientific work, but the mapping tricks are there. I just
tested it, and it still works with MegaPov:
http://www.wozzeck.net/images/flag.html
Hope this helps.
--
__ __ __ __ _
| | / \ / / |_ / |/
\/\/ \__/ /_ /_ |__ \_ |\
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thanks, I'll take a look at the toolkit.
--
Phil
...coffee?...yes please! extra sugar,extra cream...Thank you.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I've got an include for making flags somewhere around here. It works in
official pov, but could use some improvement. You'll have to wait 'til next
week to get it though.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
TonyB wrote:
>
> I've got an include for making flags somewhere around here. It works in
> official pov, but could use some improvement. You'll have to wait 'til next
> week to get it though.
http://www.geocities.com/CapeCanaveral/7999/
--
Wishing you Seasons Greetings, A Merry Christmas, Happy New Millennium !
Ken Tyler - 1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I think I see what you're saying. I had the same problem when I was
experimentally trying to make a long, curling banner out of multiple
patches and wanted to map one image map across the full length of
it. What you want is that "uv_vectors" keyword on each of your
patches. There's an example in demouv2.pov that comes with the
sample files. First render it as it appears, then try changing
the line that reads...
uv_vectors <0, 0>, <1, 1>
to
uv_vectors <.5, .5>, <1.5, 1.5>
and re-render, and it should become clear what this does and
how it can help with the "one image across several patches"
problem. Should be ideal for flags.
Charles
Phil Clute wrote:
>
> I found a thread on this before but I can't seem to find it twice...
>
> I am trying to apply 1 image_map to 45 bicubic_patches but I am getting
> 45 image_maps applied to each bicubic_patch, some are even turned in the
> wrong direction.
> In the thread I can't seem to find now, Nathan mentioned using
> uv_vectors
> to correct this. But I'm not sure how this works. I tried fiddling with
> it
> but didn't notice any changes.
> I suppose I could try breaking up the image_map into several pieces and
> apply them individually to each patch but I'd rather learn how
> uv_vectors
> works.
>
> For those who are curious I'm making a flag.
>
> TIA
> --
> Phil
> ...coffee?...yes please! extra sugar,extra cream...Thank you.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I thought I tried this before, I must have
been doing something wrong.
thanks
--
Phil
...coffee?...yes please! extra sugar,extra cream...Thank you.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Yeah, this is not easy to grasp at first, based on the demos and
docs currently out there. And if you're dealing with that many
patches and trying to apply the uv_vectors by hand, you definitely
have my sympathy! <g> I had a couple problem figuring out the right
orientations for a 2x3 patch banner.
Actually if you (or any one else here for that matter) would be
interested, I have what I consider a decent pair of sample demo
files illustrating this process. It just consists of two POV
files, and two small PNG files. One POV file uses a single flat
bezier to demonstrate how to orient maps onto its surface, and
the other is a pair of those 6 patch banners I mentioned above
showing how to select uv_vectors to stretch the image across
the complete banner. Let me know, and I can zip it up and put
it out on my site for pickup if you'd like.
Charles
-------
http://www.enter.net/~cfusner
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> Let me know, and I can zip it up and put
> it out on my site for pickup if you'd like.
That would be great. I'm definately having a hard time figuring out
what direction everything wants to go in. It sometimes seems like
changing the settings rotates the image.
Some of the Bicubic patches display the image sideways and I can't
figure out why. I guess maybe sPatch flips some ofthe patches but I'm
just guessing.
--
Phil
...coffee?...yes please! extra sugar,extra cream...Thank you.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Phil Clute wrote:
>
> > Let me know, and I can zip it up and put
> > it out on my site for pickup if you'd like.
>
> That would be great. I'm definately having a hard time figuring out
> what direction everything wants to go in. It sometimes seems like
> changing the settings rotates the image.
Ok. I've zipped the demo files and the png images that they use
and put them at...
http://www.enter.net/~cfusner/tutorial/uvbez.zip
> Some of the Bicubic patches display the image sideways and I can't
> figure out why. I guess maybe sPatch flips some ofthe patches but I'm
> just guessing.
(nods) Yup, I'd be inclined to guess that too. It all has to do
with which order the control points were specified in, so modellers
made before uv_mapping might have been too lax in the past with
the way they chose which points to output at the corners (since
it never mattered before). My second file uvbez.pov was initially
made in Moray (although for clarity's sake I swapped all the y and z
coordinates so it behaves like a regular left handed file), and
Moray, for example, seems as if it outputs the mathematically lowest
corner of each patch first (although this could just be the
particular application I put it to, dunno). This makes for an
odd orientation (I had to rotate and flip the image map to get it
right-side up), but at least its consistent, so once the orientation
is figured out it stays the same. If sPatch doesn't do something
similar... well, all I can say is "have fun!" <bg>.
Hope this helps!
Charles
----
http://www.enter.net/~cfusner
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |