Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (579)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Xith view TransformGroup Position  (Read 861 times)
0 Members and 1 Guest are viewing this topic.
Offline rmdire

Junior Member





« Posted 2006-06-18 00:01:09 »

Hi,

when terrain following with view - using JCD's FPS camera
when I get the view.getTransform().get( Vector3f ) - the z/x position of the view appears to be 200-300 units ahead or off ,  of  the actual camera.
or in other words - when terrain following - The camera dips and rises as if it were following another transformGroup - thus giving a false Y height

is this correct?
is there a way of getting the actual camera's Transform position vector3f?
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #1 - Posted 2006-06-19 16:25:23 »

Hi,

when terrain following with view - using JCD's FPS camera
when I get the view.getTransform().get( Vector3f ) - the z/x position of the view appears to be 200-300 units ahead or off ,  of  the actual camera.
or in other words - when terrain following - The camera dips and rises as if it were following another transformGroup - thus giving a false Y height

is this correct?
is there a way of getting the actual camera's Transform position vector3f?
Ahm I'm afraid the Transform3D.get(Vector3f) function doesn't return the translation part of the transform.. although I'm not sure. Try to keep yourself a Vector3f eye, modify it and update it via view.getTransform().lookAt()

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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 (36 views)
2014-04-15 13:08:23

BurntPizza (32 views)
2014-04-14 22:46:01

UprightPath (47 views)
2014-04-14 12:39:50

UprightPath (30 views)
2014-04-14 12:35:47

Porlus (47 views)
2014-04-14 10:48:38

tom_mai78101 (68 views)
2014-04-09 23:04:31

BurntPizza (128 views)
2014-04-08 18:06:04

tom_mai78101 (228 views)
2014-04-05 08:34:39

trollwarrior1 (193 views)
2014-04-04 07:06:45

CJLetsGame (200 views)
2014-03-31 21:16:10
List of Learning Resources
by SHC
2014-04-17 22:17:39

List of Learning Resources
by Longarmx
2014-04-07 22:14:44

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

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

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

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

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

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 10: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!