Posted by
Krs5 on
Jul 31, 2013; 4:23pm
URL: http://imagej.273.s1.nabble.com/Pb-rendering-more-than-32-snapshots-in-3D-Viewer-tp5004232p5004242.html
Hi Thomas,
On Fiji (ImageJ 1.47v, Windows 32; java 1.6.0_24) I get the error message "There are no images open" . This seems to happen in loop 33 ( i = 32). Events Monitor shows:
.......
i=28
Opened "Snapshot"
Updated "snap28"
Closed "snap28"
Updated "blobs.gif (frame 0)"
Updated "blobs.gif (frame 0) resampled"
Updated "3d"
Updated "3d"
i=29
Opened "Snapshot"
Updated "snap29"
Closed "snap29"
Updated "blobs.gif (frame 0)"
Updated "blobs.gif (frame 0) resampled"
Updated "3d"
Updated "3d"
i=30
Opened "Snapshot"
Updated "snap30"
Closed "snap30"
Updated "blobs.gif (frame 0)"
Updated "blobs.gif (frame 0) resampled"
Updated "3d"
Updated "3d"
i=31
Updated "snap31"
Closed "snap31"
i=32
Updated "3d"
Seems something goes wrong with opening the snapshot.
Hope this is of any help
Best wishes
Kees
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Thomas Boudier
Sent: 31 July 2013 15:03
To:
[hidden email]
Subject: Pb rendering more than 32 snapshots in 3D Viewer
Hi,
I would like to do 4D surface rendering in ImageJ3DViewer so I'm writing a macro to create and render surfaces but after 32 snapshot renderings it stops :
java.lang.RuntimeException: Cannot render to more than 32 Canvas3Ds
at
javax.media.j3d.MasterControl.getCanvasId(MasterControl.java:1107)
so it seems to be a Java3D error, do you have same behavior on a
different system (I'm using Linux -' bits with java 1.7 and java3D 1.5.2).
here a small macro to reproduce the pb :
run("Blobs (25K)");
setOption("BlackBackground", true);
run("Make Binary");
run("3D Viewer");
call("ij3d.ImageJ3DViewer.setCoordinateSystem", "false");
for(i=0;i<40;i++) {
call("ij3d.ImageJ3DViewer.add", "blobs.gif", "White", "test", "0",
"true", "true", "true", "2", "2");
call("ij3d.ImageJ3DViewer.select", "test");
IJ.log("i="+i);
call("ij3d.ImageJ3DViewer.snapshot", "512", "512");
rename("snap"+i); close();
call("ij3d.ImageJ3DViewer.delete");
}
thanks for any idea
Thomas
--
/**********************************************************/
Thomas Boudier, MCU Université Pierre et Marie Curie,
Modélisation Cellulaire et Imagerie Biologique (EE1),
IFR 83, Bat B 7ème étage, porte 723, Campus Jussieu.
Tel : 01 44 27 46 92 Fax : 01 44 27 22 91
/*******************************************************/
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html