POV-Ray : Newsgroups : povray.newusers : Questions! : Re: Questions! Server Time
6 Sep 2024 14:14:07 EDT (-0400)
  Re: Questions!  
From: Johannes Hubert
Date: 1 Apr 1998 05:47:45
Message: <35221B51.B87A05AA@penttech.com>
Saif Ansari wrote:

> Oh, and incidentally (since both questions pertain to the same object)
> is it possible to kind of "paste" a pre-existing image (a GIF or JPEG)
> onto an object like a sphere or a box?

Is the "image_map" what you want? (POV-Docs: 7.6.1.5). Or did I understand
you wrong?

> Lastly, is it possible to use a heightfield as a Normal/Texture/whatever
> for an object? I'm thinking about cavewalls/stalactites, but more
> specifically, instances when it will have to be "wrapped" around the
> whole object like in coralreefs or stones.

You can use any bitmap (and a heightfield is basically a bitmap) as a
texture (image_map) or normal-modifier (bump_map, Docs: 7.6.2.3). The
problem: When you use a bitmap in this way, you only change the colors
(image_map) or normals (bump_map) of the object, not the shape of an object
(That is, the outline of a heavily bump-mapped object is still plain, making
it look very strange when viewed fromt he side). Changing the actual shape
of an object is very hard (if not close to impossible) in POV-Ray.
Displacement maps are the general solution for that in raytracing, but
POV-Ray doesn't have that feature. Mapping a heighfield to an object would
also be a solution, but is not possible (heightfields are always planar in
POV-Ray). But some of the heightfield tools (HF-Lab/GForge?) can map a
heightfield to some other shape (a sphere for example) and output a
triangle-mesh for use with POV-Ray.

I hope this helps a bit,
Johannes.


Post a reply to this message

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