Platzangst im Universe

Status
Nicht offen für weitere Antworten.
G

Guest

Gast
Tag zusammen,

ich arbeite mich seit kurzem in Java3D ein und habe ein normales simple universe...

das scheint jedoch zu klein um alle meine objekte darzustellen
denn sobald ich die objekte etwas nach hinten verschiebe, dann verschwinden sie langsam.

Bin mir sicher dass es eine moeglichkeit gibt den raum zu vergroessern, o
der irgendwie collisionbounds zu erstellen, dass die objekte den raum nicht verlassen koennen.

Bin mir sicher ihr koennt mir helfen ;)

Gruss
Freddy
 

Illuvatar

Top Contributor
Nix verlässt den Raum, die werden nur nicht gezeichnet ;)

Java3D-Api: View hat gesagt.:
  • Front clip distance - specifies the distance away from the clip origin, specified by the front clip policy variable, in the direction of gaze where objects stop disappearing. Objects closer than the clip origin (eye or screen) plus the front clip distance are not drawn. Measurements are done in the space (physical or virtual) that is specified by the associated front clip policy parameter.
  • Back clip distance - specifies the distance away from the clip origin (specified by the back clip policy variable) in the direction of gaze where objects begin disappearing. Objects farther away from the clip origin (eye or screen) plus the back clip distance are not drawn. Measurements are done in the space (physical or virtual) that is specified by the associated back clip policy parameter. The View object's back clip distance is ignored if the scene graph contains an active Clip leaf node.

    There are several considerations to take into account when choosing values for the front and back clip distances.

    [list:996f2194a6]
  • The front clip distance must be greater than 0.0 in physical eye coordinates.
  • The front clipping plane must be in front of the back clipping plane, that is, the front clip distance must be less than the back clip distance in physical eye coordinates.
  • The front and back clip distances, in physical eye coordinates, must be less than the largest positive single-precision floating point value, Float.MAX_VALUE. In practice, since these physical eye coordinate distances are in meters, the values should be much less than that.
  • The ratio of the back distance divided by the front distance, in physical eye coordinates, affects Z-buffer precision. This ratio should be less than about 3000 to accommodate 16-bit Z-buffers. Values of 100 to less than 1000 will produce better results.

Violating any of the above rules will result in undefined behavior. In many cases, no picture will be drawn.[/list:u:996f2194a6]

Edit: Ich hab die Links vergessen ;)
http://ls7-www.cs.uni-dortmund.de/students/lectures/doc_mmi0405/j3d-html/javax/media/j3d/View.html
http://ls7-www.cs.uni-dortmund.de/students/lectures/doc_mmi0405/j3d-html/javax/media/j3d/View.html#setBackClipDistance(double)
 
Status
Nicht offen für weitere Antworten.

Ähnliche Java Themen

Neue Themen


Oben