POV-Ray : Newsgroups : povray.newusers : How do you include an image (gif) into an scene Server Time
5 Nov 2024 20:19:06 EST (-0500)
  How do you include an image (gif) into an scene (Message 1 to 4 of 4)  
From: Handler
Subject: How do you include an image (gif) into an scene
Date: 28 Mar 1999 10:32:03
Message: <36FE4BB6.5A604E34@taconic.net>
Hi again!

How do you include an image (gif) into a scene without image mapping it
to an object?  Can this be done.  If not, how to you wrap it to an
object without it looking all strange and stuff.  I've tried it with no
success.  I keep getting the entire object wrapped with the image (gif).

A very fustrated Handler

Thanks!


Post a reply to this message

From: Maleko
Subject: Re: How do you include an image (gif) into an scene
Date: 28 Mar 1999 12:23:14
Message: <36fe6582.0@news.povray.org>
Handler <han### [at] taconicnet> wrote in message
news:36FE4BB6.5A604E34@taconic.net...
> Hi again!
>
> How do you include an image (gif) into a scene without image mapping it
> to an object?  Can this be done.  If not, how to you wrap it to an
> object without it looking all strange and stuff.  I've tried it with no
> success.  I keep getting the entire object wrapped with the image (gif).
>
> A very fustrated Handler
>
> Thanks!
>

Thats the way it works, it wraps the image around the object. using this
though you can do some fancy effects by using more than one object.


Post a reply to this message

From: Steve
Subject: Re: How do you include an image (gif) into an scene
Date: 28 Mar 1999 16:56:47
Message: <36FEA66B.E27CEEDC@puzzlecraft.com>
A couple of things that might help - you can scale, rotate and translate
the image. This is usually plenty of control to get it looking just right,
like a label on the front of a bottle, not all the way around.

Handler wrote:

> Hi again!
>
> How do you include an image (gif) into a scene without image mapping it
> to an object?  Can this be done.  If not, how to you wrap it to an
> object without it looking all strange and stuff.  I've tried it with no
> success.  I keep getting the entire object wrapped with the image (gif).
>
> A very fustrated Handler
>
> Thanks!


Post a reply to this message

From: Bob Hughes
Subject: Re: How do you include an image (gif) into an scene
Date: 28 Mar 1999 18:49:42
Message: <36FEC00A.3DA69B4F@aol.com>
Check the 'image_map' definition in the ?Scene help file. It tells what
it can do.
You will need a 'map_type' and possible the 'once' keyword to prevent
infinite copies of the image from tiling all over a object.
If it's a flat-faced object go with map_type 0 (default), if spherically
curved, type 1. And cylindrical, type 2. Type 5 is toroidal, donut
shaped and usually doesn't fit for many cases. No types 3 or 4 exist.
Important thing to consider, when type 0 is used and you want only 1
instance of the image you will have to add the once keyword and best to 
translate <-0.5,-0.5,0> scale <imagex,imagey,1>  first thing before
using it further.
You mentioned the image "without" object. You would need to do a
clipped_by with a plane {} statement using a box scaled to the size of
the image, this effectively is a image by itself. The shaped to various
objects can only be crudely applied. And in the case of the planar type
0 mapping, the image will always go all the way through to the opposite
side as if you've used any other 3D texture. The other map types wrap
around so aren't so noticable as such, yet if cut into would have the
image textured into the cores of the object.
Hope you can "Handle" it okay.


Handler wrote:
> 
> Hi again!
> 
> How do you include an image (gif) into a scene without image mapping it
> to an object?  Can this be done.  If not, how to you wrap it to an
> object without it looking all strange and stuff.  I've tried it with no
> success.  I keep getting the entire object wrapped with the image (gif).
> 
> A very fustrated Handler
> 
> Thanks!

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto:inv### [at] aolcom?Subject=PoV-News


Post a reply to this message

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