Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (523)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (591)
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  
  How large can a xith universe get ?  (Read 3102 times)
0 Members and 1 Guest are viewing this topic.
Offline winkman

Senior Newbie




Java games !


« Posted 2003-08-25 13:23:29 »

Hello
this is maybe a bit clueless question but nonetheless:

How large can a xith universe get in comparison to java3d ?
Based on the locale concept java3d worlds could get really large in theory Smiley
Is there a similar concept in xith3d and how well does/will/should it work Huh

regards
Martin
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #1 - Posted 2003-08-25 21:44:11 »

A good question I think, and one I have woundered myself.

The main difference I can see is that Xith3d soley uses floats, not doubles like Java3D.  Does this mean that the size of the universe is potentially smaller in Xith3d?

Of course one way around the limitation if it does exist it is to build your own abstraction (or scenegraph) that sits above Xith3d - and use Xith3d more for the renderering.

Cheers,

Will.

Offline DavidYazel

Junior Devvie




Java games rock!


« Reply #2 - Posted 2003-08-26 09:36:03 »

Xith3d uses only floats because the graphics cards only support floats.  Another thing to realize is that in modern graphics cards the difference between your front clip and your back clip can only be around 3000 with a 16 bit zbuffer.  Usually what people do is they scale their universe so that 1 virtual meter = x game meters.

David Yazel
Xith3D Project Founder
http://xith3d.dev.java.net

It may look complicated, but in the end it is just a bunch of triangles
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #3 - Posted 2003-08-26 10:24:35 »

Quote
 Another thing to realize is that in modern graphics cards the difference between your front clip and your back clip can only be around 3000 with a 16 bit zbuffer.  Usually what people do is they scale their universe so that 1 virtual meter = x game meters.


The difference between near and far can be whatever you want, its their relative values that matter. If you set your near value to 0.001 you won't be able to use anywhere near as far as 3000 and still get good accuracy.

Theres some sort of projection matrix trickery you can do to get an infinate far clip plane, and since the zbuffer is logarithmic you apparently don't loose much accuracy. nVidia have it detailed in a paper on their site if you're interested..

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline winkman

Senior Newbie




Java games !


« Reply #4 - Posted 2003-08-26 10:53:40 »

Hm did i get this locale thing in java3d right then ?

As far as i understand, they use 3  256 bit numbers to position a locale in the universe and  use that as a zero point for a locales locale coordinate system which  uses double's ?
Also, nearby locales are rendered if  in clipping distance.

The idea is  (i believe) to have a really big Scenegraph with locales defining points of interest (eg. solar systems, planets,  ?)  and be able to cull all  noneedtorender stuff (most of) easily.  

Does that make sense Huh


Martin

Offline zparticle

Senior Devvie




Thick As A Brick


« Reply #5 - Posted 2003-08-26 12:20:06 »

Locales in J3D where intended to allow the system to avoid rounding errors in EXTREEMLY large universes. There was a good explaination of this in an old book:

Henry Sowizral, Kevin Rushforth, and Michael Deering, The Java 3D API Specification, Addison-
Wesley, Reading, Mass., December 1997. ISBN 0-201-32576-4


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.

Gibbo3771 (7 views)
2014-11-24 19:59:16

trollwarrior1 (35 views)
2014-11-22 12:13:56

xFryIx (73 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (40 views)
2014-11-12 21:09:33

kovacsa (66 views)
2014-11-07 19:57:14

TehJavaDev (70 views)
2014-11-03 22:04:50

BurntPizza (68 views)
2014-11-03 18:54:52

moogie (83 views)
2014-11-03 06:22:04
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!