Re: [JAVA3D] Directional Light

2002-10-10 Thread Brad Christiansen
Hi, Can you not simply remove orignal d.light form the scene and add a new one which points in the new direction? Cheers, Brad Stoney Jackson wrote: > > > Sorry, I think I've made a mistake, the directional light is actually > point > > TO original from the location you specified. But how ca

Re: [JAVA3D] Swing components Flicker

2002-10-10 Thread Pasi Paasiala
Not that.   Open Display Properties Select the Settings tab Press Advanced   In the new dialog   Select Troublesshooting tab and reduce the HW acceleration (one tick should suffice)   Pasi -Original Message-From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Be

Re: [JAVA3D] Swing components Flicker

2002-10-10 Thread Jonathan Leong
Tried reducing from 32 bit to 16 bit, to no avail.   ---Jonathan Leong[EMAIL PROTECTED]   - Original Message - From: Pasi Paasiala To: [EMAIL PROTECTED] Sent: Thursday, October 10, 2002 10:50 PM Subject: Re: [JAVA3D] Swing components Flicke

Re: [JAVA3D] Swing components Flicker

2002-10-10 Thread Pasi Paasiala
A customer of us had a similar kind of problem in her computer. It was solved by reducing the hardware acceleration from Display Settings/Troubleshooter. (Assuming you are running Windows).   Pasi -Original Message-From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]

Re: [JAVA3D] J3D core is using com.sun classes!

2002-10-10 Thread Justin Couch
Scott Rutledge wrote: > Based on the stack trace, I'd say it's the VRML loader that's using the > j3dutils classes (in the behaviors it creates). Well you don't seem to be able to read stack traces too well. Notice that the call is javax.media.BranchGroup and then about 10 java internal classes b

Re: [JAVA3D] Box

2002-10-10 Thread Justin Couch
Andy wrote: > Hi, I would like to know how to use TriangleStripArray to generate a box. I > know I can use primitive Box in Java3D API but when I set the Box into > wireframe, it doesn't show wireframe, instead it shows white faces, thus I > cannot look at it and learn the way it generate a box.

Re: [JAVA3D] Is this possible?

2002-10-10 Thread Justin Couch
A. Murat Tanyer wrote: > I designed a user interface and from this I want to load my 'scenegraph > data' during the run time. For example, lets say that I want to load > different VRML files during the run time by a JFileChooser. Look at the Loader API in com.sun.media.j3d.loader. This will do y

Re: [JAVA3D] How To Load & Render VRML with Java3d with Sun's VRML Loaders.

2002-10-10 Thread Alan Hudson
P. Flavin wrote: > > > Well, No. > > That is not the only way to load VRML ( .wrl ) files. > > You can use code Sun created, it works well, in a browser, > and out, from local and remote files on the web, and you > can load files from a command line, a list box, or using > a pop-up file box (

Re: [JAVA3D] model format

2002-10-10 Thread Justin Couch
sniper_bat wrote: > hello everybody! > I am a beginner. > who can tell me how many model file are supportted by JAVA2 3D API now? > if DirectX's .x file can be load by JAVA3D API? Java3D does not support any file formats. You need to create or use somebody else's loader. There are a large collect

[JAVA3D] Swing components Flicker

2002-10-10 Thread Jonathan Leong
Hi,   I have a JFrame which loads both Canvas3D and JPanel at BorderLayout.Center and BorderLayout.South respectively.   The JPanel consists of the usual components such as JTextFields and JButtons. Problem is when i click on any of the components on the JPanel, i am experiencing real bad fl

[JAVA3D] Increased jerkiness resizing windows

2002-10-10 Thread Alejandro Allievi
Hi all, Has anybody noticed increased jerkiness when maximizing, minimizing or restoring windows after installing J3D? I'm using Win2000. Thanks for any tip. Alejandro === To unsubscribe, send email to [EMAIL PROTECTED] an

Re: [JAVA3D] Running greyscale textures into colour/alpha channels

2002-10-10 Thread Stoney Jackson
Ok, after much thought, I don't think this is possible, and here is why. We have the RGBA in 4 separate 8bit/pixel images. The operation we want to accomplish is lshift(R,24) + lshift(G,16) + lshift(B,8) + A. However, we're trying to accomplish this with a BLEND, which has the form of C' = B

[JAVA3D] View object

2002-10-10 Thread Andy
Hi all. I have a program that shows a box in the original. My program is using virtual universe instead of simple universe since I wanna learn about the View object. Now I would like to know how to make the View object move? Do I add key listener to it(I don't want to use behavior class)? Do I

Re: [JAVA3D] Surfaces: HELP!

2002-10-10 Thread Silvère Martin-Michiellot
At 12:19 07/10/2002 -0700, you wrote: >i would suggest looking up the name, michael connolly and molecular >surface. he was the first to describe a method for computing the molecular >surface and the one who i referenced in my work on the subject. he has >published several papers on the subject, w

[JAVA3D] How To Load & Render VRML with Java3d with Sun's VRML Loaders.]

2002-10-10 Thread P. Flavin
VRML can and has been used to animate __ VRML __ files on the web -- in a brower -- and as stand alone applications with Sun's VRML Loaders. Games and Human Animation of VRML based H-Anim Avatars with Sound, Sensors, Animation has been done with VRML, Java3d, and the Sun VRML Loaders.

Re: [JAVA3D] Possible Text2d Bug

2002-10-10 Thread Kelvin Chung
Hi, This bug 4730414 - Text2D setString() throws Texture illegal size Exception is fixed in the next release. A simple fix is to modify the utility source com.sun.j3d.utils.geometry.Text2D. public void setString(String text) and chage getAppearance().getTexture().setImage(0, image

[JAVA3D] How To Load & Render VRML with Java3d with Sun's VRML Loaders.

2002-10-10 Thread P. Flavin
VRML can and has been used to animate __ VRML __ files on the web -- in a brower -- and as stand alone applications with Sun's VRML Loaders. Games and Human Animation of VRML based H-Anim Avatars with Sound, Sensors, Animation has been done with VRML, Java3d, and the Sun VRML Loaders. VRM

[JAVA3D] HelloUniverse rotations in local (x,y,z)

2002-10-10 Thread Alejandro Allievi
Hello all, I am very new to Java 3D and was wondering about an efficient way to rotate an object about its local (x,y,z), where the 3 rotation angles are the result of integrating some function. This problem would be the equivalent of animating HelloUniverse to rotate about its local (x,y,z) as

Re: [JAVA3D] Possible Text2d Bug

2002-10-10 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
  yes, I had some similar problems. Although sometimes (depending on the font used) even making the text bigger caused a problem when trying to write in something smaller...the only way to avoid it was to have the exact same size text.   It's a wierd problem.    Mario Mariusz Zaczek NASA - John

Re: [JAVA3D] Possible Text2d Bug

2002-10-10 Thread Kevin J. Duling
I also ran into this recently under Java 1.4.0_01 and Java3D 1.3.  I discovered that if I change the text to a live Text2D object, I run the risk of hitting this.  I have found that if I define the initial text to be larger than what I'm changing the text to, I'm able to avoid the exception.

Re: [JAVA3D] Problems with camera rotation

2002-10-10 Thread Alessandro Borges
Yes !!! I found It !!! Justin Coach wrote some packages about it : http://code.j3d.org/ You can use RotationInterpolator from org.j3d.util.interpolator package download it here : http://code.j3d.org/download.html See the navigation demos. Don´t forget to copy the j3d-org.jar and jed-org-images.ja

Re: [JAVA3D] J3D core is using com.sun classes!

2002-10-10 Thread Doug Twilleager
Lots of Java packages use com.sun* classes. AWT is one example. The difference here is that we are using some outside of our core jar file. We may consolidate this in the future, but it not a high priority right now. Doug Twilleager Java 3D Team Sun Microsystems Justin Couch wrote: > While b

Re: [JAVA3D] J3D core is using com.sun classes!

2002-10-10 Thread Scott Rutledge
Based on the stack trace, I'd say it's the VRML loader that's using the j3dutils classes (in the behaviors it creates). At 11:49 AM 10/10/2002 -0700, you wrote: >While building a minimal installer today, I left out the j3dutils JAR >file (by design - we don't need it). While testing the code, I n

Re: [JAVA3D] Box

2002-10-10 Thread Kevin S. Lim
Extend Shape3D and set geometry with your specific box shape that is created with TriangleStripArray GeometryArray geoArray = new TriangleStripArray(24, // 4 poings per face * 6 faces TriangleStripArray.COORDINATES| //

[JAVA3D] J3D core is using com.sun classes!

2002-10-10 Thread Justin Couch
While building a minimal installer today, I left out the j3dutils JAR file (by design - we don't need it). While testing the code, I now get this crash: ava.lang.NoClassDefFoundError: com/sun/j3d/internal/Distance at javax.media.j3d.PickConeRay.intersect(PickConeRay.java:109) at

[JAVA3D] Box

2002-10-10 Thread Andy
Hi, I would like to know how to use TriangleStripArray to generate a box. I know I can use primitive Box in Java3D API but when I set the Box into wireframe, it doesn't show wireframe, instead it shows white faces, thus I cannot look at it and learn the way it generate a box. May someone tell me

Re: [JAVA3D] Is this possible?

2002-10-10 Thread ZACZEK, MARIUSZ P. (JSC-DM) (NASA)
I'm confused...how can you now load .wrl (VRML) files at run time??  I mean, I can load a VRML file right away or have a JChooser window pop up and I can load a replacement VRML file...grant it I initialize an empty instance of a vrml object so I have one available to load into.   Maybe I'm comp

Re: [JAVA3D] Directional Light

2002-10-10 Thread Stoney Jackson
> Sorry, I think I've made a mistake, the directional light is actually point > TO original from the location you specified. But how can I make it point to > another point? > Andy I don't think that's possible with DirectionalLight. I think you need to use SpotLight. Of course, SpotLights can't

Re: [JAVA3D] Is this possible?

2002-10-10 Thread Kevin Kim
I am afriad you migh have to use xj3D API to laod your .wrl file.  I am using it write now.  Try use DIYBrowerser with DemoFrame.  This is only way we can load .wrl file in run time. Kevin Kim NPS - Original Message - From: A. Murat Tanyer To: [EMAIL PROTECTED] Sent

Re: [JAVA3D] Directional Light

2002-10-10 Thread Andy
Sorry, I think I've made a mistake, the directional light is actually point TO original from the location you specified. But how can I make it point to another point? Andy - Original Message - From: "Andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 10, 2002 1:24

Re: [JAVA3D] Directional Light

2002-10-10 Thread Stoney Jackson
Put a TransformGroup above (in the scene graph) your light source that moves it to your desired location? I'm just guessing. -Stoney - Original Message - From: "Andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 10, 2002 10:24 AM Subject: [JAVA3D] Directional Light

[JAVA3D] Directional Light

2002-10-10 Thread Andy
Hello all, I tried to create Directional Light but I found that it's different from 3D Studio Max's Directional Light. When I create the D Light, it lets me setup the Vector for direction. However, I need to set the source of the light and point to some direction. It just lets me create a direc

Re: [JAVA3D] Running greyscale textures into colour/alpha channels

2002-10-10 Thread Ben Moxon
Thanks, I'll try this. The card is a standard GeForce 3, which I think should be pretty good for multi-texturing, but no harm in trying it. -Original Message- From: Stoney Jackson [mailto:[EMAIL PROTECTED]] Sent: 10 October 2002 17:10 To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Running g

Re: [JAVA3D] Running greyscale textures into colour/alpha channels

2002-10-10 Thread Stoney Jackson
Let's make sure your card can do 4 texture units (mine can't ); ) Query the Canvas3D for textureEnvCombineAvailable textureUnitStateMax; we want the former to be true and the latter to be 4 or greater. Here's some code I use to query the Canvas3D. import java.applet.Applet; import java.awt.Grap

[JAVA3D] Is this possible?

2002-10-10 Thread A. Murat Tanyer
Dear members,   I designed a user interface and from this I want to load my 'scenegraph data' during the run time. For example, lets say that I want to load different VRML files during the run time by a JFileChooser.   I attached the well known HelloUniverse example. I want this example appea

Re: [JAVA3D] model format

2002-10-10 Thread Alessandro Borges
Sniper, Java3D can load several 3D file formats. Go to www.J3D.org  and read articles about it. Direct link to your questions : http://www.j3d.org/faq/fileformats.html http://www.j3d.org/utilities/loaders.html   Alessandro   - Original Message - From: sniper_bat To: [EMAIL

Re: [JAVA3D] Running greyscale textures into colour/alpha channels

2002-10-10 Thread Ben Moxon
Didn't have a lot of time last night to play with this, but it didn't seem to work- when I set the CombineRgbSource to COMBINE_PREVIOUS_TEXTURE_UNIT_STATE, which is what I'm assuming you meant by ..._COLOR it just drew the whole thing the colour of the object. I experimented with other settings