Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Java 3D / Re: Java 3D and Modelling Programs on: 2005-09-27 18:37:11
AFAIK, there is no Blender loader for j3d.  I've been using a .obj exporter for Blender and reading it into Java with ObjectFile that comes with the distribution.
2  Java Game APIs & Engines / Java 3D / Mouselook within a J3D applet on: 2005-09-24 13:58:09
Got the mouselook code working.  Pressing m on the keyboard hides the cursor and moving the mouse pans the camera.  Pressing m again returns the cursor to default and turns off the mouselook.

However, move the mouse beyond the edge of the applet and the whole thing stops working properly.  So, I want to reset the cursor position in the middle of the applet after every move.

And this is in an applet, so I can't use Robot!

Has anybody been able to implement a functional mouse look within an applet?
3  Java Game APIs & Engines / Java 3D / Retrieving actual vertex coordinates of live and transformed shape3d on: 2005-08-27 03:35:21
4 vertice shape3d object (2D rectangle) is created around the origin (0,0,0). Through the use of the program, the rectangle is translated and rotated. I need to be able to retrieve the current coordinates of a specified vertex at any time.

I can retrieve the vertex coordinates and the vector of the movement of the object. I can get a Matrix3d object of the rotation of the object, but I do not know how to apply that to get the current coordinate of the vertex.

Here's what I've got so far...
        Point3f p = new Point3f();
        Shape3D s = * retrieved shape *;
        GeometryArray geom = (GeometryArray) s.getGeometry();
        geom.getCoordinate( corner, p );
        Transform3D tmp= new Transform3D();
        Vector3d trans = new Vector3d();
        Matrix3d rot = new Matrix3d();
        tmp.get(rot, trans);

trans gives me the vector
(-9.0, -1.8125, -14.0)

rot gives me the matrix
-1.0, 0.0, 1.2246467991473532E-16
0.0, 1.0, 0.0
-1.2246467991473532E-16, 0.0, -1.0

Any help will be much appreciated.
Pages: [1]
ivj94 (579 views)
2018-03-24 14:47:39

ivj94 (42 views)
2018-03-24 14:46:31

ivj94 (346 views)
2018-03-24 14:43:53

Solater (59 views)
2018-03-17 05:04:08

nelsongames (104 views)
2018-03-05 17:56:34

Gornova (122 views)
2018-03-02 22:15:33

buddyBro (665 views)
2018-02-28 16:59:18

buddyBro (89 views)
2018-02-28 16:45:17

xxMrPHDxx (491 views)
2017-12-31 17:17:51

xxMrPHDxx (727 views)
2017-12-31 17:15:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!