POV-Ray : Newsgroups : povray.newusers : Logo on object? Server Time
6 Nov 2024 14:26:51 EST (-0500)
  Logo on object? (Message 1 to 2 of 2)  
From: Postie
Subject: Logo on object?
Date: 20 Aug 1998 10:11:16
Message: <35DC2073.847B51AC@fmf.ml.org>
Hello,

This is probably in the manuals, but I haven't finished reading yet. My
question is 
this:

I made a barrel in POV-ray using SOR. Then I applied some texture to it.
But how
do I get an image from the biohazard logo on the barrel just only once?
Do I have
to apply 2 textures of some kind with the biohazard logo applied only
'once'?

Thanks in advance.
-- 

This message was brought to you by:
 _____          _   _       /--- ,-.-. \
|  __ \        | | (_)     |  |  | | |  |
| |__) |__  ___| |_ _  ___  \ |  | | | /
|  ___/ _ \/ __| __| |/ _ \
| |  | (_) \__ \ |_| |  __/
|_|   \___/|___/\__|_|\___| aka Stefan Postema

 Address: http://fmf.ml.org/~postie
          http://huizen.dds.nl/~nicap
          mailto:csg### [at] wingrugnl
--


Post a reply to this message

From: K  Tyler
Subject: Re: Logo on object? correction
Date: 21 Aug 1998 01:36:34
Message: <35DCEAE7.38C337C1@pacbell.net>
Postie wrote:

> Hello,
>
> This is probably in the manuals, but I haven't finished reading yet. My
> question is
> this:
>
> I made a barrel in POV-ray using SOR. Then I applied some texture to it.
> But how
> do I get an image from the biohazard logo on the barrel just only once?
> Do I have
> to apply 2 textures of some kind with the biohazard logo applied only
> 'once'?
>
> Thanks in advance.
> --
>
> This message was brought to you by:
>  _____          _   _       /--- ,-.-. \
> |  __ \        | | (_)     |  |  | | |  |
> | |__) |__  ___| |_ _  ___  \ |  | | | /
> |  ___/ _ \/ __| __| |/ _ \
> | |  | (_) \__ \ |_| |  __/
> |_|   \___/|___/\__|_|\___| aka Stefan Postema
>
>  Address: http://fmf.ml.org/~postie
>           http://huizen.dds.nl/~nicap
>           mailto:csg### [at] wingrugnl
> --

  This one is pretty easy.
I'm going to presume your barrel is 10 units tall 3.5 units wide
and is standing on a plane located at y*0.

object{Barrel
  texture{
   pigment{your pigment}
    finish{your finish}
     normal{?}
      pigment{
        image_map{gif "biohazard.gif" interpolate 2 once}
         translate -0.5     // this will center the image
          scale 1.5          // this will give your label a size of 1.5 x 1.5
           translate y*7   // this will put the image at the top end of the
barrel
    }
  }
}

This should work. Give it a try.

Happy Rendering !

K.Tyler


Post a reply to this message

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