[JAVA3D] problem with getPixelLocationFromImagePlate()

2002-01-08 Thread Marco Fiocca
Hello everybody, I have a problem with this method. I want to have the projection of a Point3d from ImagePlate to java.awt coordinates, but I can't do this. I use an offscreen canvas and perhaps this is the problem; When I run this piece of code the result in p1out is (Nan,Nan) while I would expe

[JAVA3D] Add lines on the borders of a cube

2002-01-10 Thread marco fiocca
this is because the coordinates between border and line vertices are not exactly the same, and so the lines appear more far then the cube face. How can I solve my problem? There's not a way to outline the borders of a cube with different colors? Thanks

[JAVA3D] Color changing

2002-01-31 Thread marco fiocca
Hello guys I use j3d1.3beta1 and I have a problem: I had to do control pixel per pixel a rendered image. The problem is that a shape that I create like a cube is rendered with the color I setted in ColoringAttributes and a color very near. At the eye they are the same, put control on the p

[JAVA3D] setting GraphicsConfiguration

2002-02-06 Thread Marco Fiocca
Hello guys, I know that probably my problem has a simple solution, but I can't understand which is. Now in my project I use an offscreen Canvas3D with an ImageComponent2D and a GraphicsConfiguration using a 24 bit RGB. I think that using an 8 bit grayscale rendering I'll have a pe

[JAVA3D] OffscreenCanvas problems

2002-02-07 Thread marco fiocca
Hello guys, I have a problem; I use an offscreen Canvas3D with a ImageComponent2D with 16 bit per pixel and when I render my lines their pixels are not of the same color, but, for example, one (0,0,0) ant the nearer(0,4,0) and so on. I have to do a pixel per pixel control on the rendered i

[JAVA3D] adding object with mouse

2001-11-26 Thread Marco Fiocca
Hi everybody, I have a problem: I want to add an object in my branchgroup using the mouse coordinates in canvas. I used Canvas3D's method getPixelLocationInImagePlate() but it not seems to work as well as I hope; it adds all objects very close to each other and the result is very ugly. Thanks in

[JAVA3D] capturing images

2001-12-03 Thread Marco Fiocca
Hello guys, I have a great problem! I want to capture frame in a java3D scene, and so I used the code in FAQ on www.j3d.org. But there's a problem: sometimes (frequently) my image is a blank image. Can someone help me? === T