POV-Ray : Newsgroups : povray.advanced-users : Image-Sizes: Can POV read? Server Time
29 Jul 2024 14:17:17 EDT (-0400)
  Image-Sizes: Can POV read? (Message 1 to 1 of 1)  
From: Tim Nikias
Subject: Image-Sizes: Can POV read?
Date: 18 Apr 2002 13:08:46
Message: <3C962D3C.37BCEC57@gmx.de>
I was just scripting a little macro which should make it very
easy to apply a bump-map to a camera so that you can
easily create an embossed effect of your name, like I do
on my images as seen on my homepage.

I wanted a user-friendly approach, so all you do is actually
set a position on the final image ( ranging from <0,0>, lower
left corner, to <1,1>, upper right corner), set a size for the
embossment (.25 means the width of embossment covers
a quarter of the scene, height is adjusted appropriately).

Right now, the user has to "feed" POV the actual Pixel-Size
of the Bumpmap. All this is done so that you just have a
"heightfield" of the embossment, not an image you have
to wrap across the entire scene, also making different
ratios possible.

Is there a way for POV to know the pixelsize of the loaded
image, like the "image_width" and "image_height" knows the
size of the traced image?

I haven't found anything in the docs, but maybe I'm just looking
at the wrong places.

Thanks in advance!

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

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