Re: [JAVA3D] still problems with transparent Objects and Text2d

2001-06-25 Thread Oliver Radfelder
Hi Thanks for your answer. I had searched the archive, but wasnt sure if I have the same problem. Especially because, since I have upgraded to 1.2.1 things are much better: the transparent area, which surrounds the black text pixels is not causing problems anymore. This was the case with the 1.2

[JAVA3D] Rand / Stars dissappear in the distance

2001-06-25 Thread Christian Bartel
Hi Corysia! Thanks to your suggestions I set up the stars background and it is really nice. As I do not have any needs of realistic star-ccordinates (it is all for a science-fiction thing), I used a random object (java.utils.*) where I get the coordinates by Random rand = new Random(); rand.next

Re: [JAVA3D] Rand / Stars dissappear in the distance

2001-06-25 Thread Artur Biesiadowski
Christian Bartel wrote: > How can I make those stars be far > away and still visible? Under Direct3D it seems that stars just dissappear > when a given distance is reached. Therefor I do only see a few of my 16000 > stars... There is something called far clipping plane. You do not see objects beh

Re: [JAVA3D] Rand / Stars dissappear in the distance

2001-06-25 Thread Joachim Diepstraten
Hi Christian > Random rand = new Random(); > rand.nextfloat(); > > I get values between 0 and 1, but no negatives... this results in a square > area filled with stars in the first quadrant... Is that the expected > behaviour? I thought the values should be both positiv and negativ... Yes read the

Re: [JAVA3D] heightfield, 2D-matrix --> 3D coordinate system

2001-06-25 Thread Olivier BANASZAK
Hello, I 've been searching in various places for the archive of this list, with no success. Could someone remind us the URL of the archive ? Thanks in advance... :-) Olivier | -Message d'origine- | De: Allen McPherson [SMTP:[EMAIL PROTECTED]] | Date: dimanche 24 juin 2001 21:05 | À:

Re: [JAVA3D] Rand / Stars dissappear in the distance

2001-06-25 Thread Christian Bartel
Hi Artur! > There is something called far clipping plane. You do not see objects > behind this. I think that you should put everything into > background node > and stay with small coordinates. How exactly "put in background node"? You mean, I should realize the star-background via an image on ba

Re: [JAVA3D] Rand / Stars dissappear in the distance

2001-06-25 Thread Christian Bartel
Hi! > Yes read the Javadoc for Math.random and you will see that's > the correct > behaviour. Actually I have a book (Go to Java 2) where is stated, that the function should return values positiv and negativ. I guess that is a bug in that book then... > Yes again, you should set the back clippi

Re: [JAVA3D] Rand / Stars dissappear in the distance

2001-06-25 Thread Joachim Diepstraten
Hi Christian > > the correct > > behaviour. > > Actually I have a book (Go to Java 2) where is stated, that the function > should return values positiv and negativ. I guess that is a bug in that book > then... Hmm I suppose so, drop the author a message I think he would be very glad and this mist

Re: [JAVA3D] heightfield, 2D-matrix --> 3D coordinate system

2001-06-25 Thread Justin Couch
Olivier BANASZAK wrote: > I 've been searching in various places for the archive of this list, with no > success. > Could someone remind us the URL of the archive ? Ye Olde Java3D FAQ says: http://archives.java.sun.com/archives/java3d-interest.html -- Justin Couch htt

Re: [JAVA3D] Labelling objects

2001-06-25 Thread Corysia Taware
Yes, rastering is what I'd rather do, but the speed hit is unacceptable. - Original Message - From: "Daniel Selman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 22, 2001 1:07 PM Subject: Re: [JAVA3D] Labelling objects > Corysia, > > I think Raster is probably what you

Re: [JAVA3D] Labelling objects

2001-06-25 Thread Corysia Taware
Yes, that's basically what I'm doing. I'm not having a problem with placing the text, really. The problem is updating the location of the text as the objects move. - Original Message - From: "John Wright" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 22, 2001 1:25 PM Su

Re: [JAVA3D] Install anywhere fails on NT4 SP6

2001-06-25 Thread Corysia Taware
I have a similar problem when installing on my laptop (win98se) over a network drive. Typcally, just copying the executable to my local drive solves the problem. Once in awhile, I'll have to run the install twice to get it to run, even when it is local. - Original Message - From: "Mark

Re: [JAVA3D] Rand / Stars dissappear in the distance

2001-06-25 Thread Corysia Taware
Yes, put it into the Background() object. Load up your geometry in one or more PointArray objects, then add it to the tree as a Background object. Here's a snippit of code. You also might be interested in how I changed the brightness of the stars with color. private BranchGroup createConten

Re: [JAVA3D] Skin and Bones/Muscles and brains

2001-06-25 Thread Corysia Taware
BTW, I just bought a GeForce2 MX400 w/ 64 megs and S-video out for US$98, including shipping. If you're willing to spend about $30 more than that, buy a Pro. I don't suggest getting a MX200. - Original Message - From: "John Wright" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunda

[JAVA3D] Screen Coordinates

2001-06-25 Thread Anand Pillai
How to get the screen co-ordinates for the mouse inside a behavior's processStimulus method that responds to a MOUSE_CLICKED event ? Thanks Anand Anand Pillai DELMIA Solutions India. 680, 8th Main, JP NAGAR II Phase, Bangalore 560 078. Tel: +91-80- 658 9858/59 Fax: +91-80- 658 9855. [EMAIL P

[JAVA3D] help with a scene saver

2001-06-25 Thread Borja Marcos Suárez
English - I want to add to my application a option to save the created scene to a file. This file must have a standard format like 3ds, dxf or vrml. Someone knows a utility that does it? The CyberVRML97 has a VRML97Saver but when I use it the program always hungs. I hope you can help

[JAVA3D] Determine z-buffer depth (16 vs 32)

2001-06-25 Thread Allan Andersen
Does anybody know how to determine if the current z-buffer is using 16 bits or 32 bits?

Re: [JAVA3D] Skin and Bones/Muscles and brains

2001-06-25 Thread John Wright
David, Are you talking about 1,000,000 vertices visible at all times? Are you going to do collision detection or not as you navigate? How texture intensive will your scene be? How many lights would you be using? Just as a guess you probably could approach that without CD (collision detection)

[JAVA3D] Excetions

2001-06-25 Thread Ben Arbel
Hi J3Ds   When Running my applications i get this exception about every second time i run while the other 50% are loading and running normally.. any ideas ?   Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size:0    at java.util.ArrayList.RangeCheck(ArrayLi

Re: [JAVA3D] performance By-ref versus using setNNN methods

2001-06-25 Thread Uma Sabada
Dave: > 1. If we use a geometry updator and use the set() methods on non-ref > geometry, but only update the normals and coords does the texcoords and > colors still get sent to the card that frame? Yes. All components (changed or not) will be sent down every frame. Typically, there are several

Re: [JAVA3D] Install anywhere fails on NT4 SP6

2001-06-25 Thread John Wright
I can second this... the installer does seem to fail every once in a while (Win98SE - there are documented problems with WinME). It has worked to simply run it again. - John Wright Starfire Research Corysia Taware wrote: > > I have a similar problem when installing on my laptop (win98se) over a

Re: [JAVA3D] Screen Coordinates

2001-06-25 Thread Oliver Radfelder
Hi Anand Have a look into the code of the utility-package. There is the class MouseTranslate, which gets the java.awt.event.MouseEvent from the WakeupOnAWTEvent. You can use this as usual (e.g. getX()). Is this an answer to your question? Bye, Oliver ==

Re: [JAVA3D]

2001-06-25 Thread Anand Pillai
Hi Ashish, The generalized algorithm Pg = Integral( r.m(dr))/Integral(dm) where r is a distance vector and m (dr) is mass density. For simple primitives like Sphere/Cone/Cylinder/Box it is the center of the volume itself if you assume uniform distribution of mass , which your de

Re: [JAVA3D]

2001-06-25 Thread Anand Pillai
A small correction. For cone, Pg = r0 + delta*unit(r0->r1) delta = (h*sqr(R0)/2 + sqr(R1-R0)*cube(h)/4 + 2*(R1-R0)*R0*sqr(h) /3) / (sqr(R0) + sqr(R1-R0)*sqr(h)/3 + (R1-R0)*R0/h) h = height of cone R0 = Radius of smaller circle of cone

Re: [JAVA3D]

2001-06-25 Thread Anand Pillai
Ashish, The generalized algorithm Pg = Integral( r.m(dr))/Integral(dm) where r is a distance vector and m (dr) is mass density. For simple primitives like Sphere/Cone/Cylinder/Box it is the center of the volume itself if you assume uniform distribution of mass , which your descr

Re: [JAVA3D] help with a scene saver

2001-06-25 Thread Paul Byrne
Hi Borja, Java3D Fly Through (available from the Java3D home page) includes a utility for reading and writing scene graphs to a high performance binary file format (j3f). Data stored in this format loads much quicker than data stored in the less efficient text based formats (often by an order of

Re: [JAVA3D] Determine z-buffer depth (16 vs 32)

2001-06-25 Thread Joachim Diepstraten
Hi Allan > Does anybody know how to determine if the current z-buffer is using 16 bits or 32 >bits? Hmm. you could try a readRaster with a DepthComponentInt and look at the values. The farest away should be 2^N-1 Where N is the number of bytes for Z-buffer. Or you could try a commandline switch

Re: [JAVA3D] Skin and Bones/Muscles and brains

2001-06-25 Thread Joachim Diepstraten
Hi > BTW, I just bought a GeForce2 MX400 w/ 64 megs and S-video out for US$98, Hmm isn't that the 64mb SDRAM Version? If yes I read it's actually slower than the 32mb SDRAM Version. > including shipping. If you're willing to spend about $30 more than that, > buy a Pro. I don't suggest getting

[JAVA3D] Quicktime for Java

2001-06-25 Thread Mark Ferneau
I've been working with JMF 2.1.1 to add texture animation to our package and it's relatively straightforward. However, I've noticed that the movie formats supported by JMF are not as complete as I might hope for. In particular there are a number of compressors that are not supported at the curre

[JAVA3D]

2001-06-25 Thread Ashish Aggarwal
Hello Anand! Thanks very much for your help. I really appreciate it and because of this, I went a long way in the program. But one problem is coming, once objects are on the screen and you click with the mouse to draw line between them, null pointer exception is thrown. I tried to use PickCanvas

Re: [JAVA3D] performance By-ref versus using setNNN methods

2001-06-25 Thread Yazel, David J.
We implemented our skin so that we can change a static and it uses either by-ref or setNNN methods. It was my hope that if we throttled down the number of frames per second that we were actually making changes to the skins then we could optimize the scene. But the sad fact is (as you say below)

Re: [JAVA3D] Plz help!

2001-06-25 Thread Ashish Aggarwal
Hello David! Thanks for your reply. If I use bounds( your code) to calculate center of two primitives then there is one problem. Like if I take two SIMILAR shape3D objects and give them different translation and rotation before finding there centers using bounds, there centers are same. Why its

Re: [JAVA3D] Plz help!

2001-06-25 Thread David Yazel
Are you getting the bounds before or after the node is live? if you have the bounds pre-transform, then try getting the localToVWorld transform fro your shapes and use it to transform the center point of the bounds. David Yazel - Original Message - From: Ashish Aggarwal <[EMAIL PROTECTED

[JAVA3D] coordinates:getLocalToVworld

2001-06-25 Thread Z H
Hi all, if I apply a rotation to a transformGroup T and then call T.getLocalToVworld(aTranform3D). aTransform3D.get(aMatrix) Ifound the aMatrix is an identity matrix: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 why the rotation does not change the local coordinates? what does the getLocalToVwo

Re: [JAVA3D] coordinates:getLocalToVworld

2001-06-25 Thread Leyland Needham
getLocalToVworld, only grabs the transforms before a node, not the transforms of a node. Like for example if you have a Shape3D be the child of T, then calling getLocalToVworld from the Shape3D, will return the rotation of T. Leyland Needham ==

Re: [JAVA3D] IK and Skeletal Animation

2001-06-25 Thread Bob Dengle
Hi. Thanks for the info. I was busy seaching graphics and game development sites for articles on inverse kinematics hoping there was information on CCD. :-) The best resource i came up with was Chris Welman's PhD thesis on Inverse Kinematics. It discusses methods for implementing an ik system, b

Re: [JAVA3D] Skin and Bones/Muscles and brains

2001-06-25 Thread Krikheli, David
John, I appreciate your spending time thinking about the question. My answers follow. Also, I've included a general description of the application I am thinking about. I am to visualise spatial points carrying information about some measurements. The points form a surface - not a solid body. The

[JAVA3D] misuse of coordinates in the sun's MouseRotate.java ?

2001-06-25 Thread Z H
The sun's example: MouseRotate.java is difficult to accurately control the pose of the object. It is not because of the inaccurate movement of the mouse , but actually the object is not following the draging direction. I explore the source code of the example, find it uses rotX and rotY to rota

Re: [JAVA3D] IK and Skeletal Animation

2001-06-25 Thread Fred Klingener
From: "Bob Dengle" <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 7:45 PM > Hi. > > Thanks for the info. I was busy seaching graphics and game development sites > for articles on inverse kinematics hoping there was information on CCD. :-) > > The best resource i came up with was Chris Welman's

[JAVA3D] Problem in Collision

2001-06-25 Thread Amit Jindal
Title: Problem in Collision Hi All, I am facing one problem regarding collision. I had made one application in which I had made all objects pick able. So that user can pick a particular object and place that object at desired position. I want that when one object collides with anothe

[JAVA3D] Retained

2001-06-25 Thread Daniel Balaguer Yagan
hi there all, just one simple question, has anyone of you used/come across with the following classes: AppearanceRetained, TransformGroupRetained, Shape3DRetained...etc.. -- all those ___Retained classes? I think Sun uses them to know whether something has changed/added.. any info is apprec