Issues with your account? Bug us in the Discord!

JAVA-Java 3D

Anyone else looking at the Java 3D API? Seems to be a good OO representation of a graphical engine. I'd appreciate comparing notes with anyone else out there.

One of the interesting approaches is the use of the ViewPlatform object to change the percieved presentation of the environment. All 'user' translations are accomplished by modifying the TransformGroup for this single object, and in fact, there is a helper class that provides a keyboard mapping for 6DOF translation.

I'm trying to understand how you would map an orthogonal control system to a cylindrical system (can you say B5 interior?).

Any hints?

------------------
bobo
<*>
B5:ITF

Comments

  • BigglesBiggles <font color=#AAFFAA>The Man Without a Face</font>
    The best way would probably be to treat the cylinder like a plane for the player's movements. Then, once you have their position on the plane you roll the plane up and map that position into a position on the cylinder. This position will also allow you to calculate the angle from 0 degrees that they will be pointing (ie to make their head point towards teh center of the cylinder).

    ------------------
    [b][url="http://www.minbari.co.uk/log12.2263/"]Required reading[/url][/b]
    Never eat anything bigger than your own head.
    The Balance provides. The Balance protects.

    "Nonono...Is not [i]Great[/i] Machine. Is...[i]Not[/i]-so-Great Machine. It make good snow cone though." - Zathras
  • bobobobo (A monkey)
    Thanks Biggles. I have "The Java 3D API Specification, Second Edition" now, so I'm doing some spare time reading (as much spare time as you can have with a 4-yr old [img]http://216.15.145.59/mainforums/smile.gif[/img] ).

    I'll look at the internals of the provided KeyNavigatorBehavior class to see how they manage in an orthoganal system, then find the appropriate transformation matrix.

    I'm afraid I may have to brush off some of my linear algebra text books from college before this is said and done. [img]http://216.15.145.59/mainforums/frown.gif[/img] Its amazing how little you retain from university if you don't use it every day. (Probably not what you want to hear, having just completed finals [img]http://216.15.145.59/mainforums/biggrin.gif[/img] !)

    ------------------
    bobo
    <*>
    B5:ITF
  • BigglesBiggles <font color=#AAFFAA>The Man Without a Face</font>
    I've found myself having to go back to some of my old notes. Fortunately we have the whole web at our disposal as well now.

    ------------------
    [b][url="http://www.minbari.co.uk/log12.2263/"]Required reading[/url][/b]
    Never eat anything bigger than your own head.
    The Balance provides. The Balance protects.

    "Nonono...Is not [i]Great[/i] Machine. Is...[i]Not[/i]-so-Great Machine. It make good snow cone though." - Zathras
Sign In or Register to comment.