POV-Ray : Newsgroups : povray.newusers : How can I do an arrow? : Re: How can I do an arrow? Server Time
30 Jul 2024 14:27:47 EDT (-0400)
  Re: How can I do an arrow?  
From: Hughes, B 
Date: 9 Aug 2004 19:38:27
Message: <41180af3$1@news.povray.org>
"Oleguer Vilella" <ole### [at] infonegociocom> wrote in message
news:41176150@news.povray.org...
>
> I have an other question. The question is: I'm finishing the picture and I
> did the background a part of the picture. I want put the picture down and
in
> the middle, the picture only can hold some space, because I'll put other
> things over the picture and on the left and right of it.
> The background is a cloudy scene. How can I include the background in the
> picture? and, how can I situate the picture?

Hiya Oleguer.

I guess you want transparency of that picture so a cloud background shows
through it in part or all. Or maybe I'm guessing more than you are thinking
of doing, since you might only be asking about placing an image file within
a scene using clouds in the background so as to frame it in (around it).

Sometimes it is not easy to understand what a person is trying to do without
drawing a sketch when only said in a few words. Here's my idea of what you
asked about and it might be wrong:

/* default camera used (none stated) */

box {
  0, <1,1,0.001> // very thin box to hold picture
  pigment {
    image_map { jpeg "picture.jpg" transmit all 0.5 }
  } // the image will be 50% transparent
  translate <-0.5,-0.5,0> // first center it
  scale <X,Y,1>*Size // use resolution of original picture...
// Size is for scale factor that will fit into your scene and
// 0.01 would squeeze a 320x240 res. image into this example scene
  translate <0,-1,3> // still centered horizontally, down some, back
}

/* cloudy part of scene beyond +3 z to be in back of image */

Note that the transformation keywords (scale, rotate, translate) are out of
order from what I described in a previous message reply, this is so you can
center onto <0,0,0> first and change from then on with better control. How
you or others might go about doing this is of personal preference though,
since you could also try and position the image based on its lower-left
corner being at <0,0,0>. Depends on how you like to think of screen
coordinates and resolutions.

Anyway... you could also take a look at a great example scene file, already
inlcuded with POV-Ray, called screen.pov. It can be found in the
POV-Ray\scenes\incdemo folder. That allows you to place things within the
camera view while other things are placed in the scene. It isn't simple for
the "newbie" to figure out how to change, if you aren't adept at this sort
of stuff, but you could be okay with it so I mention that as another
possibility.

Let me point out that when you ask different questions please ask everyone
(not just me, I'm not always here even if it looks like it now. ha ha) with
a new message post or else these tend to get lost in the old message
threads. Especially since the more people that see the questions the better
your answers can be.

If you manage to get any renderings or drawings done you would benefit
greatly by posting them to the povray.binaries.images group. That way
everyone can see what is really being attempted. Hopefully I've helped a
little.

Bob H.


Post a reply to this message

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