Hello!
I can't get this right. I try to load a object from a 3DS-file but it will
not be visible in the Canvas. I do not know what I'm doing wrong. Perhaps my
3DS-files is corrupt, but I do not think so. I have also added lights.
So if any one could give me some code that loads and show a 3DS-obje
Hi
I'm currently at work so I can't check this theory. But it looks as
though you are not setting the view position up, which means you will be
viewing from 0,0,0. If the model is centred at 0,0,0 this means you will
be looking out from inside the model. It could be that the front clip
distance i
import java.util.*;
import javax.media.j3d.*;
import javax.vecmath.*;
import java.awt.*;
import java.awt.event.*;
import com.sun.j3d.utils.geometry.*;
import com.sun.j3d.utils.picking.*;
import com.sun.j3d.utils.picking.behaviors.*;
Can someone please help with this? I have a translate behavior
Michael Pfeiffer wrote:
It
isn't very funny that I have to register only for this poll. Beside of
that, the registration seem not to work, I don't get an activation
email
and when I try to log in without it, it tells me that my username
doesn't
exists.
I just tried to register
a new
Hello!
I changed my code to this but still nothing to see.
I guess that it is smarter to just extract the model instead of the scene (I
guess that is what this now is doing).
package java3d;
import java.applet.*;
import java.awt.*;
import java.awt.Frame;
import java.awt.event.*;
import com.sun.j
Are you sure loadScene isn't throwing an exception?
Are you sure you are passing the correct path to the object file?
Assuming the loader uses Class.getResource(String path) to get the file url
then depending on whether you start the path with a slash or not will change
where the loader looks for t
I haven't read the code bellow, but from what I understand you are
moving the shape creating a new transform3D each time you want to move
it, instead of multipliying it with the new transformation.
Something like this.
Shape3D miShape = new Shape3D;
//I am going to move it for first time
Transfo
Fredrik,
You moved your view in the wrong direction. Your loaded model is BEHIND
the view. There are all kinds of problems you can have. It's very
possible your model is far too large. As was mentioned before it's very
possible you are "inside" your model. You need to look at the vertex
data
Thanks for the input, unfortunately that is not the problem. Ive just
realised that on the second pick it doesn't matter where the pointer is
when you press the button, it still resets the shape (i.e. picks it no
matter where you click). Does anyone have any ideas, I'm really stuck on
this one :(
Hello,
I looked over your code and it looks like the problem is the getNode()
function is always returning the same thing. I've never used this
function so I can't really say much more than that about it.
I must say, however, that if you want to move your camera each time from
its current positi
Hi, I appreciate the help, I suspect the problem does lie in the picking
area (i.e getNode) but not sure what the solution is.
Perhaps I should explain the context; I am moving a shape within a room,
I don't wish to move the camera, just the shape...
The code has the effect I want, it just doesn't
Hey
I want to use the boundary mode wrap on a box, but it
does not seem to work…
Here’s the code, what am I doing wrong ?
Appearance appearance = new Appearance();
TextureLoader textureloader = new TextureLoader("test2.jpg", "RGB", this);
Tex
Hi all,
We are releasing our Java3D project, named Virtual Camera under the LGPL.
The intent of the project was creating a virtual mockup for simulating tasks related
to machine vision applications. In its current state, the Virtual Camera application
allows the user to:
* navigate in a virtual
Hi all,
Just for the record I intend to continue using Java3D in the future. It
is stable, fast and the best way to display complex worlds in 3D using
Java. I believe there are many people doing significant work using
Java3D and will continue to do so in the future. As far as I'm concerned
I'm hap
14 matches
Mail list logo