Issue 162 in los-cocos: black window when resize after certain transitions

3 views
Skip to first unread message

codesite...@google.com

unread,
Nov 13, 2010, 4:27:13 PM11/13/10
to cocos-...@googlegroups.com
Status: Accepted
Owner: ccanepacc
Labels: Type-Defect Priority-Medium Component-Transitions

New issue 162 by ccanepacc: black window when resize after certain
transitions
http://code.google.com/p/los-cocos/issues/detail?id=162

at first look seems related to grid transitions, but that is not sure.

bugdemo (dirty, a fast hack of b0 test in issue 153) at
http://pastebin.com/KJJ7wtxK

Initial report http://thread.gmane.org/gmane.comp.python.cocos2d.user/1233

codesite...@google.com

unread,
Jul 4, 2012, 11:21:22 AM7/4/12
to cocos-...@googlegroups.com

Comment #1 on issue 162 by ccan...@gmail.com: black window when resize
Attached bugdemo test_sprite_issue_162.py, punt in the test directory so it
can grab the needed resources.

When using a transition with grid, after the transition ends a resize will
show a black window.

The defect only shows when director.init is called with do_not_scale=True

The problem is in the interaction director.set_projection with
grid.GridBase._set_active(bool):

+ when the grid goes inactive, it attempts to restore the projection and
modelview matrices calling director.set_projection

+ but the correct matrices to use depends on do_not_scale

+ set_projection don't cares about the do_not_scale value, it acts
always as if do_not_scale == False

The handling of director.on_resize suggest to make director.set_projection
a placeholder, and when setting director.on_resize at the director.init
method assing the correct set projection variant.

Thats what I will try first.


Attachments:
test_sprite_issue_162.py 2.1 KB

codesite...@google.com

unread,
Jul 4, 2012, 5:32:22 PM7/4/12
to cocos-...@googlegroups.com
Updates:
Status: TrunkFixed

Comment #2 on issue 162 by ccan...@gmail.com: black window when resize
tried, it works. Fixed in trunk r1209

autotest snapcompare tells the scripts in test don't change rendering.

Note: this also solves a problem commented on list: after a grid
transition, text and sprites with sharp borders can be slightly blurred



codesite...@google.com

unread,
Aug 13, 2012, 8:51:44 PM8/13/12
to cocos-...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 162 by ccan...@gmail.com: black window when resize
fixed in cocos 0.5.5, closing

Reply all
Reply to author
Forward
0 new messages