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

Home » Public Forums » archive » Re: Depth visibility with Object Graphics !!!
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: Depth visibility with Object Graphics !!! [message #39462] Mon, 24 May 2004 23:29 Go to next message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
Well, thanks for your help, but that's not really i mean (perhaps it is
due to my bad english, sorry).


I have a model inside which i put an IDLgrImage as a map of a portion of
Spain. Also i put an IDLgrPolyline to make seleccions (as a line) over
the map. My problem is that the line is never seen because i put the map
int the model after put the line, it is the map overlaps the line.


Bye and thaks.



Ben Tupper wrote:
> Antonio Santiago wrote:
>
>> Hi,
>>
>> i am working with Object Grpahics and i hace a problem :)
>>
>> I have put on a model two objects. Firts, i must put an IDLgrPolyline
>> betwen two points (a line) that i can modify to select one trajectory.
>> Second i put an IDLgrImage.
>> My problem is that image is drawing over the polyline. I play with
>> DEPTH_TEST_DISABLE and DEPT_TEST_FUNCTION, but always the image is
>> drawing over the polyline.
>>
>
>>
>
> Hi,
>
> IDL renders images at Z=0 always. To get around this you have to map
> the image as a texture map onto a polygon; then set the Z values for the
> polygon to something 'further' away than your trajectory. There is an
> example here...
>
> http://tinyurl.com/3h5aw
>
> Ben
Re: Depth visibility with Object Graphics !!! [message #39476 is a reply to message #39462] Mon, 24 May 2004 11:51 Go to previous messageGo to next message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Antonio Santiago wrote:
> Hi,
>
> i am working with Object Grpahics and i hace a problem :)
>
> I have put on a model two objects. Firts, i must put an IDLgrPolyline
> betwen two points (a line) that i can modify to select one trajectory.
> Second i put an IDLgrImage.
> My problem is that image is drawing over the polyline. I play with
> DEPTH_TEST_DISABLE and DEPT_TEST_FUNCTION, but always the image is
> drawing over the polyline.
>

>

Hi,

IDL renders images at Z=0 always. To get around this you have to map
the image as a texture map onto a polygon; then set the Z values for the
polygon to something 'further' away than your trajectory. There is an
example here...

http://tinyurl.com/3h5aw

Ben
Re: Depth visibility with Object Graphics !!! [message #39537 is a reply to message #39462] Tue, 25 May 2004 10:54 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Antonio Santiago" wrote...
> Well, thanks for your help, but that's not really i mean (perhaps it is
> due to my bad english, sorry).

You haven't convinced me that what Ben is talking about isn't what you mean.
You can do it without texture mapping your image but everything is going to
be in image coordinates. Make sure your line coordinates are appropriate.


> I have a model inside which i put an IDLgrImage as a map of a portion of
> Spain. Also i put an IDLgrPolyline to make seleccions (as a line) over
> the map.

Where are you setting the DEPTH_TEST_DISABLE or DEPTH_TEST_FUNCTION
keywords? If both of these atoms are in a single model setting these
keywords for the model will have no effect. You will need to set the
DEPTH_TEST_FUNCTION keyword of your polyline to "always pass" (I think it is
8 but don't have IDL in front of me).

> My problem is that the line is never seen because i put the map
> int the model after put the line, it is the map overlaps the line.

Assuming you aren't using alpha blending the order in which you add your
atoms to the model shouldn't matter as long as they have different Z values.
Remember, images that aren't texture mapped are rendered at Z=0. Your line
must have +Z values.

If you hide the image, can you see the line?


-Rick

>
> Ben Tupper wrote:
>> Antonio Santiago wrote:
>>
>>> Hi,
>>>
>>> i am working with Object Grpahics and i hace a problem :)
>>>
>>> I have put on a model two objects. Firts, i must put an IDLgrPolyline
>>> betwen two points (a line) that i can modify to select one trajectory.
>>> Second i put an IDLgrImage.
>>> My problem is that image is drawing over the polyline. I play with
>>> DEPTH_TEST_DISABLE and DEPT_TEST_FUNCTION, but always the image is
>>> drawing over the polyline.
>>>
>>
>>>
>>
>> Hi,
>>
>> IDL renders images at Z=0 always. To get around this you have to map
>> the image as a texture map onto a polygon; then set the Z values for the
>> polygon to something 'further' away than your trajectory. There is an
>> example here...
>>
>> http://tinyurl.com/3h5aw
>>
>> Ben
>
Re: Depth visibility with Object Graphics !!! [message #39550 is a reply to message #39462] Tue, 25 May 2004 05:37 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Antonio Santiago wrote:
> Well, thanks for your help, but that's not really i mean (perhaps it is
> due to my bad english, sorry).
>
>
> I have a model inside which i put an IDLgrImage as a map of a portion of
> Spain. Also i put an IDLgrPolyline to make seleccions (as a line) over
> the map. My problem is that the line is never seen because i put the map
> int the model after put the line, it is the map overlaps the line.
>
>

Your English is fine.

Oh, it's a flat map map; you must be working in 2d only. Perhaps you
could add a Z > 0 value to your polyline. You might try reversing the
rendering order (image first then ployline) but it might not work as
well as adding a Z value to your polyline. Then the polyline will be
rendered "above" the image.

Ben
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: About the bits reserved for float variable
Next Topic: Envi Query

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

Current Time: Sun Oct 12 00:02:11 PDT 2025

Total time taken to generate the page: 0.01361 seconds