POV-Ray : Newsgroups : povray.newusers : Logo Placement Server Time
21 Dec 2024 12:48:10 EST (-0500)
  Logo Placement (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: TSDLL
Subject: Logo Placement
Date: 3 Feb 2015 05:20:00
Message: <web.54d0a0796fec17dabd5d85090@news.povray.org>
Hi,

Sorry if this is a questions that's been answered elsewhere, is there a way to
set povray up so that it will automatically place a logo on the output images?

We don't have any decent image editing software, so if povray automatically
dropped it in, it would be better than using MS Paint.

Regards,

Tom


Post a reply to this message

From: Stephen
Subject: Re: Logo Placement
Date: 3 Feb 2015 06:14:18
Message: <54d0ad8a@news.povray.org>
On 03/02/2015 10:18, TSDLL wrote:
> Hi,
>
> Sorry if this is a questions that's been answered elsewhere, is there a way to
> set povray up so that it will automatically place a logo on the output images?
>
> We don't have any decent image editing software, so if povray automatically
> dropped it in, it would be better than using MS Paint.
>

Hi Tom and welcome,
Yes there is a way to do that.
There is an include file called screen.inc you should use.
The documentation is here:


http://www.povray.org/documentation/view/3.6.1/495/


-- 

Regards
     Stephen


Post a reply to this message

From: TSDLL
Subject: Re: Logo Placement
Date: 3 Feb 2015 09:35:01
Message: <web.54d0db9742939c78bd5d85090@news.povray.org>
Stephen <mca### [at] aolcom> wrote:
> On 03/02/2015 10:18, TSDLL wrote:
> > Hi,
> >
> > Sorry if this is a questions that's been answered elsewhere, is there a way to
> > set povray up so that it will automatically place a logo on the output images?
> >
> > We don't have any decent image editing software, so if povray automatically
> > dropped it in, it would be better than using MS Paint.
> >
>
> Hi Tom and welcome,
> Yes there is a way to do that.
> There is an include file called screen.inc you should use.
> The documentation is here:
>
>
> http://www.povray.org/documentation/view/3.6.1/495/
>
>
> --
>
> Regards
>      Stephen

Thanks Stephen,

Apologies again but I'm finding that hard to follow.  If I wanted to place the
image "myimage" in the bottom left of the sceen would I just copy this code into
the povray window?

#declare myimage=
texture {
   pigment {
      image_map {
         png "myimage.png" once
         transmit 0, 0.8
         transmit 1, 0.8
         transmit 2, 0.8
         transmit 3, 0.8
         transmit 4, 0.4
         transmit 5, 0.4
      }
   }
   finish {ambient 1 diffuse 0}
}

Screen_Object ( myimage, <1,0>, <0.04,0.02>, true, 0.01 )


Post a reply to this message

From: Stephen
Subject: Re: Logo Placement
Date: 3 Feb 2015 13:16:38
Message: <54d11086$1@news.povray.org>
On 03/02/2015 14:30, TSDLL wrote:
> Apologies again but I'm finding that hard to follow.  If I wanted to place the
> image "myimage" in the bottom left of the sceen would I just copy this code into
> the povray window?
>

To be honest I'm not the best person to answer this. I would have to 
experiment and I am not near my PC atm.

There is an example file called screen.pov You could try modifying a 
copy of that to see the effect.

You need to allocate myimage to an object (my_object) then use that in 
Screen_Object

#declare my_object =
sphere {
0.0, 1.000000
texture{ myimage }
}


Screen_Object ( my_object, <1,0>, <0.04,0.02>, true, 0.01 )

This will give you a sphere with your image wrapped around it if you use 
map_type 1


> #declare myimage=
> texture {
>     pigment {
>        image_map {
>           png "myimage.png" once
>           transmit 0, 0.8
>           transmit 1, 0.8
>           transmit 2, 0.8
>           transmit 3, 0.8
>           transmit 4, 0.4
>           transmit 5, 0.4
>        }
>     }
>     finish {ambient 1 diffuse 0}
> }
>
> Screen_Object ( myimage, <1,0>, <0.04,0.02>, true, 0.01 )


-- 

Regards
     Stephen


Post a reply to this message

From: Doctor John
Subject: Re: Logo Placement
Date: 3 Feb 2015 13:46:55
Message: <54d1179f$1@news.povray.org>
On 03/02/2015 14:30, TSDLL wrote:
>> Apologies again but I'm finding that hard to follow. 

There's a good example in scenes/incdemo. It's called screen.pov
Reading it and playing with it should give a few pointers

John
-- 
Protect the Earth
It was not given to you by your parents
You hold it in trust for your children


Post a reply to this message

From: Kenneth
Subject: Re: Logo Placement
Date: 6 Feb 2015 07:50:01
Message: <web.54d4b6af42939c78f644696d0@news.povray.org>
"TSDLL" <nomail@nomail> wrote:
> Hi,
>
> ...is there a way to set povray up so that it will automatically place
> a logo on the output images?
>

As mentioned, screen.inc is the thing to use. Unfortunately, it's a bit
difficult to understand, IMO. But a simple scene will demonstrate how it works,
at least for placing a logo on your rendered images:

//--------
#default{finish{ambient .3 diffuse .7}}

light_source {
  0*x
  color rgb <1,1,1>
  translate <-20, 40, -20>
}

// some background objects
plane{y,0
 pigment{
  average
  pigment_map{
   [1 cells scale 4]
   [3 rgb 1]
   }
  }
 }

box{0,1
scale 3
pigment{rgb <1,.7,.2>}
rotate 30*y
translate <15,0,16>
}

cylinder{0,12*y,1 pigment{rgb <1,.2,.2>} translate <-2,0,15>}

sphere{0,3 pigment{gradient y sine_wave} translate <-18,3,26>}


#include "screen.inc"

// First is the macro to set up the special camera (which is actually
// inside screen.inc.) This camera takes the place of the usual one in your
// scene.(By the way, this particular macro is only one of several
// choices you can use for camera set-up.)
// Set_Camera(Location, LookAt, Angle)

Set_Camera(<-33,14,-8>,<5,-4,30>,67) // the macro is already defined
// inside screen.inc

// Another macro there, optional, can easily rotate the camera around
// its own lens axis.
// #macro Set_Camera_Sky(Sky)

Set_Camera_Sky(<-.4,1,0>) // the default 'sky' vector in POV-Ray is <0,1,0>
// or simply y.

// Here's the macro to apply your logo image. The image needs an alpha
// channel transparency mask so your scene is visible through it. In
// screen.inc, the image is applied to a plane created in front
// of the camera, and always remains perpendicular to the lens axis.
//#macro Screen_Plane (Texture, Scaling, BLCorner, TRCorner)

Screen_Plane (
pigment{image_map{png "your_logo_image.png"}},
1,
<.05,.05,.05>, <.3,.3,.3>
)

// Note: SCALING  is not very intuitive at all; I leave it at 1. The actual
// 'scaling' of your image_map can be done by varying the TRCorner value(!)


Post a reply to this message

From: Kenneth
Subject: Re: Logo Placement
Date: 6 Feb 2015 08:20:04
Message: <web.54d4bedd42939c78f644696d0@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:

>
> // Here's the macro to apply your logo image. The image needs an alpha
> // channel transparency mask so your scene is visible through it...

Actually, that's not absolutely necessary. A typical non-masked image would work
OK (like a jpeg image), since it's being scaled down to only a small portion of
the output render anyway. The rest of your scene will show up fine.

If you don't even *have* an image to use, you can still get a logo-- by using
POV-Ray's 'text' objects, and another macro in screen.inc called

#macro Screen_Object (Object, Position, Spacing, Confine, Scaling)

It can place actual objects in the scene, and they behave just like the logo
image example.


Post a reply to this message

From: MichaelJF
Subject: Re: Logo Placement
Date: 6 Feb 2015 13:40:00
Message: <web.54d50a6e42939c784cd280c20@news.povray.org>
"TSDLL" <nomail@nomail> wrote:
> Hi,
>
> Sorry if this is a questions that's been answered elsewhere, is there a way to
> set povray up so that it will automatically place a logo on the output images?
>
> We don't have any decent image editing software, so if povray automatically
> dropped it in, it would be better than using MS Paint.
>
> Regards,
>
> Tom

screen.inc is a bit difficult to use since you have to define the camera with a
macro provided by screen.inc. In an older thread I proposed an other solution.

http://news.povray.org/povray.general/thread/%3Cweb.52d64acd64216e2b21263ef70@news.povray.org%3E/


Best regards,
Michael


Post a reply to this message

From: Kenneth
Subject: Re: Logo Placement
Date: 6 Feb 2015 18:05:00
Message: <web.54d5479542939c78f644696d0@news.povray.org>
> screen.inc is a bit difficult to use since you have to define the camera with a
> macro provided by screen.inc. In an older thread I proposed an other solution.
>
>
http://news.povray.org/povray.general/thread/%3Cweb.52d64acd64216e2b21263ef70@news.povray.org%3E/
>

Could you repost that link? It seems to be incomplete or something, at least on
my system.  I'd like to take a look at your idea.


Post a reply to this message

From: MichaelJF
Subject: Re: Logo Placement
Date: 7 Feb 2015 13:45:00
Message: <web.54d65c1242939c788bbaf9d50@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> > screen.inc is a bit difficult to use since you have to define the camera with a
> > macro provided by screen.inc. In an older thread I proposed an other solution.
> >
> >
http://news.povray.org/povray.general/thread/%3Cweb.52d64acd64216e2b21263ef70@news.povray.org%3E/
> >
>
> Could you repost that link? It seems to be incomplete or something, at least on
> my system.  I'd like to take a look at your idea.

Sorry, it is the first time that a link to the pov newsgroups doesn't work.

Here it is again:

http://news.povray.org/povray.general/thread/%3Cweb.52d64acd64216e2b21263ef70@news.povray.org%3E/

But I fear I will only repeat the mess. The discussion can be found at
povray.general. The user "YoM" asked for "Keep the text oriented toward the
camera" at January 15th 2014.

Best regards,
Michael


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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