DNESS / cocos2d-iphone

Automatically exported from code.google.com/p/cocos2d-iphone
1 stars 0 forks source link

Nodes should be able to render in subpixel or not based on a runtime variable. #446

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In my current pallication I use cocos to move sprite along paths really slowly. 
and the default 
behavior of CocosNode::transform which cast every floats into int before 
sending them to GL is 
problematic for me, since it makes all sub pixels disappear, and makes my 
sprite jumps/jitters.

Is this a wanted behavior? for my concern, I changed the transform function and 
basically removed 
all the casts but may be I'm not the only one to have this issue and we should 
at least have an 
option (global? local?) to change the default behavior.

Original issue reported on code.google.com by aymeric....@gmail.com on 16 Jul 2009 at 6:57

GoogleCodeExporter commented 9 years ago
yes, it's already fixed in v0.8-rc.
I think it should be configurable per node.

resolution: bug remains open.
instead of bug -> enhancement.

new summary:
  nodes should be able to render in subpixel or not based on a runtime variable.

Original comment by ricardoq...@gmail.com on 16 Jul 2009 at 7:01

GoogleCodeExporter commented 9 years ago
Gr8 news thanx !
What a fast reply man !

Original comment by aymeric....@gmail.com on 16 Jul 2009 at 7:10

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 19 Jul 2009 at 11:37

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 27 Aug 2009 at 1:16

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 8 Feb 2010 at 4:21

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 8 Feb 2010 at 4:24

GoogleCodeExporter commented 9 years ago
Is this issue yet solved? 

the macro should be enhanced with an class attribute BOOL renderInSubPixel. In 
the
transform function split the translation process into "!RenderInSubPixel" and 
the
currently transform method. in "!RenderInSubPixel" remove the 
"RENDER_INSUBPIXEL()"
of every translate call. 
That should do it. 
I added the new CCNode code, so if I am completly wrong please tell me why :-)

Original comment by hamm.h...@googlemail.com on 19 Feb 2010 at 12:27

Attachments:

GoogleCodeExporter commented 9 years ago
and CCNode.m

Original comment by hamm.h...@googlemail.com on 19 Feb 2010 at 12:28

Attachments:

GoogleCodeExporter commented 9 years ago
(in the code above seek in implementation for "RENDER_IN_SUBPIXEL" to jump to 
the
place I changed the code)

Original comment by hamm.h...@googlemail.com on 19 Feb 2010 at 12:30

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 19 Mar 2010 at 10:48

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 24 Apr 2010 at 2:12

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 26 May 2010 at 6:20

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 14 Jul 2010 at 9:48

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 17 Mar 2011 at 7:02

GoogleCodeExporter commented 9 years ago
rescheduled for v1.1

Original comment by ricardoq...@gmail.com on 13 Jul 2011 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by marcotil...@gmail.com on 6 Sep 2011 at 5:41

GoogleCodeExporter commented 9 years ago

Original comment by marcotil...@gmail.com on 6 Sep 2012 at 1:37