POLYSHADE-like object graphics? [message #33204] |
Thu, 12 December 2002 04:37  |
Sebastian Loebbert
Messages: 12 Registered: September 2002
|
Junior Member |
|
|
Hi all,
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?
Thanks for all tips,
Sebastian
|
|
|
Re: polyshade [message #35785 is a reply to message #33204] |
Thu, 17 July 2003 08:17  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Marc Schellens writes:
> Of course you can use an IDLgrPolygon, but how to do it in direct graphics?
Direct graphics are so...I don't know...1970's.
*Everything* should be done in object graphics.
Cheers,
David
P.S. Opinions expressed in this article are not the author's
true opinions. They are sardonic (I *knew* this word would
come in handy some day!) and reflect the author's worried
view of where IDL is headed these days. :-(
--
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
|
|
|
Re: polyshade [message #35786 is a reply to message #33204] |
Thu, 17 July 2003 07:36  |
marc schellens[1]
Messages: 183 Registered: January 2000
|
Senior Member |
|
|
>> is there a way to get out a mesh from the polyshade function?
>> Or another function/procedure which does this?
>
>
> I don't know what you are starting with here, but I've
> written an article about computing a shaded polygon from
> a series of ROIs (MRI image slices, in this case). The
> mesh was constructed with the ComputeMesh method of
> an IDLgrROIGroup object. Might give you some ideas
> anyway:
>
> http://www.dfanning.com/graphics_tips/mesh.html
I think I didn't express clear what I meant:
How I can get an image, showing a mesh instead of a shaded surface
from the polyshade or any other subroutine?
Of course you can use an IDLgrPolygon, but how to do it in direct graphics?
thanks,
marc
|
|
|
Re: polyshade [message #35787 is a reply to message #33204] |
Thu, 17 July 2003 06:06  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Marc Schellens writes:
> is there a way to get out a mesh from the polyshade function?
> Or another function/procedure which does this?
I don't know what you are starting with here, but I've
written an article about computing a shaded polygon from
a series of ROIs (MRI image slices, in this case). The
mesh was constructed with the ComputeMesh method of
an IDLgrROIGroup object. Might give you some ideas
anyway:
http://www.dfanning.com/graphics_tips/mesh.html
Cheers,
David
--
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
|
|
|