RE: [flexcoders] Flex & 3d Tweening and best practice/results for Text
Ah, okay. The yes: resetting the matrix seems to be the way to workaround this problem (which must be what we’re doing internally, as of Flex 4). Thanks, Chet. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thomas parquier Sent: Saturday, August 08, 2009 6:31 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex & 3d Tweening and best practice/results for Text Chet, The blurry effect doesnt occur any more with sdk4. The component I wrote uses sdk3.3, which leaves blurry the buttons from the example code you sent. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr<mailto:thomas.parqu...@web-attitude.fr> softphone : sip:webattit...@ekiga.net<mailto:sip%3awebattit...@ekiga.net> téléphone portable : +33601 822 056 2009/8/8 Chet Haase mailto:cha...@adobe.com>> That’s not what I’m seeing: in the code below, the rotator effect rotates the button around the Y axis, ending at rotationY==0, at which point the text in the button is no longer blurry: http://www.adobe.com/2006/mxml"; layout="absolute"> Are you doing anything with the 3D properties besides setting rotationY? Post all of the code (if you can boil it down to a simple case) Chet. From: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>] On Behalf Of thomas parquier Sent: Friday, August 07, 2009 3:40 PM To: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com> Subject: Re: [flexcoders] Flex & 3d Tweening and best practice/results for Text Chet, Yet in a mxml component I had to do the following : thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr<mailto:thomas.parqu...@web-attitude.fr> softphone : sip:webattit...@ekiga.net<mailto:sip%3awebattit...@ekiga.net> téléphone portable : +33601 822 056 2009/8/7 Chet Haase mailto:cha...@adobe.com>> You don’t necessarily have to reset the 2d matrix – you just have to make sure that all of your 3d properties are set back to the values they would have if the object were again in 2d. In the original example, if the only thing you did was to change the z location, and then you reset it to 0, then the text should not be blurry any longer (we recognize that the object no longer needs a 3D transform and just do the right 2D thing instead). I suspect that you are setting more 3D properties than simply the z property (like rotationX, rotationY, etc.), so even though you’re zeroing-out the ‘z’ property, that’s not enough to take the object out of 3D and put it on the 2D plane again. Figure out the other 3D properties that you’re tweaking (just take a look at the matrix when it’s back in the state where you think it should be 2D) and reset the ones that are still in 3D. Chet. From: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>] On Behalf Of thomas parquier Sent: Friday, August 07, 2009 11:21 AM To: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com> Subject: Re: [flexcoders] Flex & 3d Tweening and best practice/results for Text Hi, When objects are back to 2d, you have to reset 2d matrix to get rid of blurry effect. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr<mailto:thomas.parqu...@web-attitude.fr> softphone : sip:webattit...@ekiga.net<mailto:sip%3awebattit...@ekiga.net> téléphone portable : +33601 822 056 2009/8/5 djhatrick mailto:djhatr...@yahoo.com>> I have a displayObject, a panel, doing 3d stuff with the panel... However after I tween my object to z=0, the text looks blurry after the animation has stopped. Is there a way to make the text look sharp: fontAntiAliasType="advanced" I've tried but that gives not-passable results. Thanks, Patrick
Re: [flexcoders] Flex & 3d Tweening and best practice/results for Text
Chet, The blurry effect doesnt occur any more with sdk4. The component I wrote uses sdk3.3, which leaves blurry the buttons from the example code you sent. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net téléphone portable : +33601 822 056 2009/8/8 Chet Haase > > > > > That’s not what I’m seeing: in the code below, the rotator effect rotates > the button around the Y axis, ending at rotationY==0, at which point the > text in the button is no longer blurry: > > > > > > http://www.adobe.com/2006/mxml"; > layout="absolute"> > > toValue="0" target="{button1}"/> > > > > click="rotator.play()"/> > > > > > > Are you doing anything with the 3D properties besides setting rotationY? > Post all of the code (if you can boil it down to a simple case) > > > > Chet. > > > > > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *thomas parquier > *Sent:* Friday, August 07, 2009 3:40 PM > > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Flex & 3d Tweening and best practice/results > for Text > > > > > > Chet, > > Yet in a mxml component I had to do the following : > > effectEnd="twoSidedDO3D.transform.matrix=new Matrix(1,0,0,1,width/2,0);" /> > > > thomas > --- > http://www.web-attitude.fr/ > msn : thomas.parqu...@web-attitude.fr > softphone : sip:webattit...@ekiga.net > téléphone portable : +33601 822 056 > > 2009/8/7 Chet Haase > > > > > > You don’t necessarily have to reset the 2d matrix – you just have to make > sure that all of your 3d properties are set back to the values they would > have if the object were again in 2d. > > > > In the original example, if the only thing you did was to change the z > location, and then you reset it to 0, then the text should not be blurry any > longer (we recognize that the object no longer needs a 3D transform and just > do the right 2D thing instead). I suspect that you are setting more 3D > properties than simply the z property (like rotationX, rotationY, etc.), so > even though you’re zeroing-out the ‘z’ property, that’s not enough to take > the object out of 3D and put it on the 2D plane again. > > > > Figure out the other 3D properties that you’re tweaking (just take a look > at the matrix when it’s back in the state where you think it should be 2D) > and reset the ones that are still in 3D. > > > > Chet. > > > > > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *thomas parquier > *Sent:* Friday, August 07, 2009 11:21 AM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Flex & 3d Tweening and best practice/results > for Text > > > > > > Hi, > > When objects are back to 2d, you have to reset 2d matrix to get rid of > blurry effect. > > thomas > --- > http://www.web-attitude.fr/ > msn : thomas.parqu...@web-attitude.fr > softphone : sip:webattit...@ekiga.net > téléphone portable : +33601 822 056 > > 2009/8/5 djhatrick > > > > I have a displayObject, a panel, doing 3d stuff with the panel... However > after I tween my object to z=0, the text looks blurry after the animation > has stopped. > > Is there a way to make the text look sharp: > > fontAntiAliasType="advanced" > > I've tried but that gives not-passable results. > > Thanks, > Patrick > > > > > > >
RE: [flexcoders] Flex & 3d Tweening and best practice/results for Text
That’s not what I’m seeing: in the code below, the rotator effect rotates the button around the Y axis, ending at rotationY==0, at which point the text in the button is no longer blurry: http://www.adobe.com/2006/mxml"; layout="absolute"> Are you doing anything with the 3D properties besides setting rotationY? Post all of the code (if you can boil it down to a simple case) Chet. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thomas parquier Sent: Friday, August 07, 2009 3:40 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex & 3d Tweening and best practice/results for Text Chet, Yet in a mxml component I had to do the following : thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr<mailto:thomas.parqu...@web-attitude.fr> softphone : sip:webattit...@ekiga.net<mailto:sip%3awebattit...@ekiga.net> téléphone portable : +33601 822 056 2009/8/7 Chet Haase mailto:cha...@adobe.com>> You don’t necessarily have to reset the 2d matrix – you just have to make sure that all of your 3d properties are set back to the values they would have if the object were again in 2d. In the original example, if the only thing you did was to change the z location, and then you reset it to 0, then the text should not be blurry any longer (we recognize that the object no longer needs a 3D transform and just do the right 2D thing instead). I suspect that you are setting more 3D properties than simply the z property (like rotationX, rotationY, etc.), so even though you’re zeroing-out the ‘z’ property, that’s not enough to take the object out of 3D and put it on the 2D plane again. Figure out the other 3D properties that you’re tweaking (just take a look at the matrix when it’s back in the state where you think it should be 2D) and reset the ones that are still in 3D. Chet. From: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>] On Behalf Of thomas parquier Sent: Friday, August 07, 2009 11:21 AM To: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com> Subject: Re: [flexcoders] Flex & 3d Tweening and best practice/results for Text Hi, When objects are back to 2d, you have to reset 2d matrix to get rid of blurry effect. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr<mailto:thomas.parqu...@web-attitude.fr> softphone : sip:webattit...@ekiga.net<mailto:sip%3awebattit...@ekiga.net> téléphone portable : +33601 822 056 2009/8/5 djhatrick mailto:djhatr...@yahoo.com>> I have a displayObject, a panel, doing 3d stuff with the panel... However after I tween my object to z=0, the text looks blurry after the animation has stopped. Is there a way to make the text look sharp: fontAntiAliasType="advanced" I've tried but that gives not-passable results. Thanks, Patrick
Re: [flexcoders] Flex & 3d Tweening and best practice/results for Text
Chet, Yet in a mxml component I had to do the following : > effectEnd="twoSidedDO3D.transform.matrix=new Matrix(1,0,0,1,width/2,0);" /> > thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net téléphone portable : +33601 822 056 2009/8/7 Chet Haase > > > > > You don’t necessarily have to reset the 2d matrix – you just have to make > sure that all of your 3d properties are set back to the values they would > have if the object were again in 2d. > > > > In the original example, if the only thing you did was to change the z > location, and then you reset it to 0, then the text should not be blurry any > longer (we recognize that the object no longer needs a 3D transform and just > do the right 2D thing instead). I suspect that you are setting more 3D > properties than simply the z property (like rotationX, rotationY, etc.), so > even though you’re zeroing-out the ‘z’ property, that’s not enough to take > the object out of 3D and put it on the 2D plane again. > > > > Figure out the other 3D properties that you’re tweaking (just take a look > at the matrix when it’s back in the state where you think it should be 2D) > and reset the ones that are still in 3D. > > > > Chet. > > > > > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *thomas parquier > *Sent:* Friday, August 07, 2009 11:21 AM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Flex & 3d Tweening and best practice/results > for Text > > > > > > Hi, > > When objects are back to 2d, you have to reset 2d matrix to get rid of > blurry effect. > > thomas > --- > http://www.web-attitude.fr/ > msn : thomas.parqu...@web-attitude.fr > softphone : sip:webattit...@ekiga.net > téléphone portable : +33601 822 056 > > 2009/8/5 djhatrick > > > > I have a displayObject, a panel, doing 3d stuff with the panel... However > after I tween my object to z=0, the text looks blurry after the animation > has stopped. > > Is there a way to make the text look sharp: > > fontAntiAliasType="advanced" > > I've tried but that gives not-passable results. > > Thanks, > Patrick > > > > >
RE: [flexcoders] Flex & 3d Tweening and best practice/results for Text
You don’t necessarily have to reset the 2d matrix – you just have to make sure that all of your 3d properties are set back to the values they would have if the object were again in 2d. In the original example, if the only thing you did was to change the z location, and then you reset it to 0, then the text should not be blurry any longer (we recognize that the object no longer needs a 3D transform and just do the right 2D thing instead). I suspect that you are setting more 3D properties than simply the z property (like rotationX, rotationY, etc.), so even though you’re zeroing-out the ‘z’ property, that’s not enough to take the object out of 3D and put it on the 2D plane again. Figure out the other 3D properties that you’re tweaking (just take a look at the matrix when it’s back in the state where you think it should be 2D) and reset the ones that are still in 3D. Chet. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thomas parquier Sent: Friday, August 07, 2009 11:21 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex & 3d Tweening and best practice/results for Text Hi, When objects are back to 2d, you have to reset 2d matrix to get rid of blurry effect. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr<mailto:thomas.parqu...@web-attitude.fr> softphone : sip:webattit...@ekiga.net<mailto:sip%3awebattit...@ekiga.net> téléphone portable : +33601 822 056 2009/8/5 djhatrick mailto:djhatr...@yahoo.com>> I have a displayObject, a panel, doing 3d stuff with the panel... However after I tween my object to z=0, the text looks blurry after the animation has stopped. Is there a way to make the text look sharp: fontAntiAliasType="advanced" I've tried but that gives not-passable results. Thanks, Patrick
Re: [flexcoders] Flex & 3d Tweening and best practice/results for Text
Hi, When objects are back to 2d, you have to reset 2d matrix to get rid of blurry effect. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net téléphone portable : +33601 822 056 2009/8/5 djhatrick > > > I have a displayObject, a panel, doing 3d stuff with the panel... However > after I tween my object to z=0, the text looks blurry after the animation > has stopped. > > Is there a way to make the text look sharp: > > fontAntiAliasType="advanced" > > I've tried but that gives not-passable results. > > Thanks, > Patrick > > >
[flexcoders] Flex & 3d Tweening and best practice/results for Text
I have a displayObject, a panel, doing 3d stuff with the panel... However after I tween my object to z=0, the text looks blurry after the animation has stopped. Is there a way to make the text look sharp: fontAntiAliasType="advanced" I've tried but that gives not-passable results. Thanks, Patrick