comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: POLYSHADE-like object graphics?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: POLYSHADE-like object graphics? [message #33181] Fri, 13 December 2002 08:30
Sebastian Loebbert is currently offline  Sebastian Loebbert
Messages: 12
Registered: September 2002
Junior Member
Hi David,

thanks for the tip.
Just in case somebody will run across this problem in the future: Together
with some old postings on this ng I found a usable "standard" setting:
a) Set COLOR=[255,255,255] in the IDLgrPolygon(s)
b) Use two lights, one ambient and one directional:
ambLgt = OBJ_NEW('IDLgrLight', TYPE=0, INTENSITY=0.2)
dirLgt = OBJ_NEW('IDLgrLight' $
, DIRECTION=[-0.5,-0.5,-0.5] $
, TYPE=2 $
,LOCATION=[0.5,0.5,2.0]$
,INTENSITY=0.7 $
)
(the polygons coordinates have been transformed into a unit cube
centered at [0,0,0] using coordinate convolution)

c) Put both lights into a non-rotating model.

Best regards,

Sebastian
Re: POLYSHADE-like object graphics? [message #33203 is a reply to message #33181] Thu, 12 December 2002 06:14 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sebastian Loebbert (sebaaihb@peach.zrz.TU-Berlin.DE) writes:

> I have a set of vertices and polygons created by SHADE_VOLUME.
> If I simply display them using POLYSHADE, I get a nicely shaded surface.
>
> I tried to display the same polygons and vertices using object graphics
> (created a polygon, added directional light) but the surface looks rather
> flat.
> I played around with the lights, but the image didn't improve much.
> Is there any way to know what lights POLYSHADE uses?
> Is there something like a "default setting" for IDLgrPolygon that mimicks
> POLYSHADE?

Have a look at the lights in FSC_SURFACE.

http://www.dfanning.com/programs/fsc_surface.pro

I paid a lighting engineer $1000 to design that lighting
system! :-)

You need some combination of ambient, directional, and
fill lighting to get the scene to light up correctly.
Most people forget the ambient light when they first
start working with this business.

Cheers,

David

P.S. Let's just say that every scientist who ignored
the theater arts in college is probably regretting it
now.

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Does IDL has histogram matching function?
Next Topic: Re: Large widget identifiers

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:52:55 PDT 2025

Total time taken to generate the page: 0.00426 seconds