Re: [visad] Strange rendering depending on axis range

Hello Tomas,

Its really nice to hear that you are trying to use VisAD in new domains.
Well I just wanted to know if the VisadTest.java file why you are disabling texture in
the GraphicsModeControl by doing this:
graphicsModeControl.setTextureEnable(false);
Is there any special motive/reason behind that?

I tried to display it as texture for the stated xMin, xMax values shown in the snapshots that are sent with the mail.
The result is coming same as expected. You can just try at you end by doing:
graphicsModeControl.setTextureEnable(true);
Actually under the hood, if you disable texture, it uses geometry to render the data.
But if you enable the texture it use Texture to display the data.


regards
Ghansham


On 05/19/2012 12:03 PM, visad-request@xxxxxxxxxxxxxxxx wrote:
Send visad mailing list submissions to
        visad@xxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        http://mailman.unidata.ucar.edu/mailman/listinfo/visad
or, via email, send a message with subject or body 'help' to
        visad-request@xxxxxxxxxxxxxxxx

You can reach the person managing the list at
        visad-owner@xxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of visad digest..."


Today's Topics:

    1. Strange rendering depending on axis range (Tomas Pluskal)


----------------------------------------------------------------------

Message: 1
Date: Sat, 19 May 2012 06:33:22 +0000
From: Tomas Pluskal<pluskal@xxxxxxx>
To: "visad@xxxxxxxxxxxxxxxx"<visad@xxxxxxxxxxxxxxxx>
Subject: [visad] Strange rendering depending on axis range
Message-ID:
        <629163A7A829BF4FAA87AC64D7EC2C3F1A7837EC@xxxxxxxxxxxxxxxx.local>
Content-Type: text/plain; charset="iso-8859-2"

Dear VisAD developers,

We are using VisAD for the visualization of mass spectrometry data as part of 
the MZmine 2 framework (http://mzmine.sourceforge.net/).

I found that sometimes the visualization is affected by the range of the axes. 
When visualizing a narrow range of data, the plot shows some strange artefacts 
such as lines.  After a bit of debugging, I managed to write a short Java 
program that demonstrates the issue (attached as VisadTest.java)

The program creates a simple Linear2DSet of 1000 x 1000 dimension. The Z values 
are set to zero for the whole domain, therefore the visualization only shows a 
flat plane. The strange thing is that depending on the range of the X axis, the 
visualization is different (note that the resolution of the Linear2DSet stays 
constant).

The range of the X axis is defined in the program here:
        double xMin = 100;
        double xMax = 100.007;

I have attached screenshots demonstrating the VisAD behavior as I change the 
range of the X axis from 100-100.5 to 100-100.0005. Finer ranges show some 
strange patterns instead of solid color. Is this behavior normal? I believe the 
visualization should be exactly the same except the X axis label. Is this a bug 
of VisAD?

Best regards,

Tomas

PS: I am using the latest VisAD (Thu Mar 22 13:01:31 CDT 2012  Rev:5952), 
running Java 1.6.0_31 on Mac OS X 10.7.4.


===============================================
Tom?? Pluskal
G0 Cell Unit, Okinawa Institute of Science and Technology Graduate University
1919-1 Tancha, Onna-son, Okinawa 904-0495, Japan
TEL: +81-98-966-8684
Fax: +81-98-966-2890
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VisadTest.java
Type: application/octet-stream
Size: 2295 bytes
Desc: VisadTest.java
URL:<http://mailman.unidata.ucar.edu/mailing_lists/archives/visad/attachments/20120519/4da1b82a/attachment.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-05-19 at 3.08.47 PM.png
Type: image/png
Size: 75053 bytes
Desc: Screen Shot 2012-05-19 at 3.08.47 PM.png
URL:<http://mailman.unidata.ucar.edu/mailing_lists/archives/visad/attachments/20120519/4da1b82a/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-05-19 at 3.10.47 PM.png
Type: image/png
Size: 20127 bytes
Desc: Screen Shot 2012-05-19 at 3.10.47 PM.png
URL:<http://mailman.unidata.ucar.edu/mailing_lists/archives/visad/attachments/20120519/4da1b82a/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-05-19 at 3.11.49 PM.png
Type: image/png
Size: 20651 bytes
Desc: Screen Shot 2012-05-19 at 3.11.49 PM.png
URL:<http://mailman.unidata.ucar.edu/mailing_lists/archives/visad/attachments/20120519/4da1b82a/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-05-19 at 3.15.32 PM.png
Type: image/png
Size: 20988 bytes
Desc: Screen Shot 2012-05-19 at 3.15.32 PM.png
URL:<http://mailman.unidata.ucar.edu/mailing_lists/archives/visad/attachments/20120519/4da1b82a/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-05-19 at 3.18.16 PM.png
Type: image/png
Size: 58867 bytes
Desc: Screen Shot 2012-05-19 at 3.18.16 PM.png
URL:<http://mailman.unidata.ucar.edu/mailing_lists/archives/visad/attachments/20120519/4da1b82a/attachment-0004.png>

------------------------------

_______________________________________________
visad mailing list
visad@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/

End of visad Digest, Vol 30, Issue 1
************************************




  • 2012 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: