java-3d

How to find a normal vector pointing directly from virtual world to screen in Java3D?

I think it can be done by applying the transformation matrix of the scenegraph to z-normal (0, 0, 1), but it doesn't work. My code goes like this: Vector3f toScreenVector = new Vector3f(0, 0, 1); Transform3D t3d = new Transform3D(); tg.getTransform(t3d); //tg is Transform Group of all objects in a scene t3d.transform(toScreenVector); ...

Virtual 360º, stitching and presentation software, for use on PHP driven website?

EDITED (after 1st answer): Can anyone help by pointing to some good references for the creation and presentation of a 3D environment (a real room) on a website. Ideally it will not involve too much expense or too high a learning curve as this is a one off requirement for a small project. ...

Canvas3D not appearing in Swing window

I am attempting to insert a Canvas3D object inside a Swing JPanel, but the code doesn't seem to be working (i.e. nothing happens): Canvas3D canvas = new Canvas3D(SimpleUniverse.getPreferredConfiguration()); SimpleUniverse universe = new SimpleUniverse(canvas); BranchGroup root = new BranchGroup(); root.a...

Convert frustum to a projection matrix in Java 3d

I need to prepare for my exam and this is the probable question for the test. Given a frustum method such as frustum(-1,1, -0.5, 0.5, 1, 2) how to convert this to a projection matrix? The above example from my textbook but the writers don't define it in detail. If anyone can explain this in detail, I'd appreciate very much. ...

Simple transparency example not working in Java 3D

Hi all, I'm a complete n00b in j3d (but an expert in Java). Just starting out, I'm running into a problem playing with transparency. I've got a simple example which draws a rotating planar quad (disappears when showing the back face because I haven't disabled backface culling). With the Color3b and COLOR_3 lines uncommented (and the co...

High Level Graphics

I did a lot of VRML+Java work in college and loved it, but I feel like it's not really a marketable skill. Has anyone worked with a high level graphics API like open inventor, coin..etc that is actually in use to a degree that makes investing a lot of time in the API worthwhile for something more than a hobby? ...

Java3D: Tutorials, Projects, General 3D Programming

I've been thinking about playing with Java3D. But first I would like to know if anyone has done much with it? What types of projects have you done and what tutorials/examples/guides did you use to learn it? What are your general thoughts about the API? Is it well developed? Can you program games or do any physical modeling with it? ...

How can I make Java3D start faster?

My application takes several seconds to show the first window with a Canvas3D in it. I've profiled it and found that the bottleneck is in SimpleUniverse.getPreferredConfiguration(); the first call takes three or four seconds, and it must be called before the scene can be rendered. I'm using the Direct3D renderer (-Dj3d.rend=d3d), becaus...

What's the future for Java 3D?

Time ago I read about Java 3D integration into Java FX, the article reported the main Java 3D project as "dead" for rewriting the 3D engine into FX. ...

Java3D simulation assignment

I have been assigned the task of simulating the start of the universe using java3D (particles etc) and must consist of 5 different sections... each of a minimal length of 15 seconds. Stages like the particle soup stage - basically 5 distinguishable visualizations. It doesn't have to be complicated, merely spheres moving around with set p...

Java 3D: Where can I insert a "post rendering" FX?

Hi, I extended a Canvas3D and then I override the method "postSwap()", but my odd-even line effect is flickering a lot, what could be another good point for inserting this process? public void postSwap() { Graphics2D g2 = (Graphics2D)this.getGraphics(); Map map = new HashMap(); map.put(RenderingHints.KEY_ANTIALIASING, Render...

Java3d Behaviors and movement

I would like to move a sphere in a random direction within a simple universe. How could i achieve this with behaviours by changing the location a small amount frame by frame. The reason I am trying to do this is to produce random movement within the universe and eventually build in simple collision detection between the particles. Any a...

Good way to deploy a Java3D applet?

I tried JNAppletLoader but with my JRE 1.6_02 gives many problems, it works once time every 10. ...

What's the best way to create a "texture-snapshot" of a 3D plane?

Hello, my intention is to use a top view, set in parallel projection, with axis x=0,y=100,z=0 for picking up a snapshot of a 3D plane positioned at origin, obviously "y" depends by dimensions of the plane (I have also problems to understand why I must use View.setScreenScale to obtain a depth effect). The problem comes when I want to gr...

Is there a good 3d software renderer for Java?

I have a PC with a good CPU but slow GPU (integrated graphics card). I have noticed that some commercial games work much better using their software renderers instead of OpenGL or DirectX. I am making a Java app that will use JOGL/LWJGL to access OpenGL. To enable a software rendering option, should I look at a pure-Java software rendere...

Using NetBeans IDE 6.7 with J3D's Canvas3D Container

I keep telling myself that this should be simple, and yet I'm completely lost. Let me start by saying that I'm new to NetBeans IDE, and that I am using it out of necessity. I don't really know much about it yet. I have successfully designed my main window for my application. The right side of the application is essentially a large windo...

sites using java 3d ? ( need to develop 3d for the web )

Hello all do you know good example of sites that using java 3d for there content ? i need to fine some kind of 3d solution , and now only java 3d solution is the best as i see it . but i didn't found any good site examples ...

How to draw a transparent plane in Java 3D?

I am trying to draw a transparent plane (X[0..100],Y[0..100],Z=0) in Java 3D, but can't figure out how. I've looked on the tutorial page and still can't find any sample programs. I am attempting to find a "plane" object as a BranchGroup to add to my existing TransformGroup, but there isn't such a plane object; what should I use? And how...

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

I have a scene written in Java 3d, where the user's viewing position is set to some coordinate using the following code: ViewingPlatform vp = simpleUniverse.getViewingPlatform(); TransformGroup steerTG = vp.getViewPlatformTransform(); Transform3D t3d = new Transform3D(); steerTG.getTransform(t3d); t3d.lookAt( new Point3d(-5, 1...

How to set capabilities of a universe in Java 3d?

How can I set the bounds on a SimpleUniverse instance created with a canvas3d object? I tried the code below, but I get either a "Capability not set exception" if I try to set the bounds and a "Restricted access exception" if I try to set the capability to write bounds. Here's my code: GraphicsConfiguration config = SimpleUniverse.get...