POV-Ray : Newsgroups : povray.newusers : 2D rendering : Re: 2D rendering Server Time
30 Jul 2024 02:25:23 EDT (-0400)
  Re: 2D rendering  
From: dan B hentschel
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.