Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Tricky Java 3D questions

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
Thanks
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic