POV-Ray : Newsgroups : povray.general : How to add a bump to an object? : Re: How to add a bump to an object? Server Time
30 Jul 2024 16:15:34 EDT (-0400)
  Re: How to add a bump to an object?  
From: Mike Williams
Date: 18 Nov 2008 00:14:29
Message: <w85TYvBS0kIJFwau@econym.demon.co.uk>
Wasn't it sumdumguy who wrote:
>I am stuck with the following problem: I have an egg-shaped object and 
>I want to
>pull on it locally, deforming it. I want the deformation to affect the entire
>shape. The easiest way to visualize it is to think of an egg with a plastic
>shell and liquid inside. Now bring a match close to one spot on the egg,
>locally softnening the plastic and allowing water to bulge out the shape.
>One approach would be to do a blob. However, blobs are too local and they only
>work with spheres and cylinders not splined lathe objects like my egg shape.
>Is there a way to programmatically add a bump to an object in a particular
>direction?

I reckon that there are two basic approaches, neither of them easy.

You could model your egg as a smooth mesh and calculate the changes to 
the vertices and normals as the shape changes.

You could model your egg as an isosurface and do isosurface blobbing 
http://www.econym.demon.co.uk/isotut/combine.htm#blob
Hint: if you want a real egg shape, rather than just an ellipsoid, you 
can use non-linear scaling on a sphere
http://www.econym.demon.co.uk/isotut/substitute.htm

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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