[JAVA3D] How to do Open Invetor's viewAll() methos in Java3D

2000-08-17 Thread Magnus Olofsson
Dear all. Is there a way to zoom out to capture the whole scene on screen? I am new to Java3D but have done some Open Inventor in the past. In OIV there is a viewAll() method to call that does just that. If it is possible to do in Java3D, I would appreciate some help to implement it. Code extra

Re: [JAVA3D] Robot Arm

2000-08-17 Thread W.M.Lau
Hi, Long I am currently working on the similar project. My project is also trying to produce a robot arm simulation. May be we can team up together and share our ideas. I have only started learning java3d on my own. I 've found out that the question you've asked depends on the pivot point of the

[JAVA3D] Wireframe polygon attribute broke in J3D DirectX

2000-08-17 Thread J. Lee Dixon
A few weeks ago, I mentioned that I had tried enabling a "wireframe" appearance by using PolygonAttributes.setPolygonMode(poly.POLYGON_LINE). The items appear normal (as wireframes, unfilled) in the OpenGL implementation of Java3D, but that "funny" things happened on a machine running the DirectX

Re: [JAVA3D] Wireframe polygon attribute broke in J3D DirectX

2000-08-17 Thread Mark Ferneau
Joel, While I didn't look at the code, I did run it and it appears to working as one might expect. I've attached an image below of what I am seeing. Platform: Windows 2000 JDK:1.3 J3D:1.2 Direct3D Beta H/W:Compaq Armada Laptop with ATI Mobility-P At 0

Re: [JAVA3D] Robot Arm

2000-08-17 Thread Siau Tan Long
I think to rotate about a vector, we could be using the class AxisAngle4f. E.g: to rotate the object about a vector specified in axisAngle and the angle of rotate is also stored in axisAngle. -- targetTG.getTransform(rota

Re: [JAVA3D] Picking the right object

2000-08-17 Thread Siau Tan Long
> > I have a cube and a cylinder in my scene. > > I wanted to have PickRotateBehavior on the cube and PickRotateBehavior along > > the y-axis for the cylinder. > > How do I do that? > > How do I distinguish which object I had picked? > > > > Simply by attaching two different behaviors to each obje

Re: [JAVA3D] Rotation with respect to 2 3d points

2000-08-17 Thread John R.
First of all, thanks to Carl and Niklas for thier hints and help. I ended up with the following approach. (Which seems to work in all the test data I can find.) The folloing code/math/hidden errors is/are GPL. Use/abuse as you feel the need. This started out as the "Arrow" class I found on j3d.o

Re: [JAVA3D] Wireframe polygon attribute broke in J3D DirectX

2000-08-17 Thread J. Lee Dixon
Mark, thanks for checking it on your machine... My setup is a Compaq Armada 1750 laptop, RAGE LT Pro AGP 2X JDK 1.3 J3D 1.2 Direct3D Beta Windows 98 I've attached my image so you can see what "funny" means... ;-P -Lee -Original Message- From: Mark Ferneau [mailto:[EMAIL PROTECTED]] Sen

Re: [JAVA3D] How to do Open Invetor's viewAll() methos in Java3D

2000-08-17 Thread Jeff Roberts
Hi, If you look in the VRML Viewer source. They use a transform to scale the entire world to 1 meter then set the viewpoint back to show the whole world. rgds JR === To unsubscribe, send email to [EMAIL PROTECTED] and includ

[JAVA3D] Java3D 1.2 Beta DirectX

2000-08-17 Thread Volopich Heinz
When do you expect a bug-fix version of 1.2 Beta for DirectX ? There are some bugs, i.e. 4309059 background geometry appears very close to the camera vs 1.1.3 (in 1.2, too !!!) 4328532 Textures for the bottom of cones and cylinders are upside-down 4332793 View transform & object transform not

[JAVA3D] Any info on this book???

2000-08-17 Thread Bob Gray
Does anyone know anything about the book "Pure Java 3D: Advanced Graphics and Animation" by Charles Drutman? I see it listed at amazon.com but there is no description. Bob Gray === To unsubscribe, send email to [EMAIL PROTEC

Re: [JAVA3D] How to do Open Invetor's viewAll() methos in Java3D

2000-08-17 Thread Paul Byrne
Here is a method I use to set the view TransformGroup so that everything inside a BoundingSphere is visible. The viewers position is set to the center of the bounding sphere and then moved back along the Z axis until radius of the sphere is within the view frustum. The calculation includes a sca

[JAVA3D] Terrible frame rates

2000-08-17 Thread Bobby Martin
I put up some questions here a couple of weeks ago about terrible frame rates I'm getting. Many people seem to have hardware acceleration up and going with no problems. Since this demo has failed to run at acceptable speeds on so many different PCs, I'd like to get someone who's sure that they h

Re: [JAVA3D] Wireframe polygon attribute broke in J3D DirectX

2000-08-17 Thread Kelvin Chung
Hi, This example works fine under GeForce & TNT graphics card. Looks like it is a driver bug. - Kelvin -- Java 3D Team Sun Microsystems Inc. >MIME-Version: 1.0 >Date: Thu, 17 Aug 2000 07:27:04 -0400 >From: "J. Lee Dixon" <[EMAIL PROTECTED]> >Subject: [JAVA3D] Wireframe polygon a

Re: [JAVA3D] Terrible frame rates

2000-08-17 Thread Yazel, David J.
One thing I have found is that if I make one large mesh and texture map it, it renders more slowely than if I make multiple meshes and then tile them. I think it is related to the texture. If you turn off texture mapping, and go with color only does your framerate speed up? Dave Yazel > ---

Re: [JAVA3D] Terrible frame rates

2000-08-17 Thread Gregory Bradford
Bobby, In "Flying" mode the frame rate on my computer appears to be fine. Seems quite smooth to me. Don't know what the frame rate is but from other applications where I know I get frame rates of 60fps I know your program certainly is above the 2fps rate. But, when I toggle to "Following" mod

Re: [JAVA3D] Java3D 1.2 Beta DirectX

2000-08-17 Thread Kelvin Chung
Hi, >When do you expect a bug-fix version of 1.2 Beta for DirectX ? >There are some bugs, i.e. >4309059 background geometry appears very close to the camera vs 1.1.3 >(in 1.2, too !!!) >4328532 Textures for the bottom of cones and cylinders are upside-down >4332793 View transform & object tr

Re: [JAVA3D] Terrible frame rates

2000-08-17 Thread J. Lee Dixon
Well, I _know_ I have 3d hardware acceleration working. Next, yes, I do see a terrible frame rate... but frame rate depends on several things. First, of course, is having 3d acceleration, but second is what you as a programmer do _between_ frames. If you do tons of operations between frames, it'

[JAVA3D] How to change a Cone Color

2000-08-17 Thread Malguy, Eric G.
Hi all, Does anyone know how to change the color of a cone in 3D? Depending on some kind of value the color of the cone need to be changed without creating a new cone. All I need to do is to update a specific cone color. Thanks for your help, Eric public class ConeSensor { private static fl

Re: [JAVA3D] Terrible frame rates

2000-08-17 Thread Bobby Martin
You get TONS of points. I really appreciate you looking into this; I haven't really been optimizing my code because I was assuming it was a hardware acceleration problem. You are 100% correct that the triangle search is linear (it used to be a tree search, but the other reasons that I needed the

Re: [JAVA3D] Java3D 1.2 Beta DirectX

2000-08-17 Thread Shawn Kendall
That time has come once again...:-) When will the 1.2.1 beta OpenGL or DirectX be released? Kelvin Chung wrote: > Hi, > > >When do you expect a bug-fix version of 1.2 Beta for DirectX ? > >There are some bugs, i.e. > >4309059 background geometry appears very close to the camera vs 1.1.3 > >(

Re: [JAVA3D] Java3D 1.2 Beta DirectX

2000-08-17 Thread Yazel, David J.
Hey Shawn, did you guys take Haze down? I was there the other day and could not find the pages. Dave Yazel > -- > From: Shawn Kendall[SMTP:[EMAIL PROTECTED]] > Reply To: Discussion list for Java 3D API > Sent: Thursday, August 17, 2000 5:13 PM > To: [EMAIL PROTECTE

Re: [JAVA3D] Terrible frame rates

2000-08-17 Thread Thomas McKay
You might want to check out OptimizeIt (www.optimizeit.com)... It's cleared up many-a problem for me. > -Original Message- > From: Discussion list for Java 3D API > [mailto:[EMAIL PROTECTED]]On Behalf Of Bobby Martin > Sent: Thursday, August 17, 2000 4:30 PM > To: [EMAIL PROTECTED] > Sub

[JAVA3D] Haze - was Re: [JAVA3D] Java3D 1.2 Beta DirectX

2000-08-17 Thread Shawn Kendall
It's at www.fullsail.com\loader At the end of the month we will have a new update. "Yazel, David J." wrote: > Hey Shawn, did you guys take Haze down? I was there the other day and could > not find the pages. > > Dave Yazel > > > -- > > From: Shawn Kendall[SMTP:[EMAIL PROTECTED]

[JAVA3D] Question regarding ALLOW_TEXTURE_ATTRIBUTES_WRITE and glDrawArrays

2000-08-17 Thread Jack Pien
hi,   this question is more or less for the Java3D/Sun guys -   i was wondering if anyone knows why Java3D ends up called glDrawArrays() to draw Triangle Meshes when appearance.setCapability( Appearance.ALLOW_TEXTURE_ATTRIBUTES_WRITE ) is set - it actually happens when Appearance.ALLOW_APPE

[JAVA3D] Solaris OpenGL 1.2* and Java3D 1.1.2 -- are they compatible?

2000-08-17 Thread Andrew R. Thomas-Cramer
We've been using Java3D 1.1.2 and, on our Sun Ultra, OpenGL 1.1.2. Our client is using OpenGL 1.2, but is experiencing application crashes during some Java3D code (specifically, "JNI panic ..." during javax.media.j3d.GeometryArrayRetained.execute()). Is Java3D 1.1.2 compatible with Solaris OpenGL