java-3d

Repeated Scene Trees (Java3d / OpenGL)

Hello, I want to make a 3d scene that loops around on its self. That is to say, if you keep going in any direction, you will loop back to the other side. My current implementation is so bad, it's embarrassing to admit to it. I redraw the each change twenty-seven times, to make a 3x3x3 scene cube. When the user reaches the end of the...

Dragging shapes in Java 3D with the mouse

I have a 3D scene in which i have objects i can interact with using the mouse. I use a pick ray and can correctly obtain the desired object (from the PickInfo object). The problem i am facing, is that i want to drag the object or distort it along the plane of the viewport and have it be positioned where my mouse actually is in the view...

Trying to convert a 2D image into 3D objects in Java

Hey, I'm trying to take a simple image, something like a black background with colored blocks representing walls. I'm trying to figure out how to go about starting on something like this. Do I need to parse the image and look at each pixel or is there an easier way to do it? I'm using Java3D but it doesn't seem to have any sort of built ...

How do i translate movement on the Canvas3D to movement in the virtual 3D world

My goal is to move a shape in the virtual world in such a way so that it ends up where the mouse pointer is on the canvas. What i have: -mouse position (x,y) on a Canvas3D object -Point3d object of where a pick ray starting from the Canvas3D viewport intersects with the first scene object. (point in 3D space of where i want to start the...

Interpolation of scattered data: What could I do?

Hi! I need your help. I'm working on a 3D chart in Java using Java 3D. It should be able to display a bunch of measured values. As measured, the data I get is scattered. This means I will have to interpolate the missing points in order to get my surface plotted nicely. I didn't study all that 3D-Geometry stuff yet and I don't know wh...

Is it impossible to embed Java3D in a way that I don't need to install it?

I'm running a big application and a small part of it includes Java 3D, the problem is many users need to use the code, but it isn't practical for everyone to install Java 3D just to run the application if they aren't even going to use that section of the application. Is it possible through compiling an extra jar, or changing some paths,...

how to see oneself edges using java3d transparency

When setting an object's transparency on in Java3D, I cant see the other objects through that object but I can't see this very object geometry through it. Is that possible ? (example: I have a transparent cube that is lit a way that the faces have different colors, however, I can only see at most 3 faces of the cube at the same time) ...

Java3d: How to draw a 2d overlay on a Java 3d scene?

There are several techniques, I'd like some feedback on the pros/cons of them. As far as I know there are : "Raster" technique Have to use images, and it is not a real overlay, just another object in the 3D scene. Other bjects could hide it. the Canvas3D "postRender" technique http://stackoverflow.com/questions/2559220/java3d-paint...

Java 3D Canvas To Virtual World Mapping

Hi, I have a 3d Scene set up and can navigate my scene etc (I am fairly experienced in Java 3D) but i still need ways to achive the following operations in Java 3D: -map the viewing area of my Canvas3D into the virtual world (with this mapping i should be able to draw an outline (rectangle) in the virtual world around the viewing canva...

Java 3D performance poor after latest NVIDIA driver update to 257.21

I Hava a GeForce 9088GTX+ 512MB card and updated my driver from 191.07 to 257.21. Now When I run a Java3D application i made, it runs really slowly (seems like it's not using hardware acceleration since my cpu usage goes up for the System process). This same application worked flawlessly on the old driver version. Now it's sometimes n...

How can I check if Java 3D is installed from my java application?

How can I check if Java 3D is instaled on the client? I can use that to display a message about missing requirements. Thanks in advance! ...

Infinite wait on D3DScreenUpdateManager.runUpdateNow call

The sun.java2d.d3d.D3DScreenUpdateManager.runUpdateNow had an infinite wait bug that was supposedly fixed in java 1.6 update 10. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6607230 I have a client, based on their stack trace, seems to be having a similar issue. But this happens on their Window XP machine with java version 1.6 up...

Running a Java 3D program from the command line

I recently installed java 3D in my computer and it all the progras which I created worked from the NetBeans IDE. However when i set the path in the command line, it says that javac is not ercognised. I set the path to, C:\Program Files\Java\Java3D\1.5.1\bin and then typed javac FirstProgram.java I got the following mesage (please help)...

how do obj files work once loaded.

Can anyone provide me with a high level over view of how obj or other 3d formats work. I'm trying to learn 3D programming for games but all the tutorials i've found so far only show how to create and manipulate primitives such as a sphere etc. I'm using java but i also know C# and C++ i've just never done games programming or any 3D mode...

Rotating the viewing platform in Java3d

The following code puts a cube at (0, 0, 0) and another at (0, .5, .5) and each cube is (.5, .5, .5) in dimension. I'm trying to rotate the view that the screen gets to one like this but instead I get this view . Also, I realize I got the colors backwards. Anyway, this is my code so far: import com.sun.j3d.utils.geometry.*; import com...

JNLPAppletLauncher can't find subApplet class name since Java update 21

Hello Tom, Since JRE version 1.6.0_21-b07 org.jdesktop.applet.util.JNLPAppletLauncher can't find the class contained in the parameter subapplet.classname anymore. In https://applet-launcher.dev.java.net/source/browse/applet-launcher/trunk/src/org/jdesktop/applet/util/JNLPAppletLauncher.java?rev=41&view=log your name appears in revis...

Load a .obj file with Java3D and use it in JOGL?

I'm using Java3D and JOGL, but I'm having a hard time figuring out how to do this by looking at the javadocs. I want to load a .obj file (other formats would be nice, too) and render it using JOGL. Here's a loader class. It returns a Scene from a filename. How can I use this Scene in JOGL? Thanks. I'm new to JOGL and Java3D. ...

Memory Efficient implementation of corner point grids in Java3D/OpenGL

Say I have NX*NY*NZ cells in a corner-point-grid. I have also a mask of NX*NY*NZ booleans that gives me which cells of the grid I have to draw. I would like to create an efficient indexed quad array in Java3D (or OpenGL, it does not matter at the end, since the concepts below are the same) using less memory as possible. For sake of sim...

Setting transparency makes textures translucent

Ok, so my problem is that I have a plane in java3d that has a texture painted on it. This texture is a PNG with alpha transparency. When the scene is rendered the texture on the plane is partially translucent, as if it has some transparency over the entire image. I have played around with a variety of texture and transparency settings tr...

Add syntax highlighting for J3D in Netbeans?

Is it possible at all? It feels like it should be a rather basic feature but.. How do I do it? ...