[JAVA3D] collisions

2002-05-15 Thread Mauro Dito
i've realized a Shape3D object representing an ancient theatre. Now in the Virtual universe containing it, i want to use collision detection with this Shape3D and terrain following. Could someone help me with suggestions or sample code? Thanks, Mauro ==

Re: [JAVA3D] Reducing CPU usage of Interpolator

2002-05-15 Thread "Schäfer, Peter"
have you tried View.setMinimumFrameCycleTime(long milliSeconds) ? > -Original Message- > From: Simeon H.K. Fitch [mailto:[EMAIL PROTECTED]] > Sent: Mittwoch, 15. Mai 2002 00:07 > To: [EMAIL PROTECTED] > Subject: [JAVA3D] Reducing CPU usage of Interpolator > > > Sorry if this is an RTF-typ

Re: [JAVA3D] collisions

2002-05-15 Thread Brad Christiansen
Hi, There is some sample code and discussions at j3d.org. Cheers, Brad Mauro Dito wrote: > > i've realized a Shape3D object representing an ancient theatre. Now in the Virtual >universe containing it, i want to use collision detection with this Shape3D and >terrain following. Could someone

[JAVA3D] make slice in a shape

2002-05-15 Thread R CM
hi all, I've already ask some help about this subject, but i need more help i'm want to move a cut plane on a shape and getting the cross-section in a other canvas (2D or 3D) I use the front clip and the back clip of the camera as cut plane, and the camera is locate juste in front of the cut pl

[JAVA3D] static text position ? (independant of view transform)

2002-05-15 Thread BEGHIN Matthieu
Hi, I'm developping a java3D application and wondering how to create a Text2D node which position is independant of the view transform. I think I saw a way to make a node like that, but I had no use and now I can't find the way to do that any more. Could you help me ? Thanks, Matthieu Beghin _

[JAVA3D] code design question for shape preview

2002-05-15 Thread R CM
hi i want to make a panel with several "shapes previews" in a gridLayout and be able to select one and import it in my viewer. how design my code : one universe for each preview and one more for the viewer? one universe for all the previews, with several cameras (and canvas 3D), and one more for

[JAVA3D] Volume Rendering

2002-05-15 Thread Vijayaraghavan Rajagopal
Hi, I know I have asked this question before. I would like to use 2D textures to come up with a 3D image of the brain. I have gone through a number of websites and papers on this subject-Ray Casting and the splatting algorithms in particular. But all of them give me a description of the algori

[JAVA3D] Group nested in OrderedGroup

2002-05-15 Thread "Schäfer, Peter"
Hi folks ! is there a reason why Groups can not be nested inside an OrderedGroup, or a DecalGroup ? what I want to to is: Group checkerBoard = new Group(); checkerBoard .addChild(createPlane(...)); checkerBoard .addChild(createPlane(...)); ... checkerBoard .addChild(crea

Re: [JAVA3D] Volume Rendering

2002-05-15 Thread Bill Hibbard
Hi Vijay, On Wed, 15 May 2002, Vijayaraghavan Rajagopal wrote: > I know I have asked this question before. I would like to use 2D textures to come up >with a 3D image of the brain. I have gone through a number of websites and papers on >this subject-Ray Casting and the splatting algorithms in

Re: [JAVA3D] Volume Rendering

2002-05-15 Thread Joachim Diepstraten
Hi > I know I have asked this question before. I would like to use 2D textures to come up >with a 3D image of the brain. I have gone through a number of websites and papers on >this subject-Ray Casting and the splatting algorithms in particular. But all of them >give me a description of the al

Re: [JAVA3D] collisions

2002-05-15 Thread Smith, Daniel
Title: RE: [JAVA3D] collisions To check for a collision over terrain, here's a function, where bg is the branchgroup of the terrain, loc is your avatar's (or camera) location, down is Vector3d(0.0,-1.0,0.0).  "py" is the value returned if a intersection is found, and defaults to -1.0 if not fo

[JAVA3D] Raster clip-image flicker

2002-05-15 Thread Artur Biesiadowski
I think it is a bug. When I set Raster to CLIP_IMAGE mode, and main raster point dissapears at left edge of view, raster starts to flicker. I do update raster position on every frame from behavior. This is probably the reason of flickering. When I have turned updates off, all rasters behave the s

Re: [JAVA3D] Volume Rendering

2002-05-15 Thread Theron, Jannie
Got this link http://www.permadi.com/tutorial/raycast/, apparently it's for java -Original Message- From: Bill Hibbard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 3:04 PM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Volume Rendering Hi Vijay, On Wed, 15 May 2002, Vijayaragh

Re: [JAVA3D] Volume Rendering

2002-05-15 Thread Theron, Jannie
Got this link, http://www.permadi.com/tutorial/raycast/ -Original Message- From: Bill Hibbard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 3:04 PM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Volume Rendering Hi Vijay, On Wed, 15 May 2002, Vijayaraghavan Rajagopal wrote: >

Re: [JAVA3D] Volume Rendering

2002-05-15 Thread Raj N. Vaidya
>On Wed, 15 May 2002 08:42:29 -0400, Vijayaraghavan Rajagopal <[EMAIL PROTECTED]> >wrote: >Hi, > >I know I have asked this question before. I would like to use 2D textures >to come up >with a 3D image of the brain. I have gone through a number of >websites and papers on >this subject-Ray Casti

Re: [JAVA3D] Reducing CPU usage of Interpolator

2002-05-15 Thread Simeon H.K. Fitch
> -Original Message- > From: Discussion list for Java 3D API > [mailto:[EMAIL PROTECTED]]On Behalf Of Schäfer, Peter > Sent: Wednesday, May 15, 2002 3:45 AM > have you tried View.setMinimumFrameCycleTime(long milliSeconds) ? That was it The magic API call I was looking for! Many tha

[JAVA3D] Background node problems

2002-05-15 Thread Smith, Daniel
Title: Background node problems I'm working on  Background node geometry, and I don't want to waste CPU with those extra Sphere polys below the horizon that will never be seen... I'm trying to create a slightly flattened, low-poly hemisphere for a skybox/cloud layer, and I want it as backgro

Re: [JAVA3D] Reducing CPU usage of Interpolator

2002-05-15 Thread Simeon H.K. Fitch
> -Original Message- > From: Discussion list for Java 3D API > [mailto:[EMAIL PROTECTED]]On Behalf Of Fred Klingener > Sent: Tuesday, May 14, 2002 8:17 PM > > Take a look at the results of some thrashing I did on clocks and > interpolators: > > http://www.BrockEng.com/VMech/Time/Clocks.h

Re: [JAVA3D] Background node problems

2002-05-15 Thread Yazel, David J.
Title: Background node problems We use nested skydomes in background geometry for our sky system.   Here are some relevant code snippets:      /**    * Builds the vertices needed for the sky dome.  This is not the same as the    * geometry, since that needs to be constructed using a triangle fan

Re: [JAVA3D] Problem with TextureUnitState

2002-05-15 Thread Artur Biesiadowski
Charmaine Lee wrote: > Georg, > > The NullPointerException is expected because the texture unit state array > of the specified Appearance is null. This version of the setTextureUnitState > is to modify an existing entry of the texture unit state array of > the Appearance. So for the firs

Re: [JAVA3D] collisions

2002-05-15 Thread Paul Byrne
Hi Mauro, Take a look at the Java 3D Fly Through demo, it includes a library you can use which performs collision detection and terrain following. Version 1.0 is available from the Java3D web site (both binary and source), version 2.0 beta is available in source form only from java3d.netbeans.org

Re: [JAVA3D] Reducing CPU usage of Interpolator

2002-05-15 Thread Doug Twilleager
The WakupOnElapsedTime condition performs better now than it did in older versions of Java 3D. However, most people find that waking up on elapsed frames suits their needs better. We use native timers in a very indirect manner. Doug Twilleager Java 3D Team Sun Microsystems >Subject: Re: [JAVA3

Re: [JAVA3D] Group nested in OrderedGroup

2002-05-15 Thread Doug Twilleager
This looks like a bug. Can you send the test case to [EMAIL PROTECTED] Thanks, Doug. >Subject: [JAVA3D] Group nested in OrderedGroup >To: [EMAIL PROTECTED] >MIME-version: 1.0 >Delivered-to: [EMAIL PROTECTED] > >Hi folks ! > >is there a reason why Groups can not be nested inside an OrderedGroup,

Re: [JAVA3D] Stereo experience: Summary

2002-05-15 Thread Kelvin Chung
>Date: Wed, 15 May 2002 11:52:22 +1000 >From: Carsten Friedrich <[EMAIL PROTECTED]> >Subject: Re: [JAVA3D] Stereo experience: Summary >To: [EMAIL PROTECTED] >MIME-version: 1.0 >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600. >Content-transfer-encoding: 7bit >X-Priority: 3 >X-MSMail-priori

[JAVA3D] SinglePixelPackedSampleModel question

2002-05-15 Thread Sandra Arthurs
Hi, I am trying to create a grayscale texture, which I am generating, on a rectangle and I have some questions. I am currently getting: Exception occurred during event dispatching: java.awt.image.RasterFormatException: DataBuffer for ByteComponentRasters must only have 1 bank. The c

Re: [JAVA3D] Raster clip-image flicker

2002-05-15 Thread Georg Rehfeld
Dear Artur, "Artur Biesiadowski" wrote: > load any model and check on skeleton and then labels. Then move the > model at left edge of screen, so only parts of labels are visible and > wait a moment - it should flicker a bit. If you rotate model around at > edge, you will see a lot more flicker.

Re: [JAVA3D] SinglePixelPackedSampleModel question

2002-05-15 Thread Justin Couch
Sandra Arthurs wrote: > I am trying to create a grayscale texture, which I am generating, > on a rectangle and I have some questions. I am currently getting: > > Exception occurred during event dispatching: > java.awt.image.RasterFormatException: > DataBuffer for ByteComponentRasters

Re: [JAVA3D] Raster clip-image flicker

2002-05-15 Thread Kelvin Chung
Hi Artur, This is a bug in Appearance clone() method when TextureUnitState is used. Will submit a bug for this to be fixed in next release. (currently the bug system is busy and can't submit bug) Thanks for your bug report. - Kelvin --- Java 3D Team Sun Microsystems Inc. >Date:

[JAVA3D] Bug? Crash/Lockup when Frame drug over Canvas3D

2002-05-15 Thread Smith, Daniel
Title: Bug? Crash/Lockup when Frame drug over Canvas3D Haven't seen this mentioned on the list, but I'm experiencing app lockups when a frame which contains a canvas is moved by the user over a Canvas3D.   When the frame is first spawned it normally is over the Canvas3D.  The lockup doesn't oc

Re: [JAVA3D] Bug? Crash/Lockup when Frame drug over Canvas3D

2002-05-15 Thread Kelvin Chung
Hi Smith, It has been report this problem under ATI card before. It seems that OpenGL driver is not as stable as DirectX driver under this card. Please try v1.3 beta2 DirectX version and remember to install DirectX 8.1 from http://www.microsoft.com/directx Thanks. - Kelvin -

Re: [JAVA3D] Raster clip-image flicker

2002-05-15 Thread Kelvin Chung
Hi Artur, Nice models ! I try it in my system and the labels flickering all around. Besides there is Exception throws which I think is related : java.lang.NullPointerException at javax.media.j3d.RasterRetained.computeWinCoord(RasterRetained.java:607) at javax.media.j3d.RasterRetained.clipIm

[JAVA3D] Again: Bounding Sphere Problem

2002-05-15 Thread SUBSCRIBE JAVA3D-INTEREST Huaicai MO
Did any one use Bounding Sphere to get the radius and center of an object? I use getBounds() for a Switch object to get the radius and center of all the objects included in the Switch object. I debugged and found all the coordinates of those objects are within (1.0--2.5), but I get the radius i

Re: [JAVA3D] Stereo experience: Summary

2002-05-15 Thread Carsten Friedrich
Kelvin, > >Ah. Ok, it does not crash now. However, the stereo > >driver does not kick in (as it does with the java 3d > >fullscreen option). > > > Because DirectX 8.0 API didn't support stereo > and Java3D v1.3 beta1 and beta2 for DirectX > is based on 8.0 API. > > You can either use Java3D v1.2.

Re: [JAVA3D] Raster clip-image flicker

2002-05-15 Thread Daniel Selman
Artur, No flicker here either: W2K jdk 1.4 java3d 1.3beta2/opengl GF II Ultra Looks great. Good work! Daniel Selman Author - "Java 3D Programming" http://www.manning.com/selman -Original Message- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Georg Rehfe

Re: [JAVA3D] Simple example of image plate alight platform geometry

2002-05-15 Thread Brad Christiansen
Hi, Thanks for this code David, it has been a huge help. One question though, how do I make the overlays transparent? I have tried doing the following to your code with no luck: changed the type of the BuffredImage to TYPE_INT_ARGB (from INT_RGB) changed the color used to fill the background fro

Re: [JAVA3D] Rotate a View...

2002-05-15 Thread Roger Berggren
Hi Tobias, (eller kanske Hej) I'm in the process of developing a view orbit behaviour in our Java 3D application. An orbit behaviour rotates the view around an imagenary sphere looking at a center point. There are plenty of examples of existing orbit behaviours, for example the com.sun.j3d.utils