POV-Ray : Newsgroups : povray.newusers : image_map on a egg shaped object : Re: image_map on a egg shaped object Server Time
29 Jul 2024 16:29:04 EDT (-0400)
  Re: image_map on a egg shaped object  
From: Alain
Date: 23 Aug 2005 20:33:08
Message: <430bc044$1@news.povray.org>
Leslie nous apporta ses lumieres en ce 2005-08-22 21:11:
> Hello,
> 
> I stumbled across POV-Ray a couple of weeks ago, did a few of the tutorials
> and got hooked.
> 
> As I am learning I found a couple of 'projects' I could work on to keep
> things interesting.
> 
> I decided to make a Weeble* as it looked relativly easy.
> 
> I have a Weeble shape, and have it broken in to the following bits:
> 
> Top Cap,Bottom Cap,Body Outer (clear), made using a lathe and cutting off
> bits I didn't want to see.
> 
> Body Inner - made with slightly smaller lathe.
> 
> My problem is trying to put the image of the dog on the uneven suface of the
> weeble. The weeble has a face in the middle and on either side are the ears
> with a tail at the back so the PNG image is being wrapped using the
> cylinder mapping.
> 
> The face appears ok but the top and bottom of the ears are skewed backwards.
> 
> I assume this is because the very top and bottom are curved inwards and
> POVRay is adjusting the image to fit.
> 
> I have tried using GIMP to skew the top and bottom back but it does not
> really help.
> 
> Has anyone here tried mapping an image completely around an egg shape
> before?
> 
> Any tips on what I could try to do to at least minimise the warping?
> 
> Thanks in advance
> 
> Leslie
> 
> *for those who do not know, a Weeble is an egg shaped toy with a weight in
> the bottom so it always stands up. There seem to be two types, one is only
> rounded at the bottom, the other, like the one I am working on is
> completely egg shaped.
> 
> 
> 
You may try a spherical wrap and see if it helps.
When doing a cylindrical wrap, some distortion is to be expected if the shape is not
cylindrical or 
close to it, this is due to the variable radius. Pixels are maped radialy around the
Y, vertical, 
axis. If you use spherical wrap, pixels are maped radialy around the origin.

Alain


Post a reply to this message

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