Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (547)
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  
  Near and far planes  (Read 1241 times)
0 Members and 1 Guest are viewing this topic.
Offline Amos Wenger

Senior Member




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


« Posted 2006-06-27 16:39:10 »

Qudus, I recently switched from Scene to ExtXith3DEnvironment and the display was very strange, something like that (see first attached screenshot).

This was due to your setting of the near plane which was of 0.00001f.. It seems to be a too small value. When set to 0.0001f it's perfect (see second attached screenshot).

I committed this change to CVS.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline Amos Wenger

Senior Member




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


« Reply #1 - Posted 2006-06-27 17:01:38 »

Hmm in fact it was named front clip and back clip distances.

I now set it to 1f because of other problems : that's the default value when you create a RenderPass and seems fine after some testing.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #2 - Posted 2006-06-27 17:11:20 »

Qudus, I recently switched from Scene to ExtXith3DEnvironment and the display was very strange, something like that (see first attached screenshot).

This was due to your setting of the near plane which was of 0.00001f.. It seems to be a too small value. When set to 0.0001f it's perfect (see second attached screenshot).

I committed this change to CVS.

Great! I've had this issue, too in some cases. For a strange reason not in all cases. And I couldn't find the solution. Thank you very much.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #3 - Posted 2006-06-27 17:12:40 »

Hmm in fact it was named front clip and back clip distances.

I now set it to 1f because of other problems : that's the default value when you create a RenderPass and seems fine after some testing.

Then we should set the default z-translation of the HUD to something like 1.5f.
Online kevglass

JGO Kernel


Medals: 152
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #4 - Posted 2006-06-27 17:20:29 »

I think you're seeing the effects of depth buffer resolution - which is defined by the ratio between front and back clip distances. If you've only got 16 bit depth buffer and it has to represent a big range of values (i.e. ratio between back and front clip planes) then the accuracy goes down - sometimes giving artefacts in the scene.

Theres some stuff on the OpenGL FAQ about it:

http://www.opengl.org/resources/faq/technical/depthbuffer.htm

and I found this useful:

http://www.starfireresearch.com/services/java3d/supplementalDocumentation.html

Kev

Offline Amos Wenger

Senior Member




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


« Reply #5 - Posted 2006-06-28 09:26:01 »

I got it. OpenGL doc is very comprehensive.

"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.

atombrot (23 views)
2014-08-19 00:29:53

Tekkerue (22 views)
2014-08-15 21:45:27

Tekkerue (21 views)
2014-08-15 21:22:17

Tekkerue (12 views)
2014-08-15 21:20:21

Tekkerue (19 views)
2014-08-15 21:12:11

Rayexar (57 views)
2014-08-10 17:49:23

BurntPizza (37 views)
2014-08-09 12:09:32

BurntPizza (29 views)
2014-08-07 17:01:56

Norakomi (36 views)
2014-08-06 10:49:38

BurntPizza (66 views)
2014-08-02 17:57:17
List of Learning Resources
by Longor1996
2014-08-16 01:40:00

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

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

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

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

List of Learning Resources
by SilverTiger
2014-07-31 07:26:06

List of Learning Resources
by SilverTiger
2014-07-31 02:54:12

HotSpot Options
by dleskov
2014-07-07 16:59:08
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!