Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (499)
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: Elevation data loader on: 2006-01-13 07:42:12
Did you work out this problem?I am encounter this problem...
2  Java Game APIs & Engines / Java 3D / Problem of import a dem file to java3d on: 2006-01-11 07:42:04
I want to import a dem file to java3d,but I don't know how to use the loader of j3d.org Repository.
Is there other loader can I use?Or other way to help me to figure out this problem.
thanks a lot.
3  Java Game APIs & Engines / Java 3D / WHO HAVE 《JAVA3D PROGRAMMING》'S SOURSE CODE? on: 2005-12-30 03:32:00
I can't download the sourse code from http://www.manning.com/selman,
Who can send me the code?
My mail is :oldmao_2001@163.com
thanks a lot~~
4  Java Game APIs & Engines / Java 3D / Re: Why this collision detection code don't work? on: 2005-12-05 09:54:17
I change the code like this:
public class collisionBehavior extends Behavior {
    private MyTransformGroup collisionObject;
    private WakeupOnCollisionEntry wEnter;
    private private WakeupOnElapsedFrames frame;
    private WakeupCriterion criterionArray[] = new WakeupCriterion[3];
    private WakeupCondition wakeupCondition = null; 
    public collisionBehavior(MyTransformGroup shape) {
        super();
        collisionObject = shape;
    }
    public void initialize() {
        wEnter = new WakeupOnCollisionEntry(collisionObject,WakeupOnCollisionEntry.USE_GEOMETRY);       
        frame = new WakeupOnElapsedFrames(0);
        criterionArray[0] = wEnter;
        criterionArray[1] = frame;
        wakeupCondition = new WakeupOr(criterionArray);      
        wakeupOn(wakeupCondition);
    }   
    public void processStimulus(Enumeration criteria) {
        WakeupCriterion wakeup;
        while (criteria.hasMoreElements()) {
             wakeup = (WakeupCriterion) criteria.nextElement();
             if (wakeup instanceof WakeupOnCollisionEntry) {
                   System.out.println("CollisionEntry..");
             } else if (wakeup instanceof WakeupOnElapsedFrames) {                   
                   System.out.println("WakeupOnElapsedFrames..");
             }
        }
        wakeupOn(wakeupCondition)
    }
}
but it dose not work...
Could u give me more hint? thank u...
5  Java Game APIs & Engines / Java 3D / Re: Why this collision detection code don't work? on: 2005-12-05 09:25:52
By the way ,could u tell me the different between WakeupOnCollisionEntry and WakeupOnCollisionMovement?
6  Java Game APIs & Engines / Java 3D / Re: Why this collision detection code don't work? on: 2005-12-05 07:01:11
Thank u Jeff,But I can't find WakeupOnFrame in java3d api,I only find WakeupOnElapsedFrames.
7  Java Game APIs & Engines / Java 3D / Why this collision detection code don't work? on: 2005-12-04 03:23:37
i define a viewplatform and add it to a transformGroup,and I and the tansformGroup to a branchgroup.I create a collisionBehavior class to detect the collision between view and the 3ds model,I import a 3ds model and add 3ds model to another branchgroup
the code of collisionBehavior is below:
public class collisionBehavior extends Behavior {
    private MyTransformGroup collisionObject;
    private WakeupOnCollisionEntry wEnter;
    private WakeupOnCollisionExit wExit;   
    public collisionBehavior(MyTransformGroup shape,ViewPlatform viewPlat) {
        // super();
        collisionObject = shape;
    }
    public void initialize() {
        wEnter = new WakeupOnCollisionEntry(collisionObject,WakeupOnCollisionEntry.USE_GEOMETRY);
        wExit = new WakeupOnCollisionExit(collisionObject,WakeupOnCollisionEntry.USE_GEOMETRY);
        wakeupOn(wEnter);
    }   
    public void processStimulus(Enumeration criteria) {
        WakeupCriterion wakeup;
        while (criteria.hasMoreElements()) {
   wakeup = (WakeupCriterion) criteria.nextElement();
   if (wakeup instanceof WakeupOnCollisionEntry) {
                         System.out.println("CollisionEntry..");
           wakeupOn(wExit);/* change the wakeup condition */
   } else if (wakeup instanceof WakeupOnCollisionExit) {
           collisionObject.setCollision(false);
           System.out.println("CollisionExit..");
           wakeupOn(wEnter);/* change the wakeup condition */
   }
        }
    }
}
the question is why i move the view and cross the wall,but nothing happen...
8  Java Game APIs & Engines / Java 3D / Re: About java3d collision detection on: 2005-11-30 01:56:38
I know the collision detection by picking,and i know the principle by the book "java3d programing",i want to know i use keyboardbehavior to move my view,whether the principle is the same?
9  Java Game APIs & Engines / Java 3D / Re: About java3d collision detection on: 2005-11-29 06:47:58
I'm not a Java3D expert, but I don't think it has got that kind of collision detection and response buildt in. You might have to code it yourself.
I am a freshman in java3d,and i am not good at collision arithmetic  such as bsp...So I want to know how can I complete the function by java3d build in class.
10  Java Game APIs & Engines / Java 3D / Re: About java3d collision detection on: 2005-11-28 14:56:58
You can (as you move) test distance between camera position and  the centre of imaginary sphere around your object. Not the best solution for non - sphere - shaped objects, but as first implementation of collision will suffice....
EDIT: if your next move is about to shorten distance, don't allow it! else - go ...
But the model is a building,the cann't regard as a imaginary sphere so...
By the way ,how can i get the camera position.
11  Java Game APIs & Engines / Java 3D / About java3d collision detection on: 2005-11-28 10:02:25
I import a 3ds model.
I want to use keyboard to view the model by first person view.
How can I use the collision detectiont to prevent I go though the wall of model
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (28 views)
2014-04-15 18:08:23

BurntPizza (25 views)
2014-04-15 03:46:01

UprightPath (40 views)
2014-04-14 17:39:50

UprightPath (22 views)
2014-04-14 17:35:47

Porlus (38 views)
2014-04-14 15:48:38

tom_mai78101 (62 views)
2014-04-10 04:04:31

BurntPizza (121 views)
2014-04-08 23:06:04

tom_mai78101 (221 views)
2014-04-05 13:34:39

trollwarrior1 (188 views)
2014-04-04 12:06:45

CJLetsGame (195 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org 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‑gaming.org
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!