Re: [JAVA3D]

2001-01-18 Thread Paul James
Hi Andy,   You can't construct a point3f with a single value, you need to specify three, (one for each axis), to make up the co-ordinate.    If you want to cast the int into a float you can turn it into an Integer and then use Integer.floatValue(); but you'll still need the two other value

Re: [JAVA3D] AccessControlException trying to load a file from anApplet.

2001-01-18 Thread Daniel Moscoso
Hi, Karsten ! Sorry, I didn't understand you. You meant the policytool provided by JRE. OK, I'm going to test it. Dani Hi Dani you have to edit your policy file to set the applets permissions on files and/or urls, or get a certificate for yout access. For development and testing try: Just t

[JAVA3D] Generating objects with the union / intersection of another objects.

2001-01-18 Thread Daniel Moscoso
Hi all ! I know that Java3D supports intersection / colision detection of objects. But does anybody know if it's possible to generate objects with the union / intersection of another objects in the scene ? (I mean dinamically generation, with user's interaction like translation or rotation). H

Re: [JAVA3D] Generating objects with the union / intersection of another objects.

2001-01-18 Thread Yazel, David J.
It does not. Dave Yazel > -- > From: Daniel Moscoso[SMTP:[EMAIL PROTECTED]] > Reply To: Discussion list for Java 3D API > Sent: Thursday, January 18, 2001 8:16 AM > To: [EMAIL PROTECTED] > Subject: [JAVA3D] Generating objects with the union / intersection of >

Re: [JAVA3D] Behavior Problems!

2001-01-18 Thread Eric Reiss
I'm not familiar with the scaling behavior but the way that the other behaviors needed corrected is basically a coordinate transformation. You may need to modify the scaling behavior so that it remembers the objects position, then translates it to the origin, scales it and then translates it back

Re: [JAVA3D] Generating objects with the union / intersection of another objects.

2001-01-18 Thread Justin Couch
On Thu, 18 Jan 2001, Yazel, David J. wrote: > It does not. [snip] > > I know that Java3D supports intersection / colision detection of objects. > > But does anybody know if it's possible to generate objects with the union > > / intersection of another objects in the scene ? (I mean dinamically

[JAVA3D] Java3D in an applet

2001-01-18 Thread Paul Siegel
Hey - I was curious if anyone's noticed the problem of using Java3D in an applet. What I notice is that if the browser's window is moved or resized, the 3D object/scene remains in it's original position. Thus if I have a scene with a single rotating sphere and move the window to the right half o

Re: [JAVA3D] Java3D in an applet

2001-01-18 Thread Mark Ferneau
Paul, We have definitely experienced the same problem. Our assumption was that we weren't passing an event down to the canvas somehow, but if you are seeing the same behavior it could be a fundamental difference between applications and applets. Any ideas? --Mark At 09:05 AM 1/18/2001 -0500,

Re: [JAVA3D] Generating objects with the union / intersection of another objects.

2001-01-18 Thread Paraskevas Orfanides
I would say the union is possible. As for the intersection, I can't see it happening. Union simply means all of object A and all of object B unite to make an object C. I have never attempted it, but I think this may work: Once you have detected that the two objects are coliding, and the user re

Re: [JAVA3D] Behavior Problems!

2001-01-18 Thread Ole Vilmann
The scaling of an object is done as written below by Eric. If you see that the scaling is also influencing the position then you have: 1. The object is not possitioned at origo (center of the object) 2. The coordinates of the object are off-origo. The first is not that difficult. You have to rem

Re: [JAVA3D] Generating objects with the union / intersection of another objects.

2001-01-18 Thread Yazel, David J.
Yes somthing to the effect: Q: Does Java3d support boolean geometry operations: A: no. Hehe > -- > From: Justin Couch[SMTP:[EMAIL PROTECTED]] > Reply To: Discussion list for Java 3D API > Sent: Thursday, January 18, 2001 9:23 AM > To: [EMAIL PROTECTED] > Subject:

[JAVA3D] Drawing a Part of a cylinder

2001-01-18 Thread firas
Hello! Is it possible to draw only a prtof the cylinder ..? (in which the base is filled arc2d) .. Thanks Firas === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTERE

Re: [JAVA3D]

2001-01-18 Thread Casteel, Don
Paul, I'm not seeing what you are, Andy is using the int [v] to create the Point3f[] array. He goes on to create the individual Point3f with "coordinates[i] = new Point3f ();" so I don't see a problem with the Point3f. Andy, I don't see where you are using a float to create the array in th

Re: [JAVA3D] Generating objects with the union / intersection of another objects.

2001-01-18 Thread Yazel, David J.
Well thats not really a solid object boolean union, which I assumed is what they were looking for. To do the merge I would think you would need to construct a new mesh, which Java3d does not support doing inherently. Maybe I am splitting hairs here. But I don't want anyone to be misled and thin

Re: [JAVA3D] Java3D in an applet

2001-01-18 Thread J. Lee Dixon
Yep, seen it here too, on two different machines. Turning off hardware acceleration for DirectX has no effect. I also tried turning off "Show window contents during drag". Again, the same problem. I think it's a browser problem. -Lee > -Original Message- > From: Mark Ferneau [mailto:

[JAVA3D] Coordinates of Geometry

2001-01-18 Thread Zak
I am trying to track my objects coordinates while it moves. Is there any prediefined methods I can use to track the center of the given object( ie Sphere)? Thanks Zak === To unsubscribe, send email to [EMAIL PROTECTED] and

Re: [JAVA3D] Generating objects with the union / intersection of another objects.

2001-01-18 Thread Paraskevas Orfanides
I know it's not quite creating the new mesh. However, in effect it is the same thing, since, to my knowledge, it will not even attempt to render the parts that are hidden. So the extra vertices will be (almost) as good as non-existant. You are right, though. It only "looks" like a union. But

Re: [JAVA3D] Coordinates of Geometry

2001-01-18 Thread Yazel, David J.
((BoundingSphere)Node.getBounds()).getCenter() > -- > From: Zak[SMTP:[EMAIL PROTECTED]] > Reply To: Discussion list for Java 3D API > Sent: Thursday, January 18, 2001 11:53 AM > To: [EMAIL PROTECTED] > Subject: [JAVA3D] Coordinates of Geometry > > I am trying to

Re: [JAVA3D] Coordinates of Geometry

2001-01-18 Thread Zak
Also, i am trying to to detect if it has moved(it = Sphere). How can I do this? Zak === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, sen

[JAVA3D] Coordinates of Geometry (another question0

2001-01-18 Thread Paraskevas Orfanides
I have been aware of this method. However, I was wandering if it gives the actual coordinates of the object in question, or just the coordinates relative to its movement from its original position. I never really tested it...Let me be more specific: I used VRML97 to load some objects. By defaul

Re: [JAVA3D] Drawing a Part of a cylinder

2001-01-18 Thread Ahmed Shakil
Look at the ModelClip demo which comes with Java3D. -Original Message- From: firas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 7:09 AM To: [EMAIL PROTECTED] Subject: [JAVA3D] Drawing a Part of a cylinder Hello! Is it possible to draw only a prtof the cylinder ..? (in whi

[JAVA3D] popup painting problem

2001-01-18 Thread Yang Shyong
Under certain condition, my j3d application's popup does not repair itself when it becomes invisible. I have spent about a week investigating the problem, going through swing/awt paint/event code and pretty much did all I can do. I need some help from J3d folks. I am not sure this is a j3d or s

[JAVA3D] Checking for movement

2001-01-18 Thread Zak
I am trying to set up a routine that will check for movement of an object. I want to be able to tell the location(coordinates of an object) relative to the screen.   How can I make it check all the time for changes in the object?   Zak

Re: [JAVA3D] Checking for movement

2001-01-18 Thread Yazel, David J.
Is the object moving through a behavior? Objects don't move by themselves. The same behavior that moves the object of course "knows" its being moved. The location relative to the screen could mean several things. Do you mean in relation to the view? Do you need the distance from the view to the

Re: [JAVA3D] Checking for movement

2001-01-18 Thread Zak
I am using the Muse Behavoirs to manipulate the object. I need to get the positon the object is at and the distance from the View... Zak - Original Message - From: "Yazel, David J." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 2:41 PM Subject: Re: [JAVA3D]

Re: [JAVA3D] Checking for movement

2001-01-18 Thread Ahmed Shakil
Well, Objects sometimes do move by themselves if you are using Alpha interpolator. -Original Message- From: Yazel, David J. [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 12:41 PM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Checking for movement Is the object moving through

[JAVA3D] Remove geometry of a escene

2001-01-18 Thread Elio Vega
Hello all. I have the next problem, I will remove objects of a escene and changed to others. I'm use the method removeChild of the class BranchGroup, but don't doing nothing. Do you have a example to do it?.. Thanks Elio _ Do You Yahoo!

Re: [JAVA3D] Checking for movement

2001-01-18 Thread Yazel, David J.
Isn't that just a behavior? Behaviors are just methods that alter the scene graph. Behaviors can be triggered by elapsed time, frames, events, etc. To my knowledge objects don't move themselves. But perhaps I am being too literal. > -- > From: Ahmed Shakil[SMTP:[EMAIL PROTECT

Re: [JAVA3D] Remove geometry of a escene

2001-01-18 Thread Ahmed Shakil
Hi Elio When u r making a BranchGroup which u need to remove. first set the capability for that branch group bg.setCapability( ALLOW_DETACH ); Now when u need to remove this just call bg.detach(); Next time u want to add just simply addChild again root.addChild( bg )

Re: [JAVA3D] Checking for movement

2001-01-18 Thread Yazel, David J.
To get the distance to the view: 1. Get the transform which is translating the object and get the translation vector. This only works if the shape itself is built around the origin and then translated, as most are. 2. get the view transform, gets its translation vector. 3. calculate the distance

Re: [JAVA3D] Remove geometry of a escene

2001-01-18 Thread Yazel, David J.
Use detach() on a BranchGroup() and make sure the capabilities are set on the BranchGroup to ALLOW_DETACH. You cannot remove a child on a active scenegraph, you have to detach a branch group. > -- > From: Elio Vega[SMTP:[EMAIL PROTECTED]] > Reply To: Discussion list for Java

Re: [JAVA3D] Checking for movement

2001-01-18 Thread Doug Gehringer
> From: Zak <[EMAIL PROTECTED]> > > I am trying to set up a routine that will check for movement of an object. I want to be able to tell the location(coordinates of an object) relative to the screen. > > How can I make it check all the time for changes in the object? Try using the attached uti

Re: [JAVA3D] Checking for movement

2001-01-18 Thread Paraskevas Orfanides
If the shape wasn't build in the origin, is there a way to find these coordinates? (i.e. find the coordinates where it was constructed so that the translation vector can get added to that?) Thanks in advance, Paris --- "Yazel, David J." <[EMAIL PROTECTED]> wrote: > To get the distance to the vie