Re: [JAVA3D] Swing component on Canvas3D

2002-10-23 Thread Alex
Hi All, Actually, all I want to do is to add a translucent JTextArea onto the Canvas3D. I need the Canvas3D to be the background for this JTextArea. Is there any alternatives for me to achieve this? Thanks in Advance. - Alex - - Original Message - From: "Alejandro Allievi" <[EMAIL PROTE

[JAVA3D] add applet into swing panel

2002-10-23 Thread sniper_bat
hi all. (BI have a question. (Bhow can I add a java3d applet into the swing JPanel. (Bthanks for all help. (B (B $B0J>e$G$9!# (B (B $B59$7$/$*4j$$CW$7$^$9!# (B (B### (B $B3t<02q

Re: [JAVA3D] put a Texture ones on an object???

2002-10-23 Thread Stoney Jackson
(You'll want to use a fixed width font to view this article)   First, use textures with transparent backgrounds, and make sure their boundary pixels are transparent.   Second, use DECAL texture mode.   Now, for each texture, supply the geometry with texture coordinates that stretch the text

Re: [JAVA3D]

2002-10-23 Thread Mona Wong-Barnum
You can also use the Switch class. I tried the setVisible() and it was too slow (I can see each object being turned off and on). With the Switch class, it is fast and all objects disappear at once (those that should disappear, of course) and appear at once. Cheers, Mona > Peter Szinek

Re: [JAVA3D] help needed about 'picking'

2002-10-23 Thread White Morph
Rong, Sounds like a good idea. I think I can construct a Bounds object of BoundingPolytope by 5 planes, which can be used to define a PickBound. Then, I'll create an instance of PickTool and set its pickShape to the PickBounds created above. (I guess we can't set a random pickShape used by PickC

Re: [JAVA3D] Swing component on Canvas3D

2002-10-23 Thread Alejandro Allievi
Hi, I agree with Peter. As a general rule, avoid "mixing" GUI components and graphics by placing them in different JPanels (or subclasses of it). This minimizes chances of GUI components and/or graphics not displaying properly. Regards, Alejandro -Original Message- From: Discussion lis

Re: [JAVA3D] Editing the canvas

2002-10-23 Thread Chad Zalkin
> To do the reading, have a look at GraphicsContext3D.readRaster(). As I am aware; but how do I send my changed raster back to the canvas? I don't see a way. Perhaps I need to just use offscreen buffers and paint the raster to the canvas within paint() ? There has to be a better way -

[JAVA3D] Volume Rendering problem (part 2)...

2002-10-23 Thread Kovalan Muniandy
Hi again, After installing Java3d v1.3 (from Java3d 1.3 beta), the problem of rendering incorrect slices went away. However, my images are still incorrect: http://www.cis.ohio-state.edu/~muniandy/post/java3d/prob2.jpg Can someone give me a hint as to what maybe wrong? Thanks! Kovalan - Ori

Re: [JAVA3D] Problems with objects movement

2002-10-23 Thread Fernando Cesar Balbino
Thanks Jason and Peter! I'll try to make the changes! And sorry by the comments in portuguese!!! :-)   []'s   Fernando - Original Message - From: Fernando Cesar Balbino To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 10:15 AM Subject: [JAVA3D] Problems

Re: [JAVA3D] help needed about 'picking'

2002-10-23 Thread Rong Wang
Hi, Try the following step 1. After you get the four points corresponded the mouse drag, build a cubic bound using the code for class PickObject for the pick aperture in SUN j3d Picking utility package. 2. create a instance of PickCanvas, and set the pickShape to the bound which you created

[JAVA3D] First Contact

2002-10-23 Thread Mike Wilson
Hi All, can someone give me a work example of the GeometryArray Method. I have used OpenInventor in the past and it had a very nice Nurbs Surface that could be used easily and quickly within a scenegraph. I would like to make fractual landscapes of huge data sets, this will require a 3D - Grid t

Re: [JAVA3D] Problems with objects movement

2002-10-23 Thread Peter Szinek
Hello Fernando, I don't have much time now but for the first peek i would say the problem is that you put all the named objects into ONE branchgroup, and then you manipulate that branchgroup, and this way of course everything is moved at once. If you want to treat the objects separately, modify

Re: [JAVA3D] Strange Effect with Transparency and modify Scenegraph

2002-10-23 Thread Raj N. Vaidya
Ok ! Here is what I know about rendering transparent geometries... If this probably confuses rather than clarifies the issues, y'all be my guests and make the corrections... Opaque/transparent geometries under an OrderedGroup are rendered before transparent geometries not under an OrderedGroup. So

Re: [JAVA3D] put a Texture ones on an object???

2002-10-23 Thread Carlos Vieira
Hi, You can subdivide the object in several parts. Then you apply separate texture on object part that you want. Then you have one big object with several textures... Carlos V. > This is a multi-part message in MIME format. > > > Hello out there > does somebody know how to put a texture on an

[JAVA3D] put a Texture ones on an object???

2002-10-23 Thread Martin Frey
Hello out there does somebody know how to put a texture on an object, so that the texture is not drawn ower the whole object. I need to put several textures to thier specified positions on the object. I think this should be possible?... At the moment i can only put a texture on an object, an

Re: [JAVA3D] Strange Effect with Transparency and modify Scenegraph

2002-10-23 Thread Roy Duffy
Hi. I think I may have seen this problem too. I made a test case but I was debating whether I should post it, but now I can't resist since it seems like the same problem. It's two Text2D objects under an OrderedGroup. If you drag the mouse to spin the one labeled "FAR" in front of the one labeled

Re: [JAVA3D] Problems with objects movement

2002-10-23 Thread Jason Taylor
Without actually running the thing the only bit I'm not sure about is the bounds on your TG's mouse behaviours (I presume that's how you are 'moving' the objects). The bounds all appear to be the same and are I think the same as the global bounds of your scene. If that is so you will always act

[JAVA3D] Problems with objects movement

2002-10-23 Thread Fernando Cesar Balbino
Hello, friends.   I'd like to ask you some help about the code I've been created from some Daniel Selman's example. I'm trying to create a program where I can build a virtual interface with VRML objects. The problem is: I need to move the VRML objects that are loaded, one by one. But when I m

Re: [JAVA3D] Strange Effect with Transparency and modify Scenegraph

2002-10-23 Thread Andreas Jerke
> Andreas Jerke wrote: > > > When I change the Scenegraph (Moving objects, changing Switch etc.) the > > transparency does not work anymore. Some objects BEHIND other transparent > > objects are shown, others NOT. > > > Have you set > View.setTransparencySortingPolicy(TRANSPARENCY_SORT_GEOMETRY) ?

[JAVA3D] Not thread safe or race condition in java3d

2002-10-23 Thread Yann Lemoigne
Does any have ever seen this bug ? java.lang.IndexOutOfBoundsException: Index: -1, Size: 6 at java.util.ArrayList.RangeCheck(ArrayList.java:508) at java.util.ArrayList.get(ArrayList.java:320) at javax.media.j3d.RenderBin.findOrderedCollection(RenderBin.java:4447) at

Re: [JAVA3D] Swing component on Canvas3D

2002-10-23 Thread Peter Szinek
Hello Alex, Wednesday, October 23, 2002, 09:59:19, you wrote: A> Hi all, A> Is it possible to add a swing component, say a JTextArea onto a Canvas3D? If its possible, how do I go about adding them? Are you sure you need to add it on the *Canvas3D*? Wouldn't be sufficient to add it below/over/r

[JAVA3D] Swing component on Canvas3D

2002-10-23 Thread Alex
Hi all,   Is it possible to add a swing component, say a JTextArea onto a Canvas3D? If its possible, how do I go about adding them?   Thanks in advance.   - Alex -

Re: [JAVA3D]

2002-10-23 Thread Justin Couch
Peter Szinek wrote: Suppose i have constructed the scene graph and compiled the root object. Now, i want to find an easy way to hide/unhide some objects in response to user action (e.g. the axis in response to acheckbox set/unset). Is there a clean way to accomplish this? Something like BranchGro

Re: [JAVA3D] Editing the canvas

2002-10-23 Thread Justin Couch
Chad Zalkin wrote: I am attempting to do some image editing on my canvas. Specifically I want to directly edit the pixels of the canvas. Is there any way to get a raster (for example) of the current frame, edit the data, and pass it back to be displayed? If possible, is this an expensive operat