[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Demo for screen locked renderer.
Hi Jim,
> I have modifed ScreenLockedRenderer's main() method and it
> works fine (file is attached).
>
> I have also modified ScreenLockedDemo's addScreenLockedSquare()
> method, and it also works fine (file is attached).
>
> I would like to do some more testing to see what sort of function
> types are and are not supported (eg, ((x, y)->text) instead of
> just (text), and shapes?)
I'm glad to hear you are going with this new apporach. I
have committed your changes, added "package visad.bom;" to
ScreenLockedDemo.java, fixed the bug you found below, and
commited all this to the VisAD CVS. The resulting jar files
are available in:
ftp://ftp.ssec.wisc.edu/pub/visad-2.0/untested/
> In the ScreenLockedRenderer.main() method, the text is placed in
> x/y/z space using ConstantMaps. Choosing the correct values for
> Display.XAxis and Display.YAxis is a little confusing, but I'm
> working on it. It seems like these contant map values need to be
> between 0.5 and -0.5 to place the labels where I expect them to be.
>
> In the ScreenLockedDemo.addScreenLockedSquare() method, a
> setRange() is done such that the setRange's min/max values are
> twice that of the actual min/max values in the Set. This seems to
> make the square about the right size.
>
> Is it a coincidence that in the first case my constant maps for x
> and y are set to 1/2, whereas in the second case, I do a setRange()
> such that the min/max are 2X the real min/max values?
This is a sort-of bug, and thank you for finding it. The
fix is in visad/java3d/ProjectionControlJ3D.java in the
untested jar files.
I'll look forward to any further developments you want to
make with screen locked rendering.
Cheers,
Bill