Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (483)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (550)
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  
  Culling  (Read 2348 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass

JGO Kernel


Medals: 153
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Posted 2003-11-02 11:29:30 »

Is frustrum culling actually implemented yet? I'm not seeing the results I'd expect based on things not in view having negative effect on the frame rate.

Also, I've noted the spatial package, is there a way for me to define my own culling method? I can't seem to find a way to plug in culling planes.

Kev

Offline kevglass

JGO Kernel


Medals: 153
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2003-11-02 12:23:11 »

Further to this, I've just implemented a quick routine to cull parts of my "level" that arn't visible using a Switch node. This gives me the effects I'd expect from spatial culling (i.e. when a complex scene isn't on screen the fps is good, more complex the fps goes down)

Kev

Offline abies

Senior Member





« Reply #2 - Posted 2003-11-02 15:02:19 »

Please look at com.xith3d.scenegraph.View.renderNode - there is a commented out piece of code which skips nodes of out bounds. Maybe uncommenting it would help ? For some reasons it was changed this way between revision 1.10 and 1.11 of View class.

If you will hit any problem without bounds computation/classification, please try to apply https://xith3d.dev.java.net/issues/show_bug.cgi?id=28 - it fixes some errors in Sphere class (which is a base of BoundingSphere)

Artur Biesiadowski
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DavidYazel

Junior Member




Java games rock!


« Reply #3 - Posted 2003-11-03 17:17:31 »

Shapes are certainly culled.  What is commented out currently is culling entire hierarchies.  It wasn't acting exactly right and in some cases was culling things it shouldn't.  It could be due to the sphere bug, but probably not as that was sphere versus sphere problems and not frustum versus sphere.

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
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #4 - Posted 2003-11-04 16:18:12 »

Kev,

Can you please post a test case for this problem?

Yuri

Yuri Vl. Gushchin
JProof Group
Offline kevglass

JGO Kernel


Medals: 153
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #5 - Posted 2003-11-04 17:07:05 »

I can knock something together if you like, but what David says above explains it. I was hoping to cull large portions of my scene in one go, i.e. a complete branch group. However, if its having to decide on a per shape basis what to cull that would explain the results I'm seeing.

Do you still want a test case?

Kev

Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #6 - Posted 2003-11-04 17:34:34 »

Not really for a moment, but this will help to test things that are commented out right now:

Quote
What is commented out currently is culling entire hierarchies.  It wasn't acting exactly right and in some cases was culling things it shouldn't.


And Sphere bug fix committed to CVS now.

Summarizing, would be nice to have but not top priority right now.

Yuri

Yuri Vl. Gushchin
JProof Group
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.

CopyableCougar4 (14 views)
2014-08-22 19:31:30

atombrot (28 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38
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

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

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