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

Home » Public Forums » archive » Re: texture_coord
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: texture_coord [message #27685 is a reply to message #27683] Sun, 04 November 2001 08:53 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Karl Schultz (kschultz@researchsystems.com) writes:

> I sent David an updated program that fixes the
> problem by fully specifying the texture coordinates.
> It wasn't so bad.

Indeed. I made a couple of modifications to the
program to make it more general. And I found
that a one-pixel border (instead of two) around the
image was enough to be able to specify a surface color.
(I worry whether this might be OpenGL-implementation
specific, but it definitely works on my machine
in every instance I've tried it.)

You can find the final program here:

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

Try this:

IDL> Texture_Surface

Or, to position the image on the surface and color
the rest of the surface a light gray color:

IDL> Texture_Surface, Position=[10, 5, 35, 30], $
BorderColor=[185, 185, 185]

An article that explains the details of this can be
found here:

http://www.dfanning.com/ographics_tips/imgtex.html

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: _Ref_Extra : BUG? (in Win2K 55b) corrected test file
Next Topic: Homogenity of an area

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

Current Time: Sat Oct 11 05:39:07 PDT 2025

Total time taken to generate the page: 1.28003 seconds