Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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 2016 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Posted 2003-11-02 12: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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #1 - Posted 2003-11-02 13: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 16: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 18: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 17:18:12 »

Kev,

Can you please post a test case for this problem?

Yuri

Yuri Vl. Gushchin
JProof Group
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #5 - Posted 2003-11-04 18: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 18: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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (68 views)
2013-05-17 21:29:12

alaslipknot (76 views)
2013-05-16 21:24:48

gouessej (109 views)
2013-05-16 00:53:38

gouessej (104 views)
2013-05-16 00:17:58

theagentd (115 views)
2013-05-15 15:01:13

theagentd (104 views)
2013-05-15 15:00:54

StreetDoggy (149 views)
2013-05-14 15:56:26

kutucuk (172 views)
2013-05-12 17:10:36

kutucuk (170 views)
2013-05-12 15:36:09

UnluckyDevil (179 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.077 seconds with 21 queries.