Re: [JAVA3D] Serializing Shape3Ds

2003-02-28 Thread Ma TSeng Shiao
use the package com.sun.j3d.utils.scenegraph.io or better, com.sun.j3d.utils.scenegraph.io.retained there are streams for serializing j3d objects, you can get the api using javadoc from the source files they work for anything except morph nodes (that's the last problem I had ;) ) i'm in a hurry,

Re: [JAVA3D] ? OrbitBehavior with VirtualUniverse ?

2003-02-28 Thread Mark Hood
> Date: Fri, 28 Feb 2003 14:59:05 -0600 > From: "ZACZEK, MARIUSZ P. (MARIO) (JSC-DM) (NASA)" <[EMAIL PROTECTED]> > Does anyone know (have code) how to get OrbitBehavior to work with a > VirtualUniverse? You can instantiate your own ViewingPlatform and attach OrbitBehavior to that. ViewingP

[JAVA3D] ? OrbitBehavior with VirtualUniverse ?

2003-02-28 Thread ZACZEK, MARIUSZ P. (MARIO) (JSC-DM) (NASA)
Does anyone know (have code) how to get OrbitBehavior to work with a VirtualUniverse? I know how to get it to work for a SimpleUniverse: ViewingPlatform viewingPlatform = simpleuniv.getViewingPlatform(); BoundingSphere infiniteBounds = new BoundingSphere(new Point3d(), Double.MAX_VALUE);

[JAVA3D] Finding parent of a picked leaf node

2003-02-28 Thread Josh Richmond
Hi, I've been using the PickCanvas for some time now to pick 3D points in my scene. Now I'd like to be able to distinguish which avatar was picked.. not just the Shape3D. I had the "bright" idea to extend BranchGroup with a class that includes a reference to the avatar object thinking that I co

Re: [JAVA3D] Problems with texture mapping

2003-02-28 Thread Kelvin Chung
Greg Gimler wrote: Kelvin, I do not use the DirectX version of Java3D, I only used the openGL version for both java3d 1.2 and 1.3 so shouldn't it be the same? If graphics driver did not change it should be the same. glGetIntegerv(GL_MAX_TEXTURE_SIZE, ..) is used to query the max textur

Re: [JAVA3D] off-screen or something else?

2003-02-28 Thread Lan Wu-Cavener
At 04:38 PM 2/27/2003 -0800, you wrote: > Date: Thu, 27 Feb 2003 14:10:47 -0500 > From: Lan Wu-Cavener <[EMAIL PROTECTED]> > > I would like the screen show the 3D scene after the texture mapping is > fully down, in another words, I don't want the user to see the objects are > replaced by im

Re: [JAVA3D] AW: [JAVA3D] Detaching a BranchGroup not releasing memory

2003-02-28 Thread Brendan Cleary
That's exactly the behaviour I am seeing, at a certain point the garbage collector kicks in but by that time there is already a significant amount of memory that is never reclaimed. However after reading some of the related posts I have downloaded JProbe and am currently investigating the possibili

Re: [JAVA3D] Problems with texture mapping

2003-02-28 Thread Greg Gimler
Kelvin, I do not use the DirectX version of Java3D, I only used the openGL version for both java3d 1.2 and 1.3 so shouldn't it be the same? -Greg Kelvin Chung wrote: Greg Gimler wrote: How are your textures being loaded? Who's code is

Re: [JAVA3D] Transformgroup, Shape3d memory footprint

2003-02-28 Thread Lan Wu-Cavener
Ian, The alternative is that you simply add your shape3d to your scene as normal, WITHOUT a transform group. You can still pick the shape3D and change its properties. When you say "editable" geometry, I assume you meat translations and rotations. Please see previous emails where I discuss addi

Re: [JAVA3D] Problems with texture mapping

2003-02-28 Thread Kelvin Chung
Greg Gimler wrote: How are your textures being loaded? Who's code is being used to do it? My textures are being loaded as follows: Sphere planet; Appearance papp; TextureLoader t = new TextureLoader("models/earth.jpg", "RGB", this); if (t != null) papp.setTexture(t.getTexture()); Transparenc

[JAVA3D] Serializing Shape3Ds

2003-02-28 Thread Nick Stark
I was just wanting to know if there was an easy way of serializing Shape3Ds without having to extend the Shape3D class as well as the classes of all non-serialized member variables of Shape3D. I'm just taking a stab out here...I'm pretty sure that a 'quick' way doesn't exist, but I'd love to hear

Re: [JAVA3D] Problems with texture mapping

2003-02-28 Thread Greg Gimler
How are your textures being loaded? Who's code is being used to do it? My textures are being loaded as follows: Sphere planet; Appearance papp; TextureLoader t = new TextureLoader("models/earth.jpg", "RGB", this); if (t != null) papp.setTexture(t.getTexture()); TransparencyAttributes ta = new

[JAVA3D] AW: [JAVA3D] AW: [JAVA3D] Java3D versions and Internet Explorer

2003-02-28 Thread Florin Herinean
It's working just the same with jar files. I'm using plain classes because the loading time it's much shorter then loading the full jar file, especially since it's loading classes only as needed. The problem seems to be with the version strings. However, I was able to see the referred web3books lin

Re: [JAVA3D] AW: [JAVA3D] Java3D versions and Internet Explorer

2003-02-28 Thread Smith, David
Well, in my case I see the rotating cube. Hooray! However, I'm suspecting that there are html tags that are being used for some websites that aren't compatible. Could this be possible? For example, your page just uses .class file. No special PARMS for plug-in version requirements. Flavin's pa

Re: [JAVA3D] When can I update a Switch

2003-02-28 Thread Rob Nugent
Kelvin, Thanks for the reply on this. It hadn't occured to me that ViewSpecificGroup might be an approach that could work for this. Initial experiments look promising - I can for the very first time pick some geometry that isn't being rendered. I'm off on holiday for a week now, but I'll investiga

[JAVA3D] AW: [JAVA3D]

2003-02-28 Thread Florin Herinean
Hey ? Am I seing phantoms ? I'm pretty sure that I've seen that message before. However, your picture is too big! Try adjusting it's size to 2048 x 1024 using any picture editor. That one may work. If still not working, try with the size 1024 x 512. Cheers, Florin -Ursprüngliche Nachricht-

[JAVA3D] AW: [JAVA3D] processStimulus() of J3D and stateChanged() of JSlid er

2003-02-28 Thread Florin Herinean
You shouldn't care about what Paul says. Just ignore him. Personally I don't know how the sun vrml loaders work, but if they work like their *standard* wavefront obj loaders distributed with j3d, then it's simply crap! Cheers, Florin P.S. I hope that soon I'll contribute to j3d.org with a decent

[JAVA3D] AW: [JAVA3D] Problems with texture mapping

2003-02-28 Thread Florin Herinean
Seems that you find the culprit! From a previous email, Greg was saying that his texture has "2160x1080" pixels. About what can quadro do it was me the one who told you that handles non-power of two textures, but it seems that I have a different version than Greg uses. Mine also handles textures o

Re: [JAVA3D] Ask for suggestions about some Java3D applications

2003-02-28 Thread Ian M Nieves
Mian, I hate to be short about this, but mixing J3D with J2EE is quite doable. You should not see any major barriers to this except that Java3D benefits obviously from 3D hardware, and that deployment of Java3D applications or applets or whatever is not as simple as other deployments. There are s

Re: [JAVA3D] Transformgroup, Shape3d memory footprint

2003-02-28 Thread Ian M Nieves
Lan, The alternative is that you simply add your shape3d to your scene as normal, WITHOUT a transform group. You can still pick the shape3D and change its properties. When you say "editable" geometry, I assume you meat translations and rotations. Please see previous emails where I discuss addin

[JAVA3D] AW: [JAVA3D] Java3D versions and Internet Explorer

2003-02-28 Thread Florin Herinean
What happens when you run the Java3D compatibility test on http://jdraw3d.herinean.com ? If there are any problems, you should see a small report of jdk / j3d versions. Please let me know! Cheers, Florin -Ursprüngliche Nachricht- Von: Lan Wu-Cavener [mailto:[EMAIL PROTECTED] Gesendet: D

[JAVA3D] AW: [JAVA3D] Detaching a BranchGroup not releasing memory

2003-02-28 Thread Florin Herinean
I have seen this behavior in my app too, and clearly is not related to any of the suggested bugs. However, it looks mostly as being related to the garbage collector who doesn't get the chance to start collecting. Let me explain the strange behavior that I'm seeing: First time I load my standard te

Re: [JAVA3D] AW: [JAVA3D] Java 3D or GL4Java (also s olution to la rge number of geometry problem)

2003-02-28 Thread Ian M Nieves
Florin, Thanks for these numbers! They will be very useful. Ian On Thu, 27 Feb 2003, Florin Herinean wrote: > One last thing to consider: moving to GL4Java is like using pure immediate > mode in j3d. You have at that point (almost) total liberty of what you're > doing. You can optimize for me

Re: [JAVA3D] animation loaders for java3d?

2003-02-28 Thread Jonathan Leong
http://www.j3d.org/utilities/loaders/misc/neverwinter.html Might want to update this, animations and emitters are now supported. Jonathan - Original Message - From: "Justin Couch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 3:17 AM Subject: Re: [JAVA3D] an