[JAVA3D] java.security.AccessControlException when try to load a x3d file using xj3d

2003-03-19 Thread kindy huang
Dear All, I am trying to load x3d file using LoaderDemo which comes with Xj3D, it works fine when run it as a standalone program, I just replaced VRML97Loader with X3DLoader. But when I modified it to a class extending JPanel(instead of JFrame)and tried to use it in my swing client- a j2ee client,

Re: [JAVA3D] Fit image in frame

2003-03-19 Thread Jasmine Kwok
Hi Dirk,   I have tried the codes, and it works well for perspective projection. Is there any chance that this method works for parallel projection as well?     Regards, Jasmine   - Original Message - From: Dirk L. van Krimpen To: [EMAIL PROTECTED] Sent: Wednesda

Re: [JAVA3D] SetCoordinates or setCoordRef3f ?? Which one updates the vertex faster ??

2003-03-19 Thread Jefferson Samuel
Hi All, Now I'm changing the appearance of an object & enabling lights outside the updateData() method.Does sun have any plans to change this in the future? Bug 4686527 (Deadlock between MasterControl and user thread when using ByRef updateData()) sounds a bit disappointing. I am implementing "V

Re: [JAVA3D] Stereo Viewing Information

2003-03-19 Thread Mark Hood
> Date: Thu, 20 Mar 2003 09:36:52 +0700 > From: =?ISO-8859-1?Q?=E1=CD=B9=B4=C3=D9=C7=EC_=E0=B4=C7=D4=CA=D1=B9_=28Andr?= > =?ISO-8859-1?Q?ew_Davison=29?= <[EMAIL PROTECTED]> > > The StereoGraphics Web site (http://www.stereographics.com/) is > a great resource for information about stereo 3

Re: [JAVA3D] Stereo Viewing

2003-03-19 Thread Tarlton Mark-CMT041
I believe that the Quad Buffer option needs to be enabled within the OpenGL panel of the Display Settings control. The machine isn't available to me now so I can't double check this. Mark Tarlton -Original Message- From: GB Liu [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 7

[JAVA3D] Stereo Viewing Information

2003-03-19 Thread á͹´ÃÙÇì à´ÇÔÊѹ (Andrew Davison)
Dear All, The StereoGraphics Web site (http://www.stereographics.com/) is a great resource for information about stereo 3D. On their online support materials page (http://www.stereographics.com/support/body_support.html) there are several diagnostic tools for testing the stereo capabilities of yo

[JAVA3D] Stereo Viewing

2003-03-19 Thread GB Liu
Hi Friends: Mark Tarlton suggested to use Quadro4 750XGL for render stereo J3D image. I bought one today and tested it. I still could not get the left/right eye images rendered. (I am using immediate mode to render two images to left and right eyes separately. Viewed from a stereo glasses). May

[JAVA3D] [might out of topic] why cannot we set up environment variables automatically?

2003-03-19 Thread kindy huang
I am always headache with environment variables whenever try a new java technologies - servlet, jsp , jdbc, j2ee... we have to remember set up JAVA_HOME, TOMCAT_HOME, PATH, CLASSPAHT, APPCPATH ... remember not to have any .jar left, they are alway many. why cannot this be easier? why does Java mak

Re: [JAVA3D] cannot compile LoaderDemo.java which comes with Xj3D-M7-min.exe

2003-03-19 Thread kindy huang
Yeah, I fixed the problem by configuring my JCreator, it seems that JCreator doesn't recognize the environment variables I manually set up except those for j2se. Thanks. --- Justin Couch <[EMAIL PROTECTED]> wrote: > kindy huang wrote: > > I 've downloaded Xj3D-M7-min.exe > > and install it, but I

Re: [JAVA3D] rendering question

2003-03-19 Thread Mark Hood
> Date: Wed, 19 Mar 2003 11:27:13 -0500 > From: "McCormick, Brian" <[EMAIL PROTECTED]> > > I'm new to Java 3D and was hoping to get some help on what seems to be a > rendering problem I'm having. First, I am using the SimpleUniverse class > and I created a primitive spere with the true mea

Re: [JAVA3D] why don't icons work in Xj3DBrowser?

2003-03-19 Thread Alan Hudson
kindy huang wrote: I 've installed Xj3D, and tried Xj3DBrowser, although it can load VRML/X3D file and display the 3D scenes, I cannot use icons at the left-bottom of the browser, they always look grey and inactive. What's wrong with them? I dowloaded the Xj3D-M7-min.exe here: http://www.web3d.org/

[JAVA3D] why don't icons work in Xj3DBrowser?

2003-03-19 Thread kindy huang
I 've installed Xj3D, and tried Xj3DBrowser, although it can load VRML/X3D file and display the 3D scenes, I cannot use icons at the left-bottom of the browser, they always look grey and inactive. What's wrong with them? I dowloaded the Xj3D-M7-min.exe here: http://www.web3d.org/TaskGroups/source/

Re: [JAVA3D] cannot compile LoaderDemo.java which comes with Xj3D-M7-min.exe

2003-03-19 Thread Justin Couch
kindy huang wrote: I 've downloaded Xj3D-M7-min.exe and install it, but I cannot compile and run the example - LoaderDemo.java,it seems that I am missing packages, but I don't where they are. They're in the uri.jar file. I'd say you have a local configuration problem that doesn't have the classpath

[JAVA3D] cannot compile LoaderDemo.java which comes with Xj3D-M7-min.exe

2003-03-19 Thread kindy huang
I 've downloaded Xj3D-M7-min.exe and install it, but I cannot compile and run the example - LoaderDemo.java,it seems that I am missing packages, but I don't where they are. Thanks for any help! -Mian my classpath has: C:\Program Files\Xj3D\jars\gnu-regexp-1.0.8.jar; C:\Program Files\Xj3D\jars\htt

Re: [JAVA3D] implementing collision detection

2003-03-19 Thread Brandon
Have you looked at http://www.j3d.org Specifically: http://www.j3d.org/tutorials/collision/index.html or the code in http://code.j3d.org/ --- JOSEPH ROSS JEYNES <[EMAIL PROTECTED]> wrote: > hi everyone. > i'm developing a virtual environment for my major > degree project. > i'm importing the geom

Re: [JAVA3D] Java and C++

2003-03-19 Thread John Wright
I'm not a Linux guru but I'd probably try something roughly the same. Make a shell script to execute the app (with everything properly exported) and let Java call that shell script from rt.exec(). - John Michael Saunders wrote: > > It sounds like your LD_LIBRARY_PATH environment variable is not s

Re: [JAVA3D] ? Change VRML color ?

2003-03-19 Thread Alan Hudson
ZACZEK, MARIUSZ P. (MARIO) (JSC-DM) (NASA) wrote: Once you load a VRML file (using vrml97.jar) into a scene, can you change it's color? Can you (maybe) get an appearance and change it? Anything like that? Mario Depends, are you running the VRML event model, or just using the loader as a geometr

Re: [JAVA3D] Java and C++

2003-03-19 Thread Michael Saunders
It sounds like your LD_LIBRARY_PATH environment variable is not set to point to the directory containing app's shared objects. Asking your java application to load the libraries for you won't work because rt.exec will occur in it's own shell. You probably need to create a app.sh script that sets up

Re: [JAVA3D] Java and C++

2003-03-19 Thread Jack Gundrum
John, It is a C++ program that you would normally just execute with ./app. It does use shared object libs which are in /usr/local/lib. It may be that this is the problem although they should be system wide. I tried to load the above libs.so with rt.loadLibrary and rt.load and System.load and Syste

[JAVA3D] rendering question

2003-03-19 Thread McCormick, Brian
Hello, I'm new to Java 3D and was hoping to get some help on what seems to be a rendering problem I'm having. First, I am using the SimpleUniverse class and I created a primitive spere with the true mean radius of the earth and mapped a jpeg earth map to it and placed it in the center of the Simp

[JAVA3D] ? Change VRML color ?

2003-03-19 Thread ZACZEK, MARIUSZ P. (MARIO) (JSC-DM) (NASA)
Once you load a VRML file (using vrml97.jar) into a scene, can you change it's color? Can you (maybe) get an appearance and change it? Anything like that? Mario Mariusz Zaczek NASA - Johnson Space Center Automated Vehicles and Orbit Analysis / DM35 Flight Design and Dynamics Division Mission

[JAVA3D] implementing collision detection

2003-03-19 Thread JOSEPH ROSS JEYNES
hi everyone. i'm developing a virtual environment for my major degree project. i'm importing the geometry of a building from a wavefront obj using a loader. i need to implement collision detection so that the viewer canot go through the walls of the object. i'm struggling to do it myself and would

[JAVA3D] IRIX Java3D Java1.4

2003-03-19 Thread Auguste Genovesio
Hi all, Does anybody know when Java3d will work on IRIX with Java1.4 ? -- A. Genovesio Quantitative Image Analysis Group Institut Pasteur 25, rue du Docteur Roux 75724 Paris Cedex 15 === To unsubscribe, send email to [EMAIL P

Re: [JAVA3D] Large #'s of raster images & labels

2003-03-19 Thread Artur Biesiadowski
If we are talking about such number of symbols, I think you should think about particle system. Use single quad array for all labels, on each viewplatform move aligning it perpendicular to view. You have two choices here - either change size of each quad depending on distance from viewer (thus havi

Re: [JAVA3D] AW: [JAVA3D] Large graphic databases in J3D

2003-03-19 Thread Smith, David
No, I don't have 1 face for every shape. I have 1 shape--many geometryarrays(1 for each face) > I think you started in the wrong direction. You want to say > that you have 1 > Shape3D for every *face* in the .obj file ? That's a terrible > overhead ! I agree. YIKES!! > Does it also happen t

Re: [JAVA3D] How can I run Xj3D in a swing client?

2003-03-19 Thread Mr H. Morgan
Hi Mian, I put a Canvas3D in a JPanel, and put that wherever it is needed. Easy. I basically did what they do in LoaderDemo. I could dig out some code if you want it. HTH, Hugh >X-Original-To: [EMAIL PROTECTED] >Delivered-To: [EMAIL PROTECTED] >MIME-Version: 1.0 >From: kindy huang <[EMAIL PRO

Re: [JAVA3D] Java and C++

2003-03-19 Thread John Wright
Jack, Is "/home/jsg3/app" an executable shell script? (did you give it execute permissions?) Or is it the C++ program itself? Does it run from a Linux command prompt? - John Jack Gundrum wrote: > > Thanks for the pointer, it was very easy with windows but not so easy with > linux. > > The foll

[JAVA3D] How can I run Xj3D in a swing client?

2003-03-19 Thread kindy huang
I 've written a swing client(also a J2ee client) which can retrieve X3D files from a database, now I want to use Xj3D as X3D loader to display 3d scenes described by those X3D files? I am wondering how I can launch xj3D within a swing application. Could anyone please give some instructions? Than

[JAVA3D] AW: [JAVA3D] Large graphic databases in J3D

2003-03-19 Thread Florin Herinean
I think you started in the wrong direction. You want to say that you have 1 Shape3D for every *face* in the .obj file ? That's a terrible overhead ! Does it also happen that every Shape3D is below it's own Transform3D in your data structure ? Nevertheless, there is something wrong with your estimat

[JAVA3D] Large graphic databases in J3D

2003-03-19 Thread Smith, David
I currently have a set of data structures to manage the models in memory. I generate the necessary graphics data and setup J3D to display them. I can interactively manipulate the models in memory, and then update the graphics accordingly. This is all well and good but I started converting

Re: [JAVA3D] Java and C++

2003-03-19 Thread Michael Saunders
Jack, I run on Linux and have used all forms of Runtime's exec method without any problems. Michael Jack Gundrum wrote: Thanks for the pointer, it was very easy with windows but not so easy with linux. The following worked with windows try {

Re: [JAVA3D] AW: [JAVA3D] Large #'s of raster images & labels

2003-03-19 Thread Smith, David
Touché! I may have to live without the billboarding, that's why it was a want anyway. ;-) Thanks, -DaveS > However, the line approach looks interesting to me. Is it not > possible to > create 1 single shape containing one cumulated linestrip with > all the labels > at the proper positions ?

Re: [JAVA3D] Java and C++

2003-03-19 Thread Jack Gundrum
Thanks for the pointer, it was very easy with windows but not so easy with linux. The following worked with windows try { Runtime rt = Runtime.getRuntime(); Process proc = rt.exec("app.

[JAVA3D] AW: [JAVA3D] AW: [JAVA3D] Large #'s of raster images & labels

2003-03-19 Thread Florin Herinean
Sorry, with the approach I've suggested, billboarding is not possible. Cheers, Florin -Ursprüngliche Nachricht- Von: Florin Herinean [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. März 2003 15:24 An: [EMAIL PROTECTED] Betreff: [JAVA3D] AW: [JAVA3D] Large #'s of raster images & labels

[JAVA3D] AW: [JAVA3D] Large #'s of raster images & labels

2003-03-19 Thread Florin Herinean
8000 shape nodes to display labels is definitely bad, regardless of the approach, lines or rasters. However, the line approach looks interesting to me. Is it not possible to create 1 single shape containing one cumulated linestrip with all the labels at the proper positions ? That will surely be t

Re: [JAVA3D] Large #'s of raster images & labels

2003-03-19 Thread Smith, David
> I suspect line geometry would be cleaner, ^ Sorry, --| missed a word ==To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help,

Re: [JAVA3D] Large #'s of raster images & labels

2003-03-19 Thread Smith, David
I was also thinking of using LineStripArrays to create the #'s 0-9 and then just reuse the lines on shape nodes where the labels belong. So face 50 and edge 50 would have the same geometry. But then, would 8000 shape nodes with linestrip geometry be more/less efficient than using 8000 shape nod

[JAVA3D] TextureCubeMap and DirectX

2003-03-19 Thread Christian Zanardi
Hi! first of all thanks for the answers and hint on the problem (the textureCubeMap from Alessandro Borges was a life savior). I found out that the problem came from the following lines of code: texCmap.setMagFilter(Texture.NICEST); texCmap.setMinFilter(Texture.NICEST); with them the texturecubm

[JAVA3D] SceneGraphIO - problem with TransformInterpolator

2003-03-19 Thread Simen Gaure
Hi, I'm using java3d 1.3 on linux. I try to save my scene graph with the SceneGraphIO utility. Both save and restore works fine except for the following: The user of my app may let the ViewPlatform orbit in a circle. This may be implemented in a number of ways; I have chosen to extend the Positi

[JAVA3D] AW: [JAVA3D] Fit image in frame

2003-03-19 Thread Florin Herinean
It should work! I am using basicaly the same mechanism, except that I'm preparing several views from which you can look at the object. The one you described is only looking along z direction from + to -.   Here is another algorithm where you can also specify rotation angles rx, ry, rz in ra

Re: [JAVA3D] Fit image in frame

2003-03-19 Thread Jasmine Kwok
Thanks! I will let you know the results once I have tried them out!   Cheers, Jasmine   - Original Message - From: Dirk L. van Krimpen To: [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 6:39 PM Subject: Re: [JAVA3D] Fit image in frame   Hi Jasmine

Re: [JAVA3D] Fit image in frame

2003-03-19 Thread Dirk L. van Krimpen
  Hi Jasmine,   I got good results with:   BoundingSphere fit=(BoundingSphere)objRoot.getBounds(); double rad=fit.getRadius(); Point3d ctr=new Point3d(); fit.getCenter(ctr); View view=universe.getViewer().getView(); Vector3d viewvector=new Vector3d(ctr); double viewDistance=2.0*rad/Math.t

[JAVA3D] AW: [JAVA3D] Problem with Specular Color

2003-03-19 Thread Florin Herinean
Yes, that's the bug. So version 1.3.1 have it fixed. Lot's of nice fixes in 1.3.1 ! When will be a fcs release ? I was scaling up, the actual geometries were bigger than the original size which was always normalized, size 1 in all directions. I've fixed my problem by using the workaround specifie