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

Home » Public Forums » archive » Issue with displaying 3D using surface()
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: Issue with displaying 3D using surface() [message #91434 is a reply to message #91433] Tue, 14 July 2015 12:01 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Tuesday, July 14, 2015 at 8:17:11 PM UTC+2, Puneeth Shankar wrote:
> Hi Group,
> Please notice --> https://www.dropbox.com/s/79gqsywr66j3ftp/issue.PNG?dl=0
>
> Context:
> 1).Both DSM and texture image's arrays were obtained by reading tiff files (yup I've rotated the tiff image accordingly[using ROTATE()], no issues with that)
> 2).Also tried scaling the texture image using BYTSCL (no use!)
> 3) I Did play with Z range
>
> I require :
> * A 3D surface that looks like the left image(refer URL)
> * An output of 300X300 is sufficient !! The large sized, high resolution graphic is very slow. Would someone happen to know how to bring down the resolution
>
> Please let me know your thoughts on this.
>
> Regards,
> Puneeth

Hi,
I think your experiencing an error that I've seen, but I couldn't pin down. It appears as if the left side of the surface window is obstructed by something white. If you move your surface around, you should be able to move it behind this white region.
In my case this happens even with the standard example from surface:

; Read in a 2D array of surface heights
dir = FILEPATH('',SUBDIR=['examples', 'data'])
z = READ_BINARY(dir+'elevbin.dat', DATA_DIMS=[64,64])

; Read in a texture image to overlay
READ_JPEG, dir+'elev_t.jpg', image
s = SURFACE(z, TEXTURE_IMAGE=image, YSTYLE=1)

If I try this, I get a surface cut along the middle vertical line. The right side is visible and the left side is hidden...

If I move the surface to the right, I can view all of it.

I had this error come and go, and I have no idea at the moment how to make it go...

But at least you could try to make a rectangular window, something like:

w = window(dimensions=[1200,400])

then plot with

s = SURFACE(z, TEXTURE_IMAGE=image, YSTYLE=1, current=w)

and then move the surface with this command:

s.position = [0.75,0.5]

That should make it visible...

It's not a solution, but I can't come up with nothing better at the moment. Please let me know if you have a "real" solution.

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Compare satellite images
Next Topic: Setting the zoom_base property in IDLgrWindow

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

Current Time: Wed Oct 08 11:41:22 PDT 2025

Total time taken to generate the page: 0.00389 seconds