Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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  
  Is anyone seeing scene flashing at all  (Read 1906 times)
0 Members and 1 Guest are viewing this topic.
Offline hawkwind

Junior Member




Java games rock!


« Posted 2006-11-19 06:04:58 »

This is a redo of one of the regressions I posted previously.  I have determined whenever I do a pick, either old school or as described in th XIN, I see what appears to be a single frame flash ( on / off) of all of the non-pickable objects in the scene. 

Basically...

1 - scene renders correctly
2 - make any kind of pick call and non-pickable object sdisappear, pickable ob=jects remain
3 - once pick is complete all objects render


Walking the code a bit I see where in Canvas3D there are some single scene render calls made when a pick is called.  I wonder if something is requiring all of the objects to be picked to be render in this mode.  I am unfamiliar with this part of Xith.  Any thoughts appreciated.


Note : In older versions of Xith this does no happen. Cry

Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #1 - Posted 2006-11-19 14:05:22 »

This is a redo of one of the regressions I posted previously.

And just as I said in the other thread, an example would help a lot Grin.

I have determined whenever I do a pick, either old school or as described in th XIN, I see what appears to be a single frame flash ( on / off) of all of the non-pickable objects in the scene. 

Basically...

1 - scene renders correctly
2 - make any kind of pick call and non-pickable object sdisappear, pickable ob=jects remain
3 - once pick is complete all objects render


Walking the code a bit I see where in Canvas3D there are some single scene render calls made when a pick is called.  I wonder if something is requiring all of the objects to be picked to be render in this mode.  I am unfamiliar with this part of Xith.  Any thoughts appreciated.


Note : In older versions of Xith this does no happen. Cry

I reworked the whole picking code in Canvas3D, CanvasPeer(Impl), etc. This what was called "old-school" picking and works with "GLSelect". It was just way too slow and PickingLibrary was much more comfortable and faster. Now GLSelect picking should be faster and at least as comfortable as PickingLibrary picking and should be the preferred way. Well long story short sense, it can be, that this error is new in current xith version. The render call is necessary, because the actual picking is done by OpenGL. It is not a real rendering, but done in a similar way.

Please, send me an example, where the error occurrs. I haven't seen it so far.

Marvin
Offline hawkwind

Junior Member




Java games rock!


« Reply #2 - Posted 2006-11-19 17:12:58 »

Try this

modify the SphereMotionLightingTest as follows....

1- in createSceneGraph after this line...

   l2Trans.addChild(new Shape3D(TestUtils.createSphere(0.05f, 10), appL2));

 add

       l2Trans.setPickable(false);


in main()  add this and create the appropriate global vars

        myView=env.getView();
        myCanvas=canvas;

   

in the loopIteration call add this as the last line

//    PickRenderResult[] results = myView.pick(myCanvas, 0,0, 3, 3);

When commented the green sphere is displayed, uncomment and, for me at least, it disappears.

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-11-19 17:28:38 »

Try this

modify the SphereMotionLightingTest as follows....

1- in createSceneGraph after this line...

   l2Trans.addChild(new Shape3D(TestUtils.createSphere(0.05f, 10), appL2));

 add

       l2Trans.setPickable(false);


in main()  add this and create the appropriate global vars

        myView=env.getView();
        myCanvas=canvas;

   

in the loopIteration call add this as the last line

//    PickRenderResult[] results = myView.pick(myCanvas, 0,0, 3, 3);

When commented the green sphere is displayed, uncomment and, for me at least, it disappears.

OK, thanks. I'll check it.
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #4 - Posted 2006-11-20 00:14:10 »

The problem is fixed. but ...
The problem didn't appear in PickingLibrary picking. If you don't face those problems described in the other thread, use GLSelect picking.

view.pick() should never be used. It is deprecated. (BTW. It is dispatched to canvas.pickAll()).
canvas.pick*() uses GLSelect picking, PickingLibrary.pick*() doesn't. Sheduled picking of ExtXith3dEnvironment.pick*() uses PickingLibrary picking.

These are the three available ways to do picking. Chose the one of your liking.

Marvin
Offline hawkwind

Junior Member




Java games rock!


« Reply #5 - Posted 2006-11-20 01:13:26 »

will try it out... Grin
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.

TehJavaDev (16 views)
2014-08-28 18:26:30

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

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

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

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

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

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

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

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

BurntPizza (35 views)
2014-08-08 02:01:56
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!