• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tricky Java 3D questions  RSS feed

Grant Crofton
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Java3D for my final year project (evaluating it for game development - basically making a 1st person game demo), and i am having a couple of difficulties.
I notice that there are not many Java3D questions on here, so my first question would be 1. Does anyone know of any more active forums related to J3D? I've been on the 'official' sites (Sun, j3D.org, etc), but there doesn't seem to be a right lot out there.
Here are a couple more: 2. Using the KeyNavigator behaviour, how do i find out what key was pressed? The Enumeration you get with processStimulus() doesn't seem to include that information. If I make my own, how do i set it up? The WakeupOnKeypressed 9or whatever it is called) condition only seems to work with KEY_PRESSED etc, not VK_SPACE.
How do you tile textures? I've tried loading them with an ImageComponent2D and just with a Texture, and neither way seems to offer a way of tiling the image texture (it can be scaled).
3. Collision behaviours - when I set up a WakeupOnCollisionentry behaviour, how do i stop some nodes affecting it, or alternatively find out what node it was that hit it? I currently have some spheres that I shoot to destroy using this method. however, if the spheres are touching anything to begin with, the behaviour fires imidiately. I have tried to find what node hit the target object using the Enumeration in processStimulus(), but when i try to getActionNode(), I get a NullPointerException! I don't know why that would be, as there must be a node to cause the colision.
if anyone can shed a little light on any of these, that would be great. I haven't got my code with me, so i hope those function names were right.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!