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

Home » Public Forums » archive » Re: Another Long Day Compliments of 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: Another Long Day Compliments of Object Graphics [message #21213 is a reply to message #21211] Wed, 16 August 2000 16:05 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.1404bdb94cb56014989bd6@news.frii.com...

> Basically, I wanted to put the color bar image into
> a polygon, since you can rotate polygons in 3D space,
> but you can't rotate images. (There is no practical
> purpose in rotating a color bar in 3D space that I know
> of, but I always find I learn as much about IDL
> by doing these silly little things as I learn by
> doing something I'm likely to get paid for.)

Plain IDLgrImages are "funny" in other ways. In particular, where images are
involved, visibility is controlled by drawing order, not vertical position.
So moving your colour bar into some other sort of container is a good idea.

> So, it's a simple matter of making the image a texture
> map of the polygon.

When I first tried texture maps I got funny results (odd pixel shapes &
sizes, I think) and reported it as a bug. The answer from RSI tech support
was, "Make sure texture map image sizes are powers of 2." -- Just a warning.

Another atom you could base your colour bar on is an IDLgrPolygon coloured
via VERT_COLORS. That should keep you busy for Another Long Day.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: xplot with overplotting
Next Topic: Re: Scaling atoms & axes in object graphics

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

Current Time: Sat Oct 11 21:58:51 PDT 2025

Total time taken to generate the page: 1.60079 seconds