[JAVA3D] [java3d] transparency

2001-04-10 Thread PLUG
Hi! I have problems with objects transparency with textures. Already 5 days. Below Uma Sabada has written working (like) program. But, again, I have failled. Here is piece of code, can somebody will prompt in than problem. app = new Appearance(); Texture tex = new TextureLoader(texImage,

Re: [JAVA3D] Performance Problem: Creating Scene Graph andRotationBy Mouse

2001-04-10 Thread chris thorne
FYI I have been scanning performance content on the list and building a performance perls document. I'll put it up on the web if anyone is interested. I think the comment from Kevin Rushforth is the reference you are after: SetTransform 1.The setTransform(Transform3D t) method of the Transfo

Re: [JAVA3D] Performance Problem: Creating Scene Graph and RotationBy Mouse

2001-04-10 Thread Paraskevas Orfanides
I believe that in a previous discussion, quite some time above, someone had mentioned such a performance decrease due to the changing the values of transforms. I think a workaround was to use quads instead of transform rots, or even direct access of the matrix in order to do the rotations. But th

Re: [JAVA3D] Performance Problem: Creating Scene Graph andRotationBy Mouse

2001-04-10 Thread Geoff Morris
Thanks Artur, Chris, and others for your assistance. Your testing and suggestions are very appreciated. It seems that there's too much geometry, and too much transformation (both factors seem significant). Thanks, Geoff. Chris wrote: FYI, it runs at 1.4fps on a PIII700 notebook with ATI Ra

Re: [JAVA3D] Performance Problem: Creating Scene Graph and RotationBy Mouse

2001-04-10 Thread chris thorne
  Geoff, FYI, it runs at 1.4fps on a PIII700 notebook with ATI Rage Mobility AGP 2x, 8MB and 12fps on an Athlon 900, AGP 4x, Gforce II GTS 32MB When I reduce the divisions to 4 the notebook fps goes up to 5.5. Chris Geoff Morris wrote: Hi: I've attached example code that generates and displays

[JAVA3D] Game Direction

2001-04-10 Thread silvano
I'm working on a game in which the user needs to move an object arounda 3D "room", allowing 6 degrees of freedom. The object has a DOF(direction of flight) and Up vector to define its direction ofmovement. I need to allow the user a set of operations such asrotation along the 3 axis (X, Y, a

[JAVA3D] MouseRotate's setupCallback() and transformChanged()

2001-04-10 Thread Mona Wong
I've read the API on MouseRotate.setupCallback() and MouseRotate.transformChanged() and do not understanding the distinction between the two. Could someone elaborate or point to some docs that gives a good explaination? Thanks, Mona =

[JAVA3D] rotation & zoom about centroid using MouseRotate and MouseZoom classes

2001-04-10 Thread Mona Wong
Hi: I need to rotate and zoom about the centroid of the objects which isn't at the origin. How can I accomplish this using the MouseRotate and MouseZoom classes? Any sample code or pointer to docs will be greatly appreciated. I've posted this before but didn't see any response

Re: [JAVA3D] NormalGenerator + Questions regarding Indices; Help !

2001-04-10 Thread Paul Pantera
> Date: Mon, 9 Apr 2001 19:52:20 - > From: R Vegan <[EMAIL PROTECTED]> > Subject: [JAVA3D] NormalGenerator + Questions regarding Indices; Help ! > To: [EMAIL PROTECTED] > > Hi All > > I have a bunch of triangles (generated NOT by the Triangulator) > represented by a coordinate array and an ind

Re: [JAVA3D] TransformGroup

2001-04-10 Thread giles
Not sure which node you are asking for its children but if you are using SimpleUniverse then it will add a few groups for navigation. This might be whats going on. The code for SimpleUniverse is included wiht the Java3D downkload so ya can take a peak at what its doing. Desiree Hilbring wrote:

Re: [JAVA3D] Creating shapes at runtime???

2001-04-10 Thread Paraskevas Orfanides
I don't see why not. I am currently doing something similar in my application, except I use imported objects and I construct the bg upon importing them. So in my actionPerformed(ActionEvent) I just need to add it. But creating the bg and then add it should be no different. Paraskevas --- Shami

Re: [JAVA3D] Creating shapes at runtime???

2001-04-10 Thread Shamim Khaliq
answered that myself. it works perfectly (in an action performed that is). much easier than writing a behaviour, which is what i was doing. thank you so much. Shamim Khaliq [EMAIL PROTECTED] - Original Message - From: Shamim Khaliq <[EMAIL PROTECTED]> To:

Re: [JAVA3D] Hiding Nodes

2001-04-10 Thread jie
use javax.media.j3d.Appearance.getRenderingAttributes().setVisible(). === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMA

Re: [JAVA3D] Hiding Nodes

2001-04-10 Thread Yazel, David J.
Well you can use an alternate appearance and have it set the rendering attributes of its scoped nodes to setVisible(false). You can change the scope of the AlternateAppearance from one sub-scene to another. Problem is that nodes which have setVisible to false it is still pickable. Course you ca

Re: [JAVA3D] Texture lighting

2001-04-10 Thread Gregory X Hopkins
Zak, To Apply a texture to a sphere, you have to set the primflags when you create the sphere. I don't know what all the flags mean, so I just turn them all on. int primflags=0xFF; Sphere sphere = new Sphere(0.5f, primflags, ap); The AppearanceTest example hides this little problem by using a T

Re: [JAVA3D] Creating shapes at runtime???

2001-04-10 Thread Shamim Khaliq
can you do this (create a branch group, add it to the live one) in an actionPerformed(ActionEvent) method? Shamim Khaliq [EMAIL PROTECTED] - Original Message - From: John Wright <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 10, 2001 12

[JAVA3D] Hiding Nodes

2001-04-10 Thread Andy K
Hello again.. Just a quickie.. (I think) Is there anyway to hide shapes in a compiled scenegraph only I have various objects (which are pickable) and want the user to be able to select one and hide it (also making it un-pickable) and then click another shape, hide the new one and reset the old h

Re: [JAVA3D] Culling of lines when inside of other objects

2001-04-10 Thread Yazel, David J.
The simple answer is no.   The long answer is that java3d does no occlusion culling, and even if it did , it would not be for partially occluded shapes, just fully occluded shapes.  What you are describing is even far beyond the capabilities of a good occlusion engine, as you would have to spli

[JAVA3D] Culling of lines when inside of other objects

2001-04-10 Thread Sackmunky
I have many objects that intersect with one central object. The multitude of objects, when viewed, looks to go inside the central object, and whenever i look inside the central object the lines are still being drawn. Is there anyway I can tell Java3d that whenever two objects intersect to ge

Re: [JAVA3D] Non Picking

2001-04-10 Thread Artur Biesiadowski
"J. Lee Dixon" wrote: > > I just catch the exception, and if the item is not pickable, then I just > don't do anything. You still pay performance penalty for checking all objects and at the same time add another one for creating exception object (which can be very big). Artur ==

Re: [JAVA3D] Non Picking

2001-04-10 Thread J. Lee Dixon
I just catch the exception, and if the item is not pickable, then I just don't do anything. -Lee > -Original Message- > From: Andy K [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 10, 2001 11:08 AM > To: [EMAIL PROTECTED] > Subject: [JAVA3D] Non Picking > > > Hi.. > > I've successfull

Re: [JAVA3D] Non Picking

2001-04-10 Thread John Wright
Andy, What we do is put all non-pickable stuff in a separate BG. Then only perform the pick on the BG that contains the objects you want picked. - John Wright Starfire Research Andy K wrote: > > Hi.. > > I've successfully created a scene with various shapes and setup some custom > interactions

Re: [JAVA3D] Performance Problem: Creating Scene Graph andRotationBy Mouse

2001-04-10 Thread Artur Biesiadowski
Geoff Morris wrote: > > Artur, thanks for your comments. > > When I reduced the sphere's divisions to four (as John suggested), the > creation time for the scene graph was improved, but the mouse rotation was > still too slow. Perhaps this slowness may also have something to do with > the 2000+ T

Re: [JAVA3D] Non Picking

2001-04-10 Thread Yazel, David J.
Generally you put the pickable items in an entirly different branch group from the non-pickable items. Then only do picking against the one or more pickable branchgroups. Dave Yazel -Original Message- From: Andy K [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 11:08 AM To: [EM

[JAVA3D] Non Picking

2001-04-10 Thread Andy K
Hi.. I've successfully created a scene with various shapes and setup some custom interactions which are switched off or on via a toolbar. I've extended the pick behaviour, which is now picking by Geometry, which changes the colour of the picked shape and all seems to run very well However I hav

Re: [JAVA3D] Creating shapes at runtime???

2001-04-10 Thread Kevin Rushforth
Java 3D protects its internal accesses from user set methods. We will never read a partially copied matrix, so you can set a transform from any thread without worrying about synchronizing with the Java 3D renderer. Note that we don't protect the case where two user threads call set or one user t

Re: [JAVA3D] Performance Problem: Creating Scene Graph andRotationBy Mouse

2001-04-10 Thread jie
How about use the javax.media.j3d.SharedGroup. === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and inclu

[JAVA3D] TransformGroup

2001-04-10 Thread Desiree Hilbring
Hi everybody, I am asking getAllChildren() for a node in my scenegraph. This method returns me an Enumeration with for example 6 TransformGroups. The problem is that I attached only 5 TransformGroups to my node. I am pretty sure that I never did addChild() (I tested all new TransformGroup() state

Re: [JAVA3D] Creating shapes at runtime???

2001-04-10 Thread Paraskevas Orfanides
You can try that. I don't want to say you can't, because I don't quite remember, but I think I had tried that in the past and it didn't work. But all who know me, also know that I have a terrible memory that is not to be trusted:-P. Paraskevas --- "Theron, Jannie" <[EMAIL PROTECTED]> wrote: > J

Re: [JAVA3D] Performance Problem: Creating Scene Graph and Rotation By Mouse

2001-04-10 Thread Sackmunky
I ran it on my machine, and it doesnt perform that badstill useable.   Zak - Original Message - From: Geoff Morris To: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 5:16 AM Subject: [JAVA3D] Performance Problem: Creating Scene Graph and Rotation By Mouse

Re: [JAVA3D] Performance Problem: Creating Scene Graph and RotationBy Mouse

2001-04-10 Thread Geoff Morris
Artur, thanks for your comments. When I reduced the sphere's divisions to four (as John suggested), the creation time for the scene graph was improved, but the mouse rotation was still too slow. Perhaps this slowness may also have something to do with the 2000+ TransformGroups and 2000+ Shape3Ds

Re: [JAVA3D] Performance Problem: Creating Scene Graph and RotationBy Mouse

2001-04-10 Thread Artur Biesiadowski
> Geoff Morris wrote: > > Hi: > > I've attached example code that generates and displays about 2000 > spheres (I've tried ColorCubes). > > Creating the scene graph, and rotating by mouse is very slow, and it's > really unusable. > > It may be that my PC is incapable of better performance, but I'm

Re: [JAVA3D] Performance Problem: Creating Scene Graph and RotationBy Mouse

2001-04-10 Thread Geoff Morris
John, thanks for testing this, and for your suggestions.  We had 'played' with smaller geometries, and as you suggested, reduced the sphere's number of divisions to four. The improvements are less than hoped for.   The test program was just test code to make it easier for others to help me o

Re: [JAVA3D] Performance Problem: Creating Scene Graph and RotationBy Mouse

2001-04-10 Thread John Davies
Hi,    I've just compiled your test program (I had to remove the Borland import). All I can suggest is that you reduce the divisions in the Sphere constructor to something like 4 and introduce a higher "resolution" by using LOD (Level of Detail). It may also be worth noting that if this is what

[JAVA3D] Performance Problem: Creating Scene Graph and Rotation By Mouse

2001-04-10 Thread Geoff Morris
Hi:   I've attached example code that generates and displays about 2000 spheres (I've tried ColorCubes).   Creating the scene graph, and rotating by mouse is very slow, and it's really unusable.   It may be that my PC is incapable of better performance, but I'm hoping someone can see somethi

Re: [JAVA3D] Our package to do some avatar descriptions and animations

2001-04-10 Thread Andrew Neiderer
I am interested. - Andrew M. Neiderer [EMAIL PROTECTED] Silvere Martin-Michiellot To: [EMAIL PROTECTED] Subject: [JAVA3D] Our package to do some avatar descriptio