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

Home » Public Forums » archive » SHADE_VOLUME, POLYSHADE and SHADES keyword
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
SHADE_VOLUME, POLYSHADE and SHADES keyword [message #52991] Wed, 14 March 2007 19:25
dktr.ted is currently offline  dktr.ted
Messages: 17
Registered: November 2006
Junior Member
Hi all,

I'm trying to use SHADE_VOLUME and POLYSHADE to render a set of
objects depicted as groups of pixels with value 255 in a 3D byte
array. Each object consists of a distinct set of pixels and has an
associated color. I can render this using the standard SHADE_VOLUME
and POLYSHADE calls, but get a [nicely lighted and shaded] grayscale
image. I thought I could use the SHADES keyword to mark each pixel
with its associated color index in the SHADE_VOLUME call, and then use
the generated shades variable as input to POLYSHADE to get the
corresponding rendered image. This works, but it doesn't use any
lighting model ... the color of a rendered surface is given
exclusively by the input shades and not weighted by the lighting as
given by SET_SHADING. What I'd like is a sort of blend between using
the input SHADES and using the lighting model. After much searching
on the web, it seems this behavior is by design, so perhaps someone
has a nice kludge to do this?

Thanks in advance,

Ted
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Material properties for object graphics
Next Topic: the problem of PERROR in MPFITFUN

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

Current Time: Wed Oct 08 18:40:36 PDT 2025

Total time taken to generate the page: 0.00411 seconds