POV-Ray : Newsgroups : povray.newusers : 2D rendering Server Time
1 Nov 2024 23:14:43 EDT (-0400)
  2D rendering (Message 1 to 5 of 5)  
From: David Robinson
Subject: 2D rendering
Date: 26 Oct 2004 09:12:14
Message: <417e4d2e$1@news.povray.org>
Hi everyone,

Very quick question. Is there a way to make an object render with no shadows
or highlights? Sort of a pseudo-2D output.

I got the right output with a test model by setting transparancy to 1, but
this won't work on the actual model since there are overlaps. Of course,
diffuse=0 gives a jet black object.

Any ideas?

Thanks a lot,

David


Post a reply to this message

From: Le Forgeron
Subject: Re: 2D rendering
Date: 26 Oct 2004 10:30:27
Message: <Xns958EA7EC7FBC5jgrimbertmeandmyself@203.29.75.35>


> Hi everyone,
> 
> Very quick question. Is there a way to make an object render with no
> shadows or highlights? Sort of a pseudo-2D output.

Well, that's exactly what no_shadow is for!
See your usual help file :-)


-- 




l'habillement, les chaussures que le maquillage et les accessoires.


Post a reply to this message

From: JWV
Subject: Re: 2D rendering
Date: 26 Oct 2004 10:45:36
Message: <417e6310@news.povray.org>
Hi,

finish{ambient 1} will work.

O, and have a look at the orthographic camera if you want 2D pictures.


JWV

"David Robinson" <tdf### [at] ezrscom> wrote in message
news:417e4d2e$1@news.povray.org...
> Hi everyone,
>
> Very quick question. Is there a way to make an object render with no
shadows
> or highlights? Sort of a pseudo-2D output.
>
> I got the right output with a test model by setting transparancy to 1, but
> this won't work on the actual model since there are overlaps. Of course,
> diffuse=0 gives a jet black object.
>
> Any ideas?
>
> Thanks a lot,
>
> David
>
>


Post a reply to this message

From: David Robinson
Subject: Re: 2D rendering
Date: 26 Oct 2004 10:47:30
Message: <417e6382$1@news.povray.org>
"Le Forgeron" <jgr### [at] freelocalhost> wrote in message
news:Xns958EA7EC7FBC5jgrimbertmeandmyself@203.29.75.35...

>
> > Hi everyone,
> >
> > Very quick question. Is there a way to make an object render with no
> > shadows or highlights? Sort of a pseudo-2D output.
>
> Well, that's exactly what no_shadow is for!
> See your usual help file :-)

Sounds perfect :) But I can't seem to get it to work.

I'm actually just using POV for rendering a mesh that has been exported to a
.inc file. I have a .pov file that includes:

---
// Object2
#declare Object2Material = material {
texture {
  pigment { color rgbf <0, 0.5, 0, 0> }
  finish  { ambient 1 diffuse 1 }
  }
}
#declare Object2 = object {
   #include "helix_curve2.inc"
}
object { Object2 material { Object2Material }}
---

As a n00b I see three places to put no_shadow, according to the help file.
After finish{}, after #include..... and after object { Object2...

I've tried all three and it doesn't seem to affect anything.

Any ideas?

Thanks again,

David


Post a reply to this message

From: dan B hentschel
Subject: Re: 2D rendering
Date: 26 Oct 2004 10:55:00
Message: <web.417e643a3842a4e9a3fcf12a0@news.povray.org>
Le Forgeron <jgr### [at] freelocalhost> wrote:

>
> > Hi everyone,
> >
> > Very quick question. Is there a way to make an object render with no
> > shadows or highlights? Sort of a pseudo-2D output.


This should give you what you want:

#include "colors.inc"

global_settings {
    radiosity {}
}

camera {
    location <0, 0, -10>
    look_at 0
}

sphere {
    0, 2
    pigment { Red }
    finish {
        ambient 1
        diffuse 0
    }
    translate <-3, 2, 0>
}

box {
    0, 2
    pigment { Blue }
    finish {
        ambient 1
        diffuse 0
    }
    translate <4, 1, 0>
}

plane  {
    z, 5
    pigment { White }
    finish {
        ambient 1
        diffuse 0
    }
}

 - dan B hentschel


Post a reply to this message

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