[JAVA3D] VRML97 Startup Animation Bug -- Fixed

1999-12-03 Thread giles
Seems that VRML animations have been starting when the world loads for awhile. I fixed it today. Attached is the new TimeSensor.java I don't think I broke anything else but I'm still testing. The bug was on line 235. A setActive event was being generated when is wasn't susposed too. I added

[JAVA3D] Tuple classe???

1999-12-03 Thread armel
Hello, Tuple, what does it mean exactly, I understand it used to represent tuples by the javax.vecmath package. But wich is the origin of this word in programmation ? Perhaps it help me to understand. Thanks Armel --- '' À cette heure, des enfants naissent en Bretagne. Seront-ils bretons ? Nul ne

Re: [JAVA3D] Smooth sphere?

1999-12-03 Thread lining yang
> I am currently useing the sphere class to create a 3d earth using > a texture map and outlines of land masses. However, the sphere seems > fairly chunky and not nearly as smooth as I would like. Are there > things I can do to improve the look of the default sphere? Use Sphere(float radius, in

Re: [JAVA3D] Smooth sphere?

1999-12-03 Thread Kulkarni, Rajeev
Title: RE: [JAVA3D] Smooth sphere? Try increasing the number of facets on the sphere. This will give you smaller facets and the sphere will look much smoother. -Original Message- From: Ronald Van Iwaarden [mailto:[EMAIL PROTECTED]] Sent: Friday, December 03, 1999 8:38 AM To: [EMAIL PR

[JAVA3D] Textures and VRML

1999-12-03 Thread giles
I've got a weird problem with the VRML loader and textures. Seems that the textures are being loaded off the drive continually. I've put comments in the VRML loader code and I've found that its only calling the doChangeURL once... so that leaves the problem somewhere in the utility TextureLoader

[JAVA3D] Lightwave Scene Files

1999-12-03 Thread Anders Breivik
Hello everyone, Could anyone give me some advise about Java3D and the problems I ‘ve had with the (java provided) Lightwave 3D loader. I have created lightwave scenes and they load fine into Java3D. However, when a scene is imported, all objects in that scene becomes sub-nodes of the lightwave b

[JAVA3D] Lightwave Scene Files

1999-12-03 Thread Anders Breivik
Hello everyone, Could anyone give me some advise on Java3D and the problems I ‘ve had with the (java provided) Lightwave 3D loader. I have created lightwave scenes and they load fine into Java3D. However, when a scene is imported, all objects in that scene becomes sub-nodes of the lightwave bran

Re: [JAVA3D] adding objects dynamically

1999-12-03 Thread Guillermo E. Gutierrez
Hi Sophia, Yes you can add any objects to a running scene graph as long as you 1) put them under a BranchGroup (you can only add BranchGroups to a live scene graph), and 2) make sure the proper capability bits are set (Group.ALLOW_CHILDREN_EXTEND, I think is what you need). Hope this helps, -guill

Re: [JAVA3D] adding objects dynamically

1999-12-03 Thread Stephane Vermette
Hi, Yes you can! Here's an excerpt from my code: // Create a Canvas 3D canvas3D = new Canvas3D(null); // Create a simple universe. universe = new SimpleUniverse(canvas3D); // Create the root of the branch graph // Allow the capability to add new

Re: [JAVA3D] getting rotation angles from transform3D: does this really work?

1999-12-03 Thread Daniel Selman
Vladimir, As I said... DS> I wouldn't claim to be DS> able to explain the details of the algorithm off the top of my head, so if DS> you have questions or issues I suggest you consult the FAQ and your nearest DS> friendly mathematician (always a good person to know!). We have used the code belo

[JAVA3D] adding objects dynamically

1999-12-03 Thread sophia
Is there a way that I can add objects (Shape 3D) to an existing Java 3D scene while it is running? === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For gen

[JAVA3D] Smooth sphere?

1999-12-03 Thread Ronald Van Iwaarden
I am currently useing the sphere class to create a 3d earth using a texture map and outlines of land masses. However, the sphere seems fairly chunky and not nearly as smooth as I would like. Are there things I can do to improve the look of the default sphere? --Ron o The only th

Re: [JAVA3D] getting rotation angles from transform3D

1999-12-03 Thread Stephan Reiling
Hmm, how about this: - take vector (1.0, 1.0, 1.0). - apply matrix on vector - compute projection of vector on y,z plane - calculate angle between projection and old vector, this is your angle of rotation around the x-axis Do the same for x,z projection (rotation around y-axis) and y,z projecti

Re: [JAVA3D] getting rotation angles from transform3D: does this really work?

1999-12-03 Thread G . Veith
Hi, as matrix multiplication isn't cummutative and any homogenous matrix of transform3D can be made of arbitrary successive mutlplications, IMHO you cannot extract orientation by interpreting the matrix elements as an multiplication of predefined sin and/or cos-functions. This will work only in s

Re: [JAVA3D] getting rotation angles from transform3D: does this really work?

1999-12-03 Thread Vladimir Olenin
Hey, Daniel, does this really work in ANY case? Correct me if i'm wrong, but wouldn't this code work ONLY in case the figure was rotated ONCE only around each axis? As soon as we apply one more rotation to (RotX * RotY * RotZ) matrix, the value in (2, 0) cell, where normally sin(yAngle) IS stored,

Re: [JAVA3D] getting rotation angles from transform3D

1999-12-03 Thread Daniel Selman
Eric, As was pointed out (several times) this is a tricky topic, but here is some code that we have used successfully. The code is based on an algorithm from the Matrix and Quaternion FAQ (search the web). I have posted this code to the list before. The M+Q FAQ is an excellent reference for thes

Re: [JAVA3D] [JAVA 3D] OffScreen Rendering Problem

1999-12-03 Thread Vladimir Olenin
Possibly i'm wrong. And that's just a hunch. But this could be due to asynchronas nature of drawImage function. I came across some strange problems concerning not Canvas3D redrawing, but redrawing to the screen in general. I haven't resolved all of them, but it looks like they are due to how the d

Re: [JAVA3D] non-vertical vertical lines

1999-12-03 Thread Your Name
Hi, a simple way to model this would be (a transformation from old pixel coordinates xOld,yOld to new ones xNew,yNew): xNew=xOld+(xOld-cx)*(k1*r+k2*r^2) yNew=yOld+(yOld-cy)*(k1*r+k2*r^2) where cx,cy defines the principal point (the point where the camera looks at), r is the squared distance fro

[JAVA3D] Whats the best geometry

1999-12-03 Thread Your Name
Hi, I was wondering whats the best way to use the (sub-)classes of GeometryArray. Given a set of vertices and the necessary connection information, there are many ways to create the "geometry" of the object in question. Just to name a few (just take a look at the subclasses of GeometryArray: Tri

[JAVA3D] [JAVA 3D] OffScreen Rendering Problem

1999-12-03 Thread Darren Boyce
Hi -- I am working on a project that requires multiple document interfaces and 3D graphics. This requires a way to work around the problem of heavyweight canvas3D and the lightweight swing components. With the alpha release of j3d1.2 there is the option to render the canvas3D to an offscreen buff

Re: [JAVA3D] geting rotation angles from transform3D

1999-12-03 Thread Vladimir Olenin
Well, guys, it's already been said that there is no way to do it, at least not an easy way. Firstly, u can't extract rotation angles using ONLY 4x4 matrix stored in Transform3D. Someone out here described the principles of rotation matrix construction. The summary is that if u do numerous rotation

Re: [JAVA3D] rotation of scene graph

1999-12-03 Thread Vladimir Olenin
I'm Very sorry!!! I confused MouseNavigator behavior with KeyNavigator one. It is the last that has a bug for sure. As to the former one, i'm not sure at all. Possibly everything just OK with it, possibly it has the same bug too. David has a nice tutorial where in all examples MouseNavigator class

Re: [JAVA3D] rotation of scene graph

1999-12-03 Thread Vladimir Olenin
Yes, i guess so. Or u can register listeners (like it's done in utils MouseNavigator or KeyNavigator) and translate the event to them. The latter way is more convenient and could be easily extended or reused. But certainly that depends on the goal. vladimir -=V=- >---<===

[JAVA3D] non-vertical vertical lines

1999-12-03 Thread Hardy Henneberg
Does anybody know if there is a way to correct for vertical lines, which gets non-vertical in perspective? I think the problem decreases if you zoom in (using a narrow view-angle) - but I would like to have another solution. kind regards, Hardy Henneberg =

Re: [JAVA3D] geting rotation angles from transform3D

1999-12-03 Thread G . Veith
Hi, you can transform vector (0,0,-1) with the transform3D in question to receive its current orientation. Gernot [EMAIL PROTECTED] Eric Reiss <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent by: Discussion cc:

[JAVA3D] Bump-mapping/light coronas in java3D?

1999-12-03 Thread Tammo Freese
Hello, 1) Is it possible to use bump-mapping for textures in j3d? I haven't found a hint. The DepthComponent is only used for raster images? 2) How can I get light coronas in j3d? Please help! Tammo Freese === To uns

Re: [JAVA3D] JDK 1.3beta Speed?

1999-12-03 Thread Inaam Khan
Where are J3d1.2 alpha and JDK1.3beta available. Thanks in advance. Adios Inaam Afzal Khn On Thu, 2 Dec 1999, giles wrote: > Has anyone done speed testing using the beta JDK 1.3 release? We've got > some VRML models(using the player) that we have speed tested with it and we > are seeing a spee

Re: [JAVA3D] view - not simple view

1999-12-03 Thread Inaam Khan
Here is the example which was posted, although i tried it and it didn,t seem to work. If you can get it to work tell me how as well. On Thu, 2 Dec 1999, Gregory Hopkins wrote: > Hi, > > There seem to have been some good examples posted. I was wondering if anyone could >explain the > math invol

[JAVA3D] geting rotation angles from transform3D

1999-12-03 Thread Eric Reiss
I was wondering if you ever got an answer to the question you posted to the list: "Is there a way to determine the exact rotation angles for each axes from a given Transform3D?" This seems to be a common issue and I am fighting with it now. *