Results 1 to 7 of 7
  1. #1
    JeffThomas is offline Member
    Join Date
    Dec 2011
    Posts
    31
    Rep Power
    0

    Question How to Obtain x,y,z Coordinates from a 3-D space?

    How would I go about creating a method of obtaining the (x,y,z) coordinates from a 3-D environment? I'm developing a 3-D game, and was wondering about a couple of things.

    I was gathering normal x,y pixel locations while moving around in the game in FPV and encountered weird results.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: How to Obtain x,y,z Coordinates from a 3-D space?

    x,y,z coordinates of what?

  3. #3
    JeffThomas is offline Member
    Join Date
    Dec 2011
    Posts
    31
    Rep Power
    0

    Default Re: How to Obtain x,y,z Coordinates from a 3-D space?

    x,y,z coordinates of pixels (voxels?) in the 3d environment.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: How to Obtain x,y,z Coordinates from a 3-D space?

    Since the screen is only 2D, to get 3D coordinates I'd think you would have to build a complete 3D representation of what you want to be the 3d environment. Past of that should be a way to get a x,y,z value for a location.

  5. #5
    JeffThomas is offline Member
    Join Date
    Dec 2011
    Posts
    31
    Rep Power
    0

    Default Re: How to Obtain x,y,z Coordinates from a 3-D space?

    Well if it isn't norm, my favorite moderator. :)

    I've got the 3-D environment created, camera actors,velocities, and angles made out but I didn't use any java for that. I was looking at the java 3D library API though,
    Java SE Desktop Technologies - Java 3D API

  6. #6
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: How to Obtain x,y,z Coordinates from a 3-D space?

    A 2D coordinate can have virtually an infinite number of 3D coordinates. From recollection, this is usually done through picking in which you pick an object in the 3D space based upon the 2D coordinate - since translating the objects from 3D to 2D is done with the drawing, the reverse can be performed to get the picked object. Many 3D librarys have some type of picking support.

  7. #7
    JeffThomas is offline Member
    Join Date
    Dec 2011
    Posts
    31
    Rep Power
    0

    Default Re: How to Obtain x,y,z Coordinates from a 3-D space?

    Thanks.
    I think I'll just have to get the right transformation matrix for the model.

Similar Threads

  1. Space Warrior - Multiplayer Space Shooter
    By stes in forum Reviews / Advertising
    Replies: 2
    Last Post: 01-11-2012, 08:19 AM
  2. how to obtain straightline pixels
    By base2coder in forum CLDC and MIDP
    Replies: 1
    Last Post: 09-10-2009, 01:25 AM
  3. How to obtain the name of the JMenuItem?
    By Azuxard in forum AWT / Swing
    Replies: 1
    Last Post: 03-23-2009, 03:33 AM
  4. Can we Obtain Java Source Code?
    By tornado in forum New To Java
    Replies: 7
    Last Post: 12-10-2008, 07:23 PM
  5. How to obtain Paragraph Layout
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-25-2008, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •