Re: [JAVA3D] How to get rid of extra lines?

2000-05-22 Thread Pasi Paasiala
Hello Kelvin and Lee, I'm using the latest OpenGL version (1.2) of Java3d, although this the problem has been there already in version 1.1.3. The reason why I'd like to get rid of those lines is that my geometry represents buildings and there each line should have a meaning. Attached is a scree

[JAVA3D] user interaction with parameters input at runtime

2000-05-22 Thread Tiza Iskandar
Hi all,     I need help. I'm making a 3D shape. This shape has parameters like height and width. Usually these parameters are already set up and fixed at the main class. How can I make it so that during runtime I can change the parameters and directly changes / adds onto the shape. So it'll

[JAVA3D] Multi Texture Question

2000-05-22 Thread Andrew Barras
Hey gang, I am trying to create a GeometryArray with multiple texture maps. I am not clear however how to specify multiple sets of UV coordinates. Are they just all put in one big array? If so, how do we specify which vert goes with which? I'm confused. Any help would be appreciated. Thanks

Re: [JAVA3D] RotationInterpolator

2000-05-22 Thread HAroldo Pereira
Hi Kelvin I have two problem. The first is descrive below. The second is that i dont Know how use the correct form the method getNormals. I used this method and printed the values in the screen. The values were (0.0,0.0,0.0). Ah ! This application create a system collision detection. I use s

Re: [JAVA3D] GetNormals problem

2000-05-22 Thread HAroldo Pereira
Hi I waited that Java3D calculated for the user the vector of the normals. Why is there the constant GeometryArray.NORMALS. When I do use this constant. For exemple : TriangleArray tetra = new TriangleArray(12,GeometryArray.COORDINATES | GeometryArray.COLOR_3 | GeometryArray.NORMALS); [

Re: [JAVA3D] J3D 1.1.3 DX download

2000-05-22 Thread Justin Couch
Selim Tuvi wrote: > > Hi Justin, when I tried to run the executable to install it, it gave me a > "Package for the Web" error. errr.um. NFI. Anybody else seen this/care to comment? I've only got an NT and Linux box at home so I can't test the DX install routines. -- Justin Couch

Re: [JAVA3D] object origin

2000-05-22 Thread Justin Couch
Kevin Bartholomew wrote: > I would like to know which methods in the java3d API would allow me to > change the origins of where a shape will appear in the scene, considering > that the default is 0,0,0. Use transforms to move the object around. I have the feeling that you don't understand how sc

Re: [JAVA3D] GetNormals problem

2000-05-22 Thread ballard andrews
I don't see anywhere in your snippet that you have calculated the normals - could it be that you are expecting Java3D to do this? it doesn't - its not like eg., Inventor or Performer - you have to do it yourself i.e., [v1-v2]x[v2-v3] will give you the normal for a flat polygon, then you average ad

[JAVA3D] Swing / Java3D event handling

2000-05-22 Thread Will Wong
Hi, I'm trying to have a swing button trigger a live behavior in my scenegraph. Does anyone have a clue as to how to do this directly? In demo code that I have found, people have been letting the user set variables (through a UI) and having the behaviors wakeup at regular intervals to read the va

Re: [JAVA3D] Bug in Texture

2000-05-22 Thread Daniel del Río
Thanks Uma, I have resolved the problem. The drivers from the graphics card (Creative Exxtreme) were obsolete. I downloaded the latest and all works fine. > Dani: > > Are you using Java3D 1.2 FCS? If yes, what is your > configuration? I was unable to reproduce the bug. I tried t

[JAVA3D] Creating SpotLights

2000-05-22 Thread Sofia Sundström
I am trying to create a spotlight, that is supposed to cast light like a torch. It is placed in the camera. My problem is that when I get close to an object, the spotlight goes out and the object turns black. I want the object to get brighter as the camera (and spotlight) approaches it (as it woul

[JAVA3D] BadTransformException question

2000-05-22 Thread Derek Augustus Ruths
I've been developing an app in which I change the translate and rotate attributes of TransformGroups residing above both scene components and the viewplatform. While I stick to translations, I'm fine. As soon as I start rotating objects, I consistently generate a BadTransformException (n

[JAVA3D] Yet another Intersection Question

2000-05-22 Thread Bob Shankle
Hi Folks, I know this question must have been asked before, so hopefully the answer will come back to me quickly. I have a VRML terrain file. I have an object going in a circle over the terrain (150m above). Does anyone have an example of getting the elevation from a point on the ter

[JAVA3D] object origin

2000-05-22 Thread Kevin Bartholomew
Hello everyone, I would like to know which methods in the java3d API would allow me to change the origins of where a shape will appear in the scene, considering that the default is 0,0,0. Thank you ahead of time === To unsu

Re: [JAVA3D] RotationInterpolator

2000-05-22 Thread Kelvin Chung
Hi, Can you please send us a test program for investigation ? Thanks. - Kelvin Java 3D Team Sun Microsystems Inc. >X-Originating-IP: [200.246.10.79] >Mime-Version: 1.0 >Date: Mon, 22 May 2000 13:02:40 EST >From: HAroldo Pereira <[EMAIL PROTECTED]> >Subject: [JAVA3D] RotationIn

Re: [JAVA3D] New picking semantics in 1.2

2000-05-22 Thread Chien Yang
John, The only outstanding bug we've on picking util. in 1.2FCS is : BugId 4336095 : Picking using GEOMETRY_INTERECT_INFO fail on strip/fan geometry. This bug fail to check for intersection on the last triangle in the geometry. It will be fixed in the next Java 3D release. If you think y

Re: [JAVA3D] J3D 1.1.3 DX download

2000-05-22 Thread Selim Tuvi
Hi Justin, when I tried to run the executable to install it, it gave me a "Package for the Web" error. Thanks Selim Tuvi Rockwell Science Center |+---> || Justin Couch | || | || | ||

Re: [JAVA3D] How to get rid of extra lines?

2000-05-22 Thread Kelvin Chung
Hi Pasi, Are you using DirectX version v1.1.3 of Java3D ? Using OpenGL version of Java 3D should work fine. Thanks. - Kelvin -- Java 3D Team Sun Microsystems Inc. >MIME-Version: 1.0 >Content-Transfer-Encoding: 7bit >X-Priority: 3 >X-MSMail-Priority: Normal >X-MimeOLE: Produced By

Re: [JAVA3D] Java3D and JMF

2000-05-22 Thread Warren Dale
David A couple of comments: If you are NOT using audio thru Java 3D then don't initial the Java3D audio device. If you want to run audio from both, please try initialing JMF first then Java3D. Java3D audio device attempts to make J3D audio device initialization friendly in that it queries to see

Re: [JAVA3D] Bug in Texture

2000-05-22 Thread Uma Sabada
Dani: Are you using Java3D 1.2 FCS? If yes, what is your configuration? I was unable to reproduce the bug. I tried the test program on Java3D 1.2 FCS both on Solaris and windows (windows98 with GeForce). -Uma > Date: Sat, 20 May 2000 18:51:19 +0200 > From: "Daniel del Río" <

Re: [JAVA3D] Fw: [JAVA3D] Picking GeometryInfo Geometry

2000-05-22 Thread Shawn Kendall
Mauro Fabozzi wrote: > I've solved my problem using TRIAGLE_ARRAY instead of TRIANGLE_FAN_ARRAY. > Is it possible that the picking on GeometryInfo doesn't work with an idexed > goemetry? There is a known bug in the Pick utils code, where picking any Strip geometry type can fail or be incorrect.

[JAVA3D] RotationInterpolator

2000-05-22 Thread HAroldo Pereira
Hi In my apllication I use two different behavior objects: RotationInterpolator (interpolator extends behavior class) and WakeupOnTransformChange (WakeupCriterion of my second behavior class). In my virtual world there is one moving object that use Object RotationInterpolator. I implement

[JAVA3D] How to use getNormals

2000-05-22 Thread HAroldo Pereira
Hi How I get the Normal Vector of the tetrahedron create with TriangleArray. My class tetrahedron is below: import javax.media.j3d.*; import javax.vecmath.*; class Tetrahedron extends Shape3D { public Tetrahedron(float x, float y, float z, float s) { super(); float xsize

Re: [JAVA3D] java3D

2000-05-22 Thread luigi
Yes, you have to put this line of code: JPopupMenu.setDefaultLightWeightPopupEnabled(false); It's a problem for mixing heavyweight and lightweight components. Daniel Hirsch wrote: > I have wrote a Java3D programm. On the top I included a JMenuBar (Swing > Component). But the canvas3D of Ja

Re: [JAVA3D] java3D

2000-05-22 Thread Juergen Neubauer
Hi ! use this for tooltips and for menus: ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false); JPopupMenu.setDefaultLightWeightPopupEnabled(false); hopethishelps -Juergen. Daniel Hirsch schrieb: > I have wrote a Java3D programm. On the top I included a JMenu

Re: [JAVA3D] Incredibly strange bug in Java3D 1.2 FCS

2000-05-22 Thread Chien Yang
Young, Please send us a test program. - Chien Yang. Java 3D Team. > From [EMAIL PROTECTED] Sat May 20 19:54:53 2000 > X-Originating-IP: [210.54.208.205] > Mime-Version: 1.0 > Date: Sat, 20 May 2000 19:46:34 PDT > From: Young Ly <[EMAIL PROTECTED]> > Subject: [JAVA3D] Incre

[JAVA3D] java3D

2000-05-22 Thread Daniel Hirsch
I have wrote a Java3D programm. On the top I included a JMenuBar (Swing Component). But the canvas3D of Java3D covers the JMenuItems, so that the JMenuItems in the JMenus are not visible. Is there any solution for this problem ? ===

Re: [JAVA3D] GetNormals problem

2000-05-22 Thread HAroldo Pereira
Hi I dont understand this solution below.?? I wait any answwer. HAroldo >From: Mauro Fabozzi <[EMAIL PROTECTED]> >Reply-To: Mauro Fabozzi <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: [JAVA3D] GetNormals problem >Date: Mon, 22 May 2000 07:58:34 +0200 > >- Original Message

Re: [JAVA3D] New picking semantics in 1.2

2000-05-22 Thread John A. Tenney
I had similar problems, and my conclusion was that it performs a "pickRandomly" type of function. So I moved back to the old PickObject API, which at least seems to work. Has there been a bug report about this? I didn't report it because I saw so many people in this group complaining about picking

Re: [JAVA3D] Rendering performance of different file formats

2000-05-22 Thread J. Lee Dixon
Well, I just move to using this driver as well and all is well... polygon attributes no longer change the frame rate. Hmph, it was just the driver all along. Still seems kinda funny. I wonder if anybody in the Java3D team would care to figure out why... Well, thanks for all your help. ---

Re: [JAVA3D] Rendering performance of different file formats

2000-05-22 Thread Rob Nugent
Lee, I'm running in 16bit with the 5382b08 driver from ATI's site. When I moved to this driver, my performance increased noticably. This was the most stable and fastest driver from ATI that I've found for my video card. It's claimed to be a 'beta' driver, but if that doesn't bother you or you

Re: [JAVA3D] Rendering performance of different file formats

2000-05-22 Thread Rob Nugent
Lee, FYI - I just tried true color and I get the same results as for 16bit (Around 50fps both with and without 'runItSlow') Rob J. Lee Dixon wrote: > I am running NT 4.0, Svc Pack 6. My video driver version is 5.1.118, 4.0.0 > Also, I'm running true color... maybe I'll try 16bit... > > Thanks

Re: [JAVA3D] Rendering performance of different file formats

2000-05-22 Thread J. Lee Dixon
I am running NT 4.0, Svc Pack 6. My video driver version is 5.1.118, 4.0.0 Also, I'm running true color... maybe I'll try 16bit... Thanks... -Original Message- From: Rob Nugent [mailto:[EMAIL PROTECTED]] Sent: Monday, May 22, 2000 6:03 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subj

Re: [JAVA3D] Rendering performance of different file formats

2000-05-22 Thread Rob Nugent
Lee, I ran this on my machine and I get the same results for both runItSlow set to true or false (i.e ~83fps). This is on WinNT 4.0, ATI Rage Pro 8MB, 400Mhz PII, JDK 1.3, Java3D 1.2 FCS. I tried with JDK 1.2.2 and get the same results. Are you using WinNT ? If so what video driver version, vi

[JAVA3D] Rendering performance of different file formats

2000-05-22 Thread J. Lee Dixon
I believe I have finally nailed down what I think is slowing down the performance for models created from 3DS (and other) files. After debugging the Load3DS code, I found that by just removing the addition of PolygonAttributes to the Appearance objects that the rendering speed went dramatically u

[JAVA3D] Fw: [JAVA3D] New picking semantics in 1.2

2000-05-22 Thread Mauro Fabozzi
I met the same problem with Java3D 1.2. I've solved the problem using the pickCanvas. If it can be useful, i've attached my class that allow to pick the first face that compose a dodecahedron (my dodecahedron is made using a group of shape3d where each geometry is obtained from a GeometryInfo stru

Re: [JAVA3D] How to get rid of extra lines?

2000-05-22 Thread J. Lee Dixon
It sounds like you are building a box using TriangleStrips of some sort. Each side of the box is actually made of 2 triangles, thus the diagonal line is shown. Perhaps using a QuadArray will actually create a 4-vertex polygon (instead of the 2 3-vertex triangles) for each side. BTW, most video h

[JAVA3D] New picking semantics in 1.2

2000-05-22 Thread Dvorak, Daniel J.
After upgrading to 1.2 I got deprecation messages about my picking code, and decided to change it to comply with the newest API. I used pickClosest before, and since there's a method with the same name, expected it to work the same way (i.e. - get a reference to the first node in the scene graph

[JAVA3D] Fw: [JAVA3D] Picking GeometryInfo Geometry

2000-05-22 Thread Mauro Fabozzi
I've solved my problem using TRIAGLE_ARRAY instead of TRIANGLE_FAN_ARRAY. Is it possible that the picking on GeometryInfo doesn't work with an idexed goemetry? Thanks to Daniel Dvorak for the reply. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May

[JAVA3D] How to get rid of extra lines?

2000-05-22 Thread Pasi Paasiala
Hello, I'm having a problem with extra lines that are shown for example in a box, when I set the polygon mode to PolygonAttributes.POLYGON_LINE. In addition to the outline of the box there are also diagonal lines that go from one corner of the box to another. Does anyone know how to get rid of th