RE: your mail

Hmm... I'm not quite sure how to tell the size of the image/texture map of
small.v5d to see if what you are referring to could be my problem. I'm just
using small.v5d because it was one of the samples that came under the "data"
folder when I unzipped VisAD. The strange thing is that I re-unzipped the
whole visAD package and replaced the old SpreadSheet.java to try to start
out new again. I added a small print statement in the main method of
SpreadSheet.java expecting to see something printed in the command prompt
shell. But nothing showed up. Also, my Go button appeared and when I clicked
on it, the same white square appeared. This is unexpected since the new code
for SpreadSheet.java does not have any code for a GO button yet. Could there
be a problem in my classpath and the order in which files are being read?

D:\visad\unzipped;D:\visad\unzipped\visad;D:\jgap-1.0-RC1\src;D:\visad;D:\lv
is\lib;D:\VisADJython\jre\lib;D:\apache-ant-1.5.3-1\lib;C:\Java\j2re1.4.1_03
;D:\Java\j2re1.4.1_03\lib\rt.jar;C:\j2sdk1.4.1_03;C:\j2sdk1.4.1_03\lib;D:\ap
ache-ant-1.5.3-1\bin;D:\JUnit\junit3.8.1;D:\JUnit\junit3.8.1\junit\tests\fra
mework;D:\visad\unzipped\visad\ss;D:\VisADJython\visad.jar;D:\visad\visad_sr
c-2.0.jar

Thanks,
Michelle

Michelle Kam           (408) 742-2881
Lockheed Martin Space Systems Co. SSM/ATC/MSIS
B/153 O/L922 
1111 Lockheed Martin Way, Sunnyvale, CA 94089




-----Original Message-----
From: Tom Whittaker [mailto:tomw@xxxxxxxxxxxxx]
Sent: Monday, June 09, 2003 2:19 PM
To: Kam, Michelle C
Subject: Re: your mail


Do you know the size (# samples in x and y) of the image/texture map 
that is trying to be displayed?  There is an OpenGL-related issue on 
Windows (and perhaps other platforms) in that if the data is displayed 
with texture mapping (as you might with an image) and has a dimension 
larger than a hardware-dependent value, then it displays has a flat 
white or gray square.  On my machine, the limit is 1024; one other 
machine we have here, it's 512.

The only solution I know of for the time being is to resample the data 
to a smaller number of samples.

tom

Kam, Michelle C wrote:

> Hi Curtis,
> 
> I'm actually using JCreator only to edit, but I'm compiling on the command
> line and typing in java -mx512m visad.ss.SpreadSheet to run it on the
> command line. I also tried adding the line
> 
> DisplayCells[0][0].setDim3D();
> 
> right before
> DisplayCells[0][0].addDataSource("D:\\visad\\data\\small.v5d",
> BasicSSCell.URL_SOURCE);
> 
> but I'm still getting the plain flat white square in the cell.
> 
> Michelle Kam           (408) 742-2881
> Lockheed Martin Space Systems Co. SSM/ATC/MSIS
> B/153 O/L922 
> 1111 Lockheed Martin Way, Sunnyvale, CA 94089
> 
> 
> 
> 
> -----Original Message-----
> From: Curtis Rueden [mailto:curtis@xxxxxxxxxxxxx]
> Sent: Monday, June 09, 2003 11:45 AM
> To: Kam, Michelle C
> Cc: visad-list@xxxxxxxxxxxxx
> Subject: RE: your mail
> 
> 
> Hi Michelle,
> 
> If you are using some sort of development environment,
> then I cannot help you, unfortunately.  The only advice
> I can offer is to quit and restart the environment...
> 
> If you are using a text editor and command line (which
> is what I do), then you may still have a problem with
> your CLASSPATH.  I cannot think of any other reason
> you'd be having trouble with versions like you are.
> 
> Since the SpreadSheet prepends "file:/" to the source
> string, it looks like it's finding your file now.  If
> you're getting a white, 2-D box, perhaps cell A1 is set
> to 2-D mode instead of 3-D?  You can call setDimension()
> on the cell to switch it to 3-D before loading the file.
> 
> -Curtis
> 
> At 01:20 PM 6/9/2003, you wrote:
> 
>>Hi Curtis, Tom, and group,
>>
>>I tried replacing the "\" with "\\". Now, however, a plain white 2-D
square
>>is imported instead of the cube with the fancy representation. Also, I
>>originally had the file specified as
>>D:\\visad\\unzipped\\visad\\ss\\small.v5d and when that didn't work, I
>>changed it to D:\\visad\\data\\small.v5d. But when I opened up a new
>>instance of the spread sheet and clicked on "GO", the file that was listed
>>in the "ADD/DELETE" menu was A1d1:
>>file:/D:/visad/unzipped/visad/ss/small.v5d instead of data/small/v5d. So
> 
> I'm
> 
>>thinking it is indeed running an old version of my code. I added a
>>system.out.println statement in my method and nothing was printed in my
>>shell. Do you know what I can change to get it to see the newest version
of
>>my code?
>>
>>Thanks,
>>Michelle
>>
>>Michelle Kam           (408) 742-2881
>>Lockheed Martin Space Systems Co. SSM/ATC/MSIS
>>B/153 O/L922 
>>1111 Lockheed Martin Way, Sunnyvale, CA 94089
> 
> 
> 

-- 
Tom Whittaker (tomw@xxxxxxxxxxxxx)
University of Wisconsin-Madison
Space Science and Engineering Center
Cooperative Institute for Meteorological Satellite Studies
Phone/VoiceMail: 608.262.2759