Re: [JAVA3D] openlgl and openal

2000-06-27 Thread G . Veith
hi Ron, there are several Java bindings for openGL. One of them is Magician, i was working with some time ago. You can use all opengL features via Java calls. AFAIK openAL is an open source 3D audio library for Linux. Gernot Veith janet Ges. f. interaktive Medien mbH Garmischer Str. 19/21 D-81

Re: [JAVA3D] view planes

2000-07-03 Thread G . Veith
hi, you can try to put an (Inexed-) LineArray around the plane. AFAIK Thickness and color of the lines can be adjusted Gernot Veith janet Ges. f. interaktive Medien mbH Garmischer Str. 19/21 D-81377 Muenchen fon: +49 (0) 89 - 54 26 21 - 19 fax : +49 (0) 89 - 54 26 21 - 15 mail:

Re: [JAVA3D] cult3d vs java3d

2000-07-03 Thread G . Veith
moreover: java3d is platform-specific and needs at least jre 1.2. cult3d is a software-renderer and also runs on jre 1.1.x Gernot Veith janet Ges. f. interaktive Medien mbH Garmischer Str. 19/21 D-81377 Muenchen fon: +49 (0) 89 - 54 26 21 - 19 fax : +49 (0) 89 - 54 26 21 - 15 mail:

Re: [JAVA3D] java3d1.2 and NT 4.0 instaling problem

2000-07-05 Thread G . Veith
hi, in NT, classpath-statements must be set in "Systemsteuerung" -> "System" -> "Umgebung". You must be administrator to set statements there. If you try to let run the java3d demos in a browser, you first must convert the html-files with SUN's HTMLConverter. Gernot Veith janet Ges. f. interakt

Re: [JAVA3D] TextureLoader NullPointerException

2000-07-14 Thread G . Veith
hi, I've written my own texture loader.It's an easy job and you can customize it to your own needs. Use Pixelgrabber and ImageFilter class to grab the pixels and resize the image to power of 2. You can implement that all a little bit more sophisticated: You can grab the pixels asynchronously and f

Re: [JAVA3D] Translating and then rotating

2000-07-16 Thread G . Veith
hi Peter, you must perform the intepolator in the local coord system of the cube. see changes below. Gernot Veith janet Ges. f. interaktive Medien mbH Garmischer Str. 19/21 D-81377 Muenchen www.janet.de fon: +49 (0) 89 - 54 26 21 - 19 fax : +49 (0) 89 - 54 26 21 - 15 mail: [EMAIL

Re: [JAVA3D] Textures

2000-07-21 Thread G . Veith
hi, AFAIK, java3d resizes the image dimensions to power of 2 when creating textures. As texture coordinates are relative to the object coordinates, the image gets compressed or stretched to fit with the object it gets mapped onto. Therefore, use image sizes only as big as necesary to get the qua

[JAVA3D] DirectionalLight bug in Java3D 1.2 ?

2000-08-02 Thread G . Veith
hi all, In the current release, it looks like a directionalLight gets moved when you move the scene. The error occurs in immediate mode. I haven't tested it under retainted compiled mode yet. I have attached a demo to show what's going on. The demo consists of a inner cube (blue, opaque) and a ou

Re: [JAVA3D] Class Path

2000-08-18 Thread G . Veith
hi, first, this is not a java3d problem... since jdk 1.2 you only need to point the classpath to your own java claases. jdk 1.2 and 1.3 don't need the classpath environment Gernot Veith JANET Gesellschaft f. interaktive Medien mbH Garmischer Str. 19/21 D-81377 Muenchen www.janet.de fon: +4

[JAVA3D] Java3D demos on Linux

2000-08-22 Thread G . Veith
hi all, I'm just testing Java3D on Linux and get some strange results. When I start the HelloUniverse demo, java crashes after a few seconds with segmentation violation. When I start the PureImmediate demo, everything runs fine. I'm using SuSE Linux 6.3 with mesasoft 3.1-58, IBM jdk 1.3 for Linux

Re: [JAVA3D] Java3D demos on Linux

2000-08-24 Thread G . Veith
hi Adam, thanks for your hints. But without JIT, applications will considerably slow down. I've also tested SUN's jdk 1.3 for Linux. It's running worse. Gernot Veith JANET Gesellschaft f. interaktive Medien mbH Garmischer Str. 19/21 D-81377 Muenchen www.janet.de fon: +49 (0) 89 - 54 26 21

Re: [JAVA3D] Request for information

1999-11-10 Thread G . Veith
Hi, sorry to say that, but the most importent reason against J3D is its performance. Not because of the API but - IMHO - rather because of so many *awkward* or complicated implementations. It would be real a good idea to make the sources public. This would give J3D a performance boost. Gernot

Re: [JAVA3D] Running a Java3D applet in Netscape or Internet Explorer Browsers

1999-11-10 Thread G . Veith
hi dean, java plug-in gets installed with the jdk. start the java plug-in control panel and choose the jre you want to use. because of a bug in the plug-in, you have to copy the java3d jar-files from /jre/lib/ext to /jre/lib. next you have to convert the html-files of the examples by using the ht

Re: [JAVA3D] Request for information

1999-11-12 Thread G . Veith
hi Ronald, sure, performance, frame rates, and so on, that all depends on what you intend to do with J3D. We've tested J3D in an app, that creates and manipulates a lot of scene graphes and objects at runtime and uses animations with picking. every time you start an animation, the gc gets stresse

Re: [JAVA3D] At my wits' end

1999-11-17 Thread G . Veith
Hi, I've made similar experiences. I've taken Nvidias drivers (Viper 550 WinNT4). They seemed to be faster and didn't get any memory problems. But shading was totally wrong :( Gernot [EMAIL PROTECTED] Andy Wilkinson <[EMAIL PROTECTED]To: [EM

Re: [JAVA3D] Coordinate Transform

1999-11-30 Thread G . Veith
hi, rotation doesn't affect translational components only if the object is placed in the origin of the coordinate system. If you place your viewplatform at (1,0,1) and perform a rotation (pi) around the y-axis, the new location will be at (-1,0,-1). orientation and locations have changed. if yo

Re: [JAVA3D] view - not simple view

1999-12-02 Thread G . Veith
hi, an example, how you can do it: //--- View view = new View(); view.setPhysicalEnvironment(new PhysicalEnvironment()); view.setPhysicalBody(new PhysicalBody()); //attach viewplatform view.attachViewPlatform(platform); Canvas3D canvas3d = ne

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:

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] Canvas3D and JMenu (swing....)

1999-12-08 Thread G . Veith
Hi David, this problem was discussed here some time ago. Barry Walsh has posted a demo file with some example code to fix that. Look for "JMenus revisited..." from 06/16/99. Gernot [EMAIL PROTECTED] David Hallé <[EMAIL PROTECTED]>To: [EMAIL

Re: [JAVA3D] [Java3D]gc

1999-12-10 Thread G . Veith
Hi, that's what I found out too :( IMHO one cannot force gc to run at a predefined time. system.gc() is only a suggestion as you said. If you are using hotspot, try running it in "classic" mode. this will work more smooth. Gernot [EMAIL PROTECTED] mark rudolph

Re: [JAVA3D] help setting direction

1999-12-10 Thread G . Veith
Hi Wayne, this sounds like you're doing your transformations in the local coordinate system of the object. If you want to let move things in another coordinate system, you first have to perform a coord. transformation. for example tranform your object into the CS of your viewpoint, apply navigati

Re: [JAVA3D] offtopic-couldn't find javacc

2000-01-05 Thread G . Veith
hi Mohammed, go to http://www.suntest.com/JavaCC/ Gernot [EMAIL PROTECTED] Mohammed Akacem <[EMAIL PROTECTED]To: [EMAIL PROTECTED] .DE>cc: Sent by: Discussion Subject

Re: [JAVA3D] offtopic-couldn't find javacc

2000-01-05 Thread G . Veith
Mohammend, just go down the site. click on "download pages". You will find links to download the documention and the classes. good luck :) Gernot [EMAIL PROTECTED] Mohammed Akacem <[EMAIL PROTECTED]To: [EMAIL PROTECTED]

Re: [JAVA3D] Objects disappear in the background...

2000-01-05 Thread G . Veith
Hi Peter, enlarge backClipDistance of view Gernot [EMAIL PROTECTED] Peter Lueders <[EMAIL PROTECTED]To: [EMAIL PROTECTED] AMBURG.DE> cc: Sent by: Discussion list Sub

Re: [JAVA3D] rotX and rotY

2000-01-11 Thread G . Veith
Hi Janet, with setEuler(vector) you can create a transform3D consisting of the same orientation as vector. You can do your viewpoint navigation with a single matrix. First you have to transform your viewpoint into the origin of the coordinate system. Then apply all rotations. Transform back viewp

Re: [JAVA3D] Question about PickObject.USE_GEOMETRY

2000-01-12 Thread G . Veith
Hi Juergen, I've never used the utility classes, but the error message sounds like you forgot to set the capability to allow the primitives geometry getting intersected. Did you try to set Primitive.ENABLE_GEOMETRY_PICKING ? Gernot [EMAIL PROTECTED] http://www.janet.de J

Re: [JAVA3D] a little 'lookAt' question...

2000-01-18 Thread G . Veith
hi Peter, the up vectoe in lookAt() just describes the up direction of the viewer. If your viewing direction is parallel to the xz pane the up vector is (0,1,0). In general the up vector should be perpeticular to the viewing vector. Gernot [EMAIL PROTECTED] Peter Lueders

Re: [JAVA3D] a little 'lookAt' question...

2000-01-18 Thread G . Veith
Hi Peter, take a look to the API Specs, C 11.2 ff. You have to put the transform3d created by lookAt() into your view object. Use setVpcTo Ec() of View. This is because the eye position is not the same as the position of your viewpoint. Gernot [EMAIL PROTECTED] =

Re: [JAVA3D] Moving the view around on a sphere

2000-01-26 Thread G . Veith
hi Daniel, sure, this can be done. first get the vector that is perpenticular to your mouse movement. transform it with Transform3D of the transformGroup containing the viewplatform. get an AxisAngle of the transformed vector. get a Transform3D from this AxisAngle. multiply this transform from le

Re: [JAVA3D] Moving the view around on a sphere

2000-01-28 Thread G . Veith
Hi Daniel, if you want to let rotate an object around an arbitrary axis in an arbitrary coordinate system, you have to transform the object into that coordinate system. Then transform it into the origin of that coordinate system and apply rotation. You can get a transform3D consisting of all rota

Re: [JAVA3D] Orbiting the View around an object

2000-01-28 Thread G . Veith
Hi Dean, this is a simple example that describes how to let rotate your viewpoint around an object. The object has to be in the center of its coordinate system. The viewpoint has to be in the same coordinate system as the object in question. If not, you first have to apply some coordinate transfo

Re: [JAVA3D] Viewpoints for JAVA3D

2000-02-02 Thread G . Veith
hi, put your viewplatform into a transformGroup and add it via BranchGroup to your locale. Now you can navigate the viewplatform viewpoint) thru your scene. The initial view direction is (like VRML) (0,0,-1). Use Transform3D to manipulate orientation and translation of your viewplatform. Gerno

Re: [JAVA3D] Wireframe

2000-02-04 Thread G . Veith
Hi Marina, IMHO you mean some geometry as wire frame ? You need PolygonAttributes.POLYGON_LINE. Put this PolygonAttributes-object into your Appearance-object and apply that to your Shape3D (that is consisiting of geometry, appearance). Gernot [EMAIL PROTECTED] http://www.janet.de

Re: [JAVA3D] Multiple Views / Behaviors ??? - EXAMPLE

2000-02-07 Thread G . Veith
Hi Edgar, as far as I know Java3D renders into that canvas3Ds view that gets visible first. Java3D doesn't let run a render loop for each view. That's why if you transform one viewplatform it will affect all other views. IMHO this is not a bug - it's a feature :) Gernot [EMAIL PROTECTED]

Re: [JAVA3D] Multiple Views / Behaviors ??? - EXAMPLE

2000-02-07 Thread G . Veith
sorry, no :(( I've tried something similar but didn't succeed so far :( I would try to use only one view at the same time and switch to the view in question each time you start a new render loop. Rendered data has to get buffered for all other canvas3ds so that it cannot get lost when they get re

Re: [JAVA3D] x,y,z rotation and angles

2000-02-08 Thread G . Veith
Hi Clara, the problem is, that rtotation takes affect in the local coordinate system. For example you take a coordinate system with positive x to the right, pos. y up and pos. z coming out from the screen. Apply rotation counterclockwise around the y axis. Now, the z axis has the same direction a

Re: [JAVA3D] AxisAngle4d

2000-02-09 Thread G . Veith
Use AxisAngle to let rotate objects about an arbitrary axis by an angle a. X,y,z are the coordinates of the axis (vector) in question. Direction of rotation can be described as follows: thumb of your right hand is looking into the same direction as vector. If you close your hand, your fingers are

Re: [JAVA3D] x,y,z rotation and angles

2000-02-09 Thread G . Veith
Hi Juergen, I've attached the source code as a zip-file. I've modified HelloUniverse and added an inner class RotBehavior that listens to MouseEvents. It lets rotate colorCube about its local X respectively Y axis. Type ESC to exit demo, F to run demo in "false" mode (as described in my last ema

[JAVA3D] Q: canvas3D refresh in immediate mode

2000-02-09 Thread G . Veith
Hi all, when I push a canvas3D running in immediate mode out of the screen and drag it back slowly, it doesn't get refreshed entirely sometimes. The render loop consists of -GraphicsContext3D.clear(); -GraphicsContext3D.draw(shape); -Canvas3D.swap(); The loop gets processed only when the scene ge

Re: [JAVA3D] Synchronizing interpolator and view transformgroup

2000-02-11 Thread G . Veith
Hi David, ...hmm...good question.Can't you modify or derive your RotPos...Interpolator class in that way every time it gets triggered, it will pass its curent trransform3D to the transformGroup of the camera ? If that is possible, modify it: (just a suggestion...) public void processStimulus(Enum

Re: [JAVA3D] Moving View

2000-02-12 Thread G . Veith
Hi, this was discussed here some time ago. You just have to apply your transformations against the transformGroup that keeps your viewpoint. A straight forward solution would be to trigger a bahavior via Behavior.postID() by an ActionEvent. This ActionEvent must be delivered from your Button. (2)

Re: [JAVA3D] how to solve that problem

2000-02-15 Thread G . Veith
Hi Peter, you attempted to use a member from outer class in the anonymous class new ActionListener(). That doesn't work. You can modify it like: final Button button1 = new Button("Stop"); button1.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) {

Re: [JAVA3D] Synchronizing interpolator and view transformgroup

2000-02-11 Thread G . Veith
Hi David, IMHO, in the first render loop your viewBehavior gets triggered. But according calculation will be done in the next loop. Why don't you apply the objects transformation against the transformGroup of your camera in the same render loop ? Gernot [EMAIL PROTECTED] http://www.janet.de

Re: [JAVA3D] make a Texture from an Image-object

2000-03-17 Thread G . Veith
Hi Pieter, this is a short code fragment, that creates a texture object from an image... be aware, the image dimensions must be power of 2... // Image img = Toolkit.getDefaultToolkit().getImage(url);

Re: [JAVA3D] Java3D and Apple G4

2000-03-22 Thread G . Veith
do you mean does Java3D runs on a MacIntosh G4 ? IMHO not yet. Apple hasn't implemented Java3D yet. As Java3D is a system dependend API you cannot run Java3D apps on a system that just supports Java runtime 1.2X. Gernot "BRASSEL Tim (NQ)" <[EMAIL PROTE

Re: [JAVA3D] Texture map problem

2000-03-27 Thread G . Veith
Hi, I'm running Java3D 1.1.2 openGL with jdk 1.2.2 on win NT SP5. Texturing works without any problems. Maybe you can post a small demo to show what's going wrong...There are also a couple of problems concerning openGL support and graphic cards. ELSA Erazor III does not render shaded meshes in ac

[JAVA3D] Environment texture in directx mode does not work

2000-04-05 Thread G . Veith
hi there, does anyone of you has tried to use environment texture in directX mode ? I'm actually running an app using immediate mode rendering with directX. Texture mapping is running fine, but no so environment mapping. OpenGL mode supports environmwent mapping without any probs. Gernot [EMAIL

Re: [JAVA3D] HELP: Orbiting View

2000-04-07 Thread G . Veith
Hi David, I've just hacked a small sample for you and attached it as a zip-file. Start demo with java Orbit URL, where URL is something like file:///c:\\myimage.jpg You can use included sky.jpg. have fun :) Gernot [EMAIL PROTECTED] (See attached file: Orbit.zip) David C

Re: [JAVA3D] Can I use 3D card ??

2000-04-10 Thread G . Veith
you can use any graphics card. If it does not support hardware acceleration by openGL or directx, all rendering stuff will be done by the cpu, will say your animations will run rather slowly... Gernot [EMAIL PROTECTED] Augustin Gjini <[EMAIL PROTECTED]>

Re: [JAVA3D] Creation of a Sphere-like object with 3 radiuses

2000-04-10 Thread G . Veith
Hi Marcel, you can apply a non-uniform scaling to a sphere-object to get an ellipsoid (or somrthing else) Transform3D.scale(Vector3d). Or you can build your object by using a 3D modeling tool (3D Maxx) and import it via VRML loader. Gernot [EMAIL PROTECTED] Marcel Koonen

Re: [JAVA3D] GeForce trouble

2000-04-12 Thread G . Veith
IMHO = in my humble oppininon Gernot btw. the current issue of the german computer journal c't contains an interesting test of new graphics cards running under openGL and directx Desiree Hilbring <[EMAIL PROTECTED]To: [EMAIL PROTECTED]

Re: [JAVA3D] GeForce trouble

2000-04-12 Thread G . Veith
hi, in short: you can let run java3d applications in retained mode (most examples are doing that). The renderer is running continously. Or you can use immediate mode. You have to start and stop the renderer by yourself (see example pureImmediate...) Magician is a Java API for openGL, will say if

Re: [JAVA3D] Geforce Trouble

2000-04-12 Thread G . Veith
as far as I know, hardware acceleration does not depend on wether your app is running in windowed mode. Maybe this will be question in full window mode. You can try to get a Diamond card, but I guess they will be sold out soonWe got some strange effects with our Elsa Erazor. Triangles got colo

Re: [JAVA3D] Changing the Mouse Pointer Icon over a canvas 3D

2000-04-14 Thread G . Veith
hi, jdk 1.2 provides Class Cursor. There you will find all infos you need. you also can use your custom icons for the mouse pointer Gernot Veith janet Ges. f. interaktive Medien mbH Garmischer Str. 19/21 D-81377 Muenchen fon: +49 (0) 89 - 54 26 21 - 19 fax : +49 (0) 89 - 54 26 21 - 1

Re: [JAVA3D] Alpha Transparency

2000-04-14 Thread G . Veith
hi, you can build a shape3D that is totaly transparant and apply a texture to it that consists of a GIF image with transparent background. Texture format must be of RGBA. See class Appearance and class TransparencyAttributes how to make your object transparent. Gernot Veith janet Ges. f. intera

Re: [JAVA3D] rotating viewpoint behavior?

2000-04-17 Thread G . Veith
hi Dennis, unzip Zrot.zip and go to inner class Zrot to see what's going on. Use left mouse button and drag mouse horizontal to let rotate your viewpoint around the z axis. Use right mouse button and drag mouse vertical to move your viewpoint along the z axis. Andthis is only a hack :-) (See

Re: [JAVA3D] immediate-mode rendering... how?

2000-04-17 Thread G . Veith
hi Andrew, there is a simple example called pureImmediate.java describing some basics. Gernot Veith janet Ges. f. interaktive Medien mbH Garmischer Str. 19/21 D-81377 Muenchen fon: +49 (0) 89 - 54 26 21 - 19 fax : +49 (0) 89 - 54 26 21 - 15 mail: [EMAIL PROTECTED]

Re: [JAVA3D] immediate-mode rendering... how?

2000-04-18 Thread G . Veith
hmm...I've never used primitives yet. but you can try primitve.getShape(). >Also, will my KeyNavigatorBehavior still work with the renderer stopped? AFAIK, no Gernot Veith janet Ges. f. interaktive Medien mbH Garmischer Str. 19/21 D-81377 Muenchen fon: +49 (0) 89 - 54 26 21 - 19 fax :

[JAVA3D] jdk 1.3 SE

2000-05-10 Thread G . Veith
hi, it seams that Java3D doesn't run under the new jdk release. I've made some tests using immediate mode rendering with the 1.1.2 openGL version, but canvas3d only displays a gray background just as it didn't get initialized. Gernot Veith janet Ges. f. interaktive Medien mbH Garmischer Str. 19

Re: [JAVA3D] Java 3D API Version 1.2: Implementation Now Available

2000-05-18 Thread G . Veith
hi, I've downloaded the 1.2 version and docus from the site in question without any problems Gernot Veith janet Ges. f. interaktive Medien mbH Garmischer Str. 19/21 D-81377 Muenchen fon: +49 (0) 89 - 54 26 21 - 19 fax : +49 (0) 89 - 54 26 21 - 15 mail: [EMAIL PROTECTED]