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

Home » Public Forums » archive » Re: Is it possible to use wire mesh and display the surface as a solid at the same time?
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
Re: Is it possible to use wire mesh and display the surface as a solid at the same time? [message #50695] Thu, 12 October 2006 11:59
yy is currently offline  yy
Messages: 14
Registered: September 2006
Junior Member
I tried the second way you suggested. It works pretty well! Thank you!

Jingyi
David Fanning wrote:
> yy writes:
>
>> I'm trying to use IDLgrSurface to map a colored image onto an
>> elevation data set. I want to show both the wire mesh such that
>> I can see the curvature of the surface and the solid image data.
>> In other words, I want to use both the image when STYLE=1
>> and the image when STYLE=2 as TEXTURE_MAP. But an
>> IDLgrSurface object cannot have two STYLE properties. How
>> can I realize that?
>
> Just as a quick test, I took TEXTURE_SURFACE from my
> web page, and added another surface to the model (I
> called it thatSurface). I performed the same scaling
> to thatSurface that I did to thisSurface. I also set
> the keyword DEPTH_TEST_DISABLE on the model, and I
> added thatSurface to the model AFTER thisSurface.
>
> It worked great, although the grid was a little too fine to
> see the texture very well. Another way I could have done
> this would be to combine a texture image and "grid" image
> with some kind of image blending (see IMAGE_BLEND on my
> web page). Then use this blended image as the texture
> map of the surface. This would allow me to "dial in" the
> grid, as I needed.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Is it possible to use wire mesh and display the surface as a solid at the same time? [message #50715 is a reply to message #50695] Wed, 11 October 2006 20:33 Go to previous message
Jim Pendleton is currently offline  Jim Pendleton
Messages: 13
Registered: July 2001
Junior Member
> "David Fanning" <news@dfanning.com> wrote in message
> news:MPG.1f974239bebde4d2989d27@news.frii.com...
>> yy writes:
>>
>> I'm trying to use IDLgrSurface to map a colored image onto an
>> elevation data set. I want to show both the wire mesh such that
>> I can see the curvature of the surface and the solid image data.
...
>
> Just as a quick test, I took TEXTURE_SURFACE from my
> web page, and added another surface to the model (I
> called it thatSurface).
...

And if you use the SHARE_DATA keyword on the second IDLgrSurface's
creation, specifying the reference to the first IDLgrSurface, you can
improve
your memory efficiency, especially if you're working with a large mesh.

Jim P.
Re: Is it possible to use wire mesh and display the surface as a solid at the same time? [message #50720 is a reply to message #50715] Wed, 11 October 2006 18:03 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
yy writes:

> I'm trying to use IDLgrSurface to map a colored image onto an
> elevation data set. I want to show both the wire mesh such that
> I can see the curvature of the surface and the solid image data.
> In other words, I want to use both the image when STYLE=1
> and the image when STYLE=2 as TEXTURE_MAP. But an
> IDLgrSurface object cannot have two STYLE properties. How
> can I realize that?

Just as a quick test, I took TEXTURE_SURFACE from my
web page, and added another surface to the model (I
called it thatSurface). I performed the same scaling
to thatSurface that I did to thisSurface. I also set
the keyword DEPTH_TEST_DISABLE on the model, and I
added thatSurface to the model AFTER thisSurface.

It worked great, although the grid was a little too fine to
see the texture very well. Another way I could have done
this would be to combine a texture image and "grid" image
with some kind of image blending (see IMAGE_BLEND on my
web page). Then use this blended image as the texture
map of the surface. This would allow me to "dial in" the
grid, as I needed.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Map parameters for Eta/NAM model
Next Topic: Re: Map parameters for Eta/NAM model

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

Current Time: Wed Oct 08 15:37:42 PDT 2025

Total time taken to generate the page: 0.00594 seconds