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

Home » Public Forums » archive » Re: Elevation Shading in Object Graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Elevation Shading in Object Graphics [message #13346 is a reply to message #13341] Mon, 09 November 1998 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Mirko Vukovic (mirko_vukovic@notes.mrc.sony.com) writes:

> Is it me, or the direct graphics plot in David's examples
> looks much better than the object graphics. Could some additional
> keyword produce a better result?
>
> This is just a bit of teasing from someone that did not venture into
> object grahpics as yet.

Teasing or not, I do notice a difference. I can actually
get the solid shaded surface to look a lot better (more like
direct graphics) if I turn shading OFF and use a Texture Map
(an image object draped onto the surface) made from an image
that is very much larger than the actual data. The relevant
code might look like this:

thisPalette=Obj_New('IDLgrPalette')
thisPalette->LoadCT, 5
s = Size(data, /Dimensions)
bigImage = BytScl(Rebin(data, s[0]*10, s[1]*10))
thisImage = OBJ_NEW('IDLgrImage', bigImage, Palette=thisPalette)
thisSurface = OBJ_NEW('IDLgrSurface', data, x, y, Style=2, $
Shading=0, Texture_Map=thisImage)

The only reason I don't like this is that it doesn't
shade the wire frame surface, just the solid surface.

But, perhaps, another reason to write my own Shade
object that uses direct graphics to display shaded
surfaces. :-)

Cheers,

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: using mpfit
Next Topic: Re: Running IDL programs from CGI/Perl on windows NT

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

Current Time: Fri Oct 10 04:49:05 PDT 2025

Total time taken to generate the page: 0.40128 seconds