Re: [JAVA3D] Multi-texture question

2000-11-22 Thread David
Shawn:   The detail texture is the same across rocks and grass.  The main texture is generated by blending 2 or more textures at each texel based on certain criteria.  The most common criteria I use is to blend each texel based on the texel normal in relation to a normal perpendicular to the

Re: [JAVA3D] Bug #4325851

2000-11-22 Thread Charmaine Lee
David, > > 4325851 Hardware MultiTexture not supported even though numActiveTexture <= > supported num What this bug refers to is let's say 4 texture units have been defined, but only two of them are enabled, and let's say the hardware supports only two texture units; in java3d1.2.1beta1, we onl

Re: [JAVA3D] Multi-texture question

2000-11-22 Thread Charmaine Lee
David, Bug# 4392047 has been filed for this bug. In the meantime, you can pass the texture coordinate as float. This should work. float texCoord[] = {texX, texZ}; triangles.setTextureCoordinate(0,vertex,texCoord); -Charmaine Java3D Engineering Team > MIME-Version: 1.0 > Con

Re: [JAVA3D] How to handle a large number of objects? (Java3dsucks?)

2000-11-22 Thread Andrea Tartaro
Just a clarification... This bug is fixed in the sense that the geometry primitives have been optimized in 1.2.1 beta2. For the Box primitive this means the internal TransformGroups have been removed and geometry is cached so boxes with the same parameters can share their geometry. These optimi

Re: [JAVA3D] Multi-texture question

2000-11-22 Thread Shawn Kendall
Hi David,    Great looking snapshot! I have two questions for ya. 1)  Is the detail texture on the rocks and the ground the same? It looks like it but not quite sure - didn't see any seams though so it must be 2)  Is the "main" texture is a procedure generate full color image that is mapped pe

[JAVA3D] emulation

2000-11-22 Thread Andreas Ebbert
Hi, my Java3D-Program I wrote at the university does not run with my home-PC. I don't need any high-performance there, I just need to take screenshots to picture my diploma with examples. I remember some command line switch to enable emulation or something? Or shall I try a new driver version? T

[JAVA3D] 1.2.1 beta IndexedLineArray.setCoordRefDouble()

2000-11-22 Thread Kevin Copps
I am using IndexedLineArray.setCoordRefDouble(), but only one or two lines get rendered when I am specifying hundreds or thousands of lines. If I copy each of my double coordinates from the same geometry (casting) into a float array and call setCoordRefFloat() everything seems to work fine. --Ke

Re: [JAVA3D] Gouraud shading problem

2000-11-22 Thread Mark Hood
> Date: Wed, 22 Nov 2000 09:52:05 -0600 > From: James Robertson <[EMAIL PROTECTED]> > > Thanks for this valuable information. You're welcome. A small correction: the length of the cross product of two edges of a triangle is twice the area of the triangle, not half as I wrote. This doesn't affec

Re: [JAVA3D] picking problem

2000-11-22 Thread Andreas Ebbert
Hi, "Stokkermans, Bart" wrote: > I've a problem with picking objects. > I've done for all the nodes : setPickable(true). > and I've done for some nodes : setCapability(ENABLE_PICK_REPORTING) > I have a PickCanvas with mode : PickTool.GEOMETRY > When I get a pickResult with PickResult.pickCloses

Re: [JAVA3D] Multi-texture question

2000-11-22 Thread David
I got multi-texture working.  Looks like using the methods to set a single vertex are not working with multiple sets.  I just changed it to build the array of floats then set them all at once.  That worked perfectly.  I have it working in OpenGL on a NVidia TNT ultra card using j3d 1.2.1 bet

Re: [JAVA3D] object only picked when inside object

2000-11-22 Thread Andreas Ebbert
Hi Bart ... again :-) "Stokkermans, Bart" wrote: > javax.media.j3d.Shape3Djavax.media.j3d.TriangleStripArray@c15c4c47 > > -- > Can anyone see, what i'm doing wrong? > I had troubles myself w

[JAVA3D] Java Image I/O API EA2 Released

2000-11-22 Thread Daniel Rice
Greetings -- I'm pleased to announce the second early access release (EA2) of the Java(TM) Image I/O API. This API will be a part of the upcoming release of the Java 2 Platform, Standard Edition (JDK 1.4, a/k/a Merlin). Both the specification and the implementation have been updated conside

Re: [JAVA3D] Bug #4325851

2000-11-22 Thread Shawn Kendall
We are doing this right now, the "detail" use of multi-texturing, with no problem in the DirectX version.  The OpenGL version has some problems on hardware accelerated multi-texture cards, aka the GeForce. We have only tried no more than 2 textures at once however David wrote: 036c01c0542f$0b

Re: [JAVA3D] Multi-texture question

2000-11-22 Thread Shawn Kendall
I have worked with multi-texture quite a bit now and I have run into many, many problems.  However, all but one were in our code.  It's just gets confusing very quick!  I'd like to see the entire exception dump.  Check like crazy (as if you didn't!) and if it won't come clean.  If not,  "whip" up

Re: [JAVA3D] Performance Report 1.2.1 beta 1 and Voodoo 3 v1.06 drivers

2000-11-22 Thread Paul Pantera
> Date: Sun, 19 Nov 2000 09:51:51 -0600 > From: John Wright <[EMAIL PROTECTED]> > Subject: [JAVA3D] Performance Report 1.2.1 beta 1 and Voodoo 3 v1.06 drivers > To: [EMAIL PROTECTED] > > On one low end machine (AMD K6-200, 32 Meg RAM, 3dfx Voodoo 3, Win98 SE, > DirectX 8.0) the new Java 3D 1.2.1 b

Re: [JAVA3D] How to handle a large number of objects? (Java3d sucks?)

2000-11-22 Thread Kelvin Chung
Hi, This bug 4346786 - OutOfMemory error when generating 20,000 Box primitives is fixed in next v1.2.1beta2 release. The Transform3D group in the utility Box/Cone/Cylinder primitives is removed. Thanks. - Kelvin -- Java 3D Team Sun Microsystems Inc. >X-Unix-From: [EMAIL PRO

Re: [JAVA3D] How to handle a large number of objects? (Java3d sucks?)

2000-11-22 Thread Dvorak, Daniel J.
I put my vertex coordinates into a GeometryInfo object. You don't need any transforms to do it that way. The tutorial has a chapter that focuses mainly on this subject. Daniel > -Original Message- > From: P Bai [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 22, 2000 12:47 PM >

Re: [JAVA3D] How to handle a large number of objects? (Java3d sucks?)

2000-11-22 Thread P Bai
Sorry for the words I used. I was just a bit too disappointed then. Can you show me how you managed to construct that large number of polygons? Did you use an individual transformgroup for each object? thanks, Ruopeng === To

Re: [JAVA3D] Gouraud shading problem

2000-11-22 Thread James Robertson
Thanks for this valuable information. The area weighting scheme, where un-normalized cross-products are summed, is real slick. And faster than the un-weighted approach. - Jim Robertson -Original Message- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Ho

[JAVA3D] simple question about df

2000-11-22 Thread Borja Marcos Suárez
Hello,   I need export 3D scenes to disk. I´d like to use dxf format but I don´t have idea how can I do it. Can somebody help me?   Thanks.   --PiXoTomail: [EMAIL PROTECTED]Icq: 41472800Messenger: [EMAIL PROTECTED]Web:

[JAVA3D] What could make BoundingSphere.getRadius() return a negative number?

2000-11-22 Thread Magnus Olofsson
Hi all. I use BoundingSphere.getRadius() as a part of my code to fit a scene within the "viewing volume". On our IBM NetVista machines this call returns -1.0, all other machines and setups returns a relevant value. Are there any special conditions that can cause this method to return a negative

Re: [JAVA3D] How to handle a large number of objects? (Java3d sucks?)

2000-11-22 Thread Dvorak, Daniel J.
My project involves drawing over 25000 polygons, each as individual objects to facillitate picking and individual coloring. Right now it takes around 150Mb to run, but as J3D evolves, the tools are there to make the app use much less memory. The main problem is the lack of "how-to" books. The b

Re: [JAVA3D] How to handle a large number of objects? (Java3d sucks?)

2000-11-22 Thread Karsten Fries
Hi R Wang, don't be disappointed and just skip those transforms by building a large quadarray for your boxes instead. I have big scenes two and had to get rid of as many transforms either, thus I used the sun.util primitives (Sphere, Cylinder) to generate the geometry and after that put the trian

[JAVA3D] object only picked when inside object

2000-11-22 Thread Stokkermans, Bart
Hi all, I have a major problem with picking. I only can pick an object when i'm inside it. So, i zoom in until i'm in the object. I only set the transformationgroup of the object to setpickable(true). This is what i do : tg_scale = new TransformGroup(); tg_scale.setCapability(TransformG

Re: [JAVA3D] How to handle a large number of objects? (Java3d sucks?)

2000-11-22 Thread Qiu Guojin
i have the same question and if I draw 1 boxes,it is out of memory. I don't know why,can someone give us a good resolvtion. - Original Message - From: "R Wang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 22, 2000 2:07 PM Subject: [JAVA3D] How to handle a large