POV-Ray : Newsgroups : povray.general : I need some help.(i am a beginner) Server Time
26 Dec 2024 13:26:25 EST (-0500)
  I need some help.(i am a beginner) (Message 1 to 2 of 2)  
From: Jong
Subject: I need some help.(i am a beginner)
Date: 15 Feb 2006 15:00:01
Message: <web.43f387afbf58bb38925ff2920@news.povray.org>
I am trying to make my own Ray-tracing with Phong shading, but there are
some problems that i am having now.

Question) phong shadings need ambient, diffuse and specular but what i have
..obj doen't have any those information. what should i do?

*the other questions will be on soon..
Thank you..


Post a reply to this message

From: Chris B
Subject: Re: I need some help.(i am a beginner)
Date: 15 Feb 2006 18:04:16
Message: <43f3b370$1@news.povray.org>
"Jong" <jon### [at] gmailcom> wrote in message 
news:web.43f387afbf58bb38925ff2920@news.povray.org...
>
> I am trying to make my own Ray-tracing with Phong shading, but there are
> some problems that i am having now.
>
> Question) phong shadings need ambient, diffuse and specular but what i 
> have
> ..obj doen't have any those information. what should i do?
>
> *the other questions will be on soon..
> Thank you..
>

Welcome Jong,

I assume you mean you're making your own scene in POV-Ray.

You don't need to specify ambient, diffuse or specular to be able to specify 
phong.
The following example defines two spheres, one with a phong highlight and 
one without.
You can also set a phong size. See 3.5.3.3.1 'Phong Highlights' in the help.

There is a 'povray.newusers' news group that you may be more comfortable 
posting your 'other' questions in.

Regards,
Chris B.

camera {location <0,0,-4> look_at <0,0,0>}
light_source{<3,10,-10> rgb 1}

#sphere {0,1
  texture {
    pigment {rgb <1,0,0>}
    finish {phong 0.5}
  }
  translate x
}

#sphere {0,1
  texture {
    pigment {rgb <1,0,0>}
  }
  translate -x
}


Post a reply to this message

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