I’ve put another two examples together and uploaded the source (you will need to download the Papervision3D source as well).
There’s still a lot of work to do on these to tidy them up, and ideally I’ll get them up on Subversion, but for now if anyone has ideas for improvements etc, please post in the comments.
View examples and right click for source.
NOTE: For those interested, the presentation and notes from LFPUG on this subject can be found here.
UPDATE: Jörg Birkhold has updated the source so that they work with Papervision3D 2.0/Great White. The source is available on his blog at http://liquidnight.de/2008/06/10/papervision3d-effect-classes-for-great-white. Thanks Jörg!

[...] on in einen 3D Würfel darzustellen. Update: Zu den Beispielen mit PaperVision3D sind noch die vier auf dieser Seite zu ergänzen. D [...]
[...] application. The source code for EffectPV3D is now ready for download, check out his blog here and here for more info. This entry [...]
Those last two are very silly, I’ll have to find an excuse to use them
[...]
« links for 2007-10-03
links for 2007-10-04
Papervision3D Effects for Flex Source Useful collection of Papervision source (tag [...]
Think, I´ve tested your example and on the follow fiel ws/tink/flex/pv3dEffects/effectClasses/CacheInstance.as there´s an error called
1067: Implicit coercion of a value of type org.papervision3d.materials:MaterialsList to an unrelated type org.papervision3d.core.proto:MaterialObject3D. ppflex/src/ws/tink/flex/pv3dEffects/effectClasses
On line 180 and 192. Any thoughts on it? ive compiled with PaperVisition 3D 1.5 last check on svn
regards
Hi Tink – great work – I’m getting all the examples to work except the cube. I’m getting the same error as haywire on that one
1067: Implicit coercion of a value of type org.papervision3d.materials:MaterialsList to an unrelated type org.papervision3d.core.proto:MaterialObject3D. CubeInstance.as
I’ve downloaded the Papervision3D source code from google. It is possible that the Papervision3D source code you are are running is more up to date?
Can you guys have a look at the Papervision3D source you have.
org.papervision3d.objects.Cube.as
The first parameter in the constructor should be MaterialList. Can you confirm this is what you have.
http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/Cube.as
I am also getting this error.
I downloaded ( Papervision3D_1_5.zip Papervision3D Class Packages – Rev 1.5 ) from GoogleCode.
the link that you supplied shows code that is totally different from the source I got from the .zip file.
@ Terry
You defo need to get the latest version using subversion not the zips.
I have haywires files so I’ll be taking a look at the error that these are getting in the meantime.
I found the problem, the svn link I had was not the GoogleCode one, but one from last July on cvsdude. I’m a bit out of date
heh seems like I am getting what I need now. Thanks!!!
So there Guy’s I was trying to fix the problem above and Got running pretty well, the problem was with the version of papervision 3D.
Basicly what I’ve done it was update form svn the last version of (org) folder from pp3d trunk and worked as well.
But for some reason if you go throw that you will see no error on compilation time but run time you will get an error, if you’re using the last Flex 3 SDK M3, you going to get the error like that.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.core::UIComponent/mx.core:UIComponent::processEffectFinished()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:7958]
at mx.core::UIComponent/mx.core:UIComponent::updateCompleteHandler()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:7911]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:704]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8260]
at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8203]
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()
So, what the error? that’s the question, Flex UIComponent had significant change on it, If you’re looking for a solution that avoids this error, you might change the SDK from M3 to M2 or using Flex 2 SDK Hotfix 3, and will works pretty well with no problem abounds.
Might help someone else.
@ Garrett
Does this resolve your problem?
Hi Tink – Got it working by downloading the subversion not the zip files and it works perfectly. Thanks a lot
[...] this page has Flash Video or is it done using Papervision 3d. Then I found this link and look at the wheel and i [...]
[...] urce Ecco un paio di esempi d’ uso delle librerie Papervision 3d in Flex http://www.tink.ws/blog/papervision3d-effects-for-flex-sou [...]
Hi guys thanks for this great stuff, but I didn’t solve the problem :
1067: Implicit coercion of a value of type org.papervision3d.materials:MaterialsList to an unrelated type org.papervision3d.core.proto:MaterialObject3D. CubeInstance.as
I dont understand what this mean :
Got it working by downloading the subversion not the zip files and it works perfectly.
What is exactly the subversion ? Thank you
The zip is old code, and you need the new code.
http://subversion.tigris.org/
http://en.wikipedia.org/wiki/Subversion_(software)
See here for adding subclipse (a subversion client) to FB http://www.tink.ws/blog/adding-subclipse-to-flex-builder-3-standalone/
I have an error like this, I download the source from the page
046: Type was not found or was not a compile-time constant: IEffectInstance.
Can anyone help ?
thank you
Yeah I got the same problem as Ivan. Trying to locate the problem and it seems a bit tricky. I think it is looking for the class file ws.tink.flex.pv3dEffects.effectClasses.IEffectInstance but there isn’t one but there is a ws.tink.flex.pv3dEffects.effectClasses.EffectInstance without the I. I tried changing that one to IEffectInstance but that just threw up a million and one other errors. Any help gratefully recieved. Cheers
IEffectInstance is part of the Flex framework
mx.effects.IEffectInstance;
Yeah, I figured that out after I sent the email. I upgraded my sdk framework so that it included the mx.effects.IEffectInstance but that caused all other kinds of cr*p to happen. I just wanted the cube effect. Have you got a stripped down version which I can look at and suss out how you have done it?
Are you using Flex 3.0?
I’m am currently re-writing some stuff and Igor Costa did some updates to get it working in 3. I’ll try and find em out and post the stuff.
[...] on, that you get some goodies in form of an calendar and i had the time to experiment with Tink’s FlexPapervisionEffects. Next [...]
Just to let you know that I got the examples working by downloading the latest version of flex and doing a complete new install. Trying to update the sdk was causing all sorts of wierd problems and was confusing the matter.
The effects are great but I get major performance hits when I try and do it on multiple elements at the same time. Especially with the cube effect. It can’t handle more than about 6. Any ideas why? I thought papervision was quite robust and could handle lots of transitions, especially looking at the examples such as the underwater shark. Any thoughts would be appreciated and thanks again for some very cool code. Will definitely be pitching some of these ideas to my clients
I’ve not tried running a load at the same time, but an immediate difference that i can think of its that the examples you talk about have 1 instance or PaperVision3D running with lots of items inside it tweening, where as if you run more than one effect at once it will create an instance of PaperVision3D for each effect, each with a single cube in it.
I do have an updated version of these effects on the way, but they won’t address this issue.
To be honest I haven’t actually changed your code just the implementation of it. I have just been using it to show an example of what can be done. Do you therefore think that one instance of papervision can manipulate several viewstacks in one go then. It may sound like a silly question but at this stage I haven’t delved into the code and am trying just to prove the concept. If you think it can then I shall look into the code a bit further.
It would also be cool to see your new version as well – when do you think it will be finished?
Cheers
[...] Flex effects are included for swapping the slides. I also added PaperVision3d effects from tink, and Distortion Cube effects for the hack of it. Got to please those Ubuntu a [...]
Hi Tink,
Appreciate your help on this one.The cube example works perfectly fine when the HBoxes within the viewstack are created beforehand.
However, if we were to create a HBox instance (with hideEffect=”cache” showEffect=”cube”) at runtime and add it into the viewstack, and set the viewstack’s current index to the latest child, the newly added HBox appears as a black HBox during the rotation. This happens only the first time when the new HBox instance is rotated. (subsequent rotations work fine though)
Appreciate your advice on how to display the newly added HBox when rotated for the first time.
Cheers
Hi,
I love the component, but… What about license? GPL? LGPL? MIT? DSB?
Am I free to use on my projects?
@ Alex – Let me have a look into the prob u have. Can u send me an example file to blog AT tink.ws.
@ Marvin – You are free to use in your projects. I will be releasing an update to these effects in the near future and i’ll make sure the license is in there. For now if you are worried please paste the following at the top of the files you use.
/*
Copyright (c) 2007 Tink Ltd – http://www.tink.ws
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the “Software”), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
Can anyone help me download the latest version of papervision3d?
I do not know how to use the subversion.
@ Alex
I think your going to have to put this down to a limitation of the effects for the time being. As I mentioned I am revamping all these effects, but the Papervision ones are at the end of the chain.
I pretty sure the problem is down to the HBox not being created fully before the effect tries to take a snapshot of it. There is some stuff in the new framework to take care of this, but not sure it is a complete solution at this moment in time.
Not really sure what else I can suggest except that I’ll do my best to find some time to get the new framework out.
@ Karthik
If you do some searching on Google you should find the resources you need.
Thanks Tink , I did find the resources.
I have been trying to find a workaround to the problem, such as pre-creating the HBox but make it invisible until the user click on the “add” button. However, it doesn’t seems to work.
Anyway, thanks for your time. Do update me if you found a way out in the near future.
Cheers
Hi Tink,
Can you please give us an example on how to sequence your cube effect. I’m trying to get my cube to srink,rotate,grow so I used:
But I get :
Error: Cube/CubeInstance requires the previous effect to be or extend Cache/CacheInstance
at ws.tink.flex.pv3dEffects.effectClasses::CubeInstance/createMaterials()
Those effect works like a charm. I was wondering if it would be able to have a smooth mode to reduce pixelisation during the effect.
Another question, how would you set an easing function to those effects ?
Thanks again
gilles
Easing function works of course like any other effects.
Sorry for that.
gilles
Any plans for a GreatWhite version?
I was facing the same problem Alex related above using a VBox to show two components I configure in runtime. I did a lot of changes in code and nothing appear to solve the problem.
For my surprise, when I removed the creationPolicy=”all” attribute from the component that has the VBox and from the component to be included on it, the “black face problem” stoped.
Hi Jorge,
I don’t understand what do you mean by removing creationPolicy=”all” attribute. According to the docs, creationPolicy takes any of the values, “auto”, “all”, “queued”, “none”. Which one should I use?
I tried the following. I have a viewstack that contains vboxA and vboxB, and a button to create vboxC, and get added to the viewstack upon clicked.
Changed attribute creationPolicy to “auto”, “all”, “queued”, “none” on the viewstack and vboxC, but nothing seems to work.
Any thoughts? Appreciate your input.
Cheers
Alex
Papervision3D Beta 1.7 (20.08.07)
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData()
at ws.tink.flex.pv3dEffects.effectClasses::EffectInstance/createBitmapDatas()[C:\inetpub\wwwroot\webserver\aplicativos_flex\admin_flex\src\ws\tink\flex\pv3dEffects\effectClasses\EffectInstance.as:185]
at ws.tink.flex.pv3dEffects.effectClasses::EffectInstance/play()[C:\inetpub\wwwroot\webserver\aplicativos_flex\admin_flex\src\ws\tink\flex\pv3dEffects\effectClasses\EffectInstance.as:108]
at ws.tink.flex.pv3dEffects.effectClasses::CacheInstance/play()[C:\inetpub\wwwroot\webserver\aplicativos_flex\admin_flex\src\ws\tink\flex\pv3dEffects\effectClasses\CacheInstance.as:57]
at mx.effects::EffectInstance/startEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:569]
at mx.effects::Effect/play()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\Effect.as:930]
at mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:716]
at DisplayObject3D: null
DisplayObject3D: null
DisplayObject3D: _root3D
mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:575]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
at mx.core::UIComponent/setVisible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1903]
at mx.containers::ViewStack/commitSelectedIndex()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\ViewStack.as:1092]
at mx.containers::ViewStack/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\ViewStack.as:658]
at mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5670]
at mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:519]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:669]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
Thanks i resolved the problem
I want to use your work.
I use Flex Builder 3.
I do a view source and then download the Zip File.
I install it into the directory :
src/[source path] as3 of my project
But I have a error says :
1046: Ce type est introuvable ou n’est pas une constante de compilation : Flip.
How can I solve my problem ? thanks
Ok, translation here :
1046: This type is found or is not a constant compilation: Flip.
Its seems that Flip is not recognized :
And of course I put :
That means that you are trying to use the effect Flip, and that you don’t have it in your classpath anywhere, and therefore the compiler doesn’t know what it is.
I have my Flex application in the directory :
/myApp/src/
|_myApp.mxml
|_[source pah] as3/
|_ ws/
|_ tink/
|_ ws/
|_flex/
|_ pv3dEffects/
|_managers/
And I put : xmlns:pv3dEffects=”ws.tink.flex.pv3dEffects.*” in the component mx:application
It still doesn’t work, why ?
I dunno, you can’t have it setup correctly.
[...] ch Internet Applications (RIAs). Pretty good content, but doesn’t change too often. Papervision 3D examples – Great site from a wizard named “Ti [...]
Hi Tink!
I’m trying the flip effect in my project and it work perfect, but I have a little problem. I’m using it to flip different views with a viewstack, and some view have transparency. While these views are flipping, all transparencies becomes black!!
Is there a way to solve this? Maybe is a papervision matter
Any idea?
Thanks a lot!!
yeah set the property ‘transparent’ to true.
AAAAAA!!!
So easy!!! many many thanks for your quick response!!
Cool effects..
Only problem i have with them is the fact that if u click multiple times the memory usage of your browser gets bigger and bigger.
Hence if used for an application, eventually the memory usage would be so great the app would crash….
Is there any way to solve this?
I know I keep saying that I’m re-writing this stuff, but I am, it’s just delayed a little.
I’ll look into this problem with the new ones once released, but I need to re-build them from scratch so that they extend PairedStackEffect, and the unreleased EntireStackEffect.
I have a few things to do with Flash CS3 components, and I promise I’ll get back onto these. Until then I can’t provide any support for the release PV3DEffects.
Hi,
I modified your effect classes(at least the cube effect) to be used with greatwhite…
Shall/can I publish them somewhere or maybe you wan’t to have it?
Greetz
Joerg
@Chris & Tink
In regards to the memory usage. I was toying around with EffectInstance.as file and noticed the disposeBitmapDatas() function. I threw a trace in there and noticed that it’s never being called. I then went up to the onTweenEnd function and added a call to disposeBitmapDatas(); There still some leaks ocurring somewhere in there, but I’ve seen a dramatic drop in memory usage when using animations over and over again.
Peace,
-Jason
Hi,
I have a problem with rotate effect. In my screen, when a user move a scroll, my image move too when is rotating. When my effect stop, my image come back to position beginer. It`s bug?? How I solve this problem?
I need that image just rotate in the position beginer.
[...] erride just about everything to match your own application. The 3D effects were written by tink.ws which utilizes PaperVision3d. This component is actually [...]
Hi Tink, thanks for the great code samples. I just wanted to post up a link to a component that I created using your flip example. There’s nothing new as far as the animation, but it’s packaged up for easy drag/dropping into a project. http://www.verysimple.com/blog/2008/07/11/flex-flipcard-component/ Thanks again!
hi jason,
where exactly did you add the disposeBitmapDatas()?
for me it breaks the effect?
greetz
joerg
@Joerg
In package ws.tink.flex.pv3dEffects.effectClasses I changed the function onTweenEnd, on line 144, to read:
override public function onTweenEnd(value:Object):void
{
super.onTweenEnd( value );
setTargetVisible( true );
disposeBitmapDatas();
mx.effects.EffectManager.mx_internal::endBitmapEffect(UIComponent(target));
}
If you’ve got a trace in the disposeBitmapDatas() function you should now see it using debugger once an animation has completed. Let us know if you notice an increase in memory efficiency as well.
Peace,
-Jason
Hey Jason, I added your code and definitely notice the memory leak is much improved. Before adding that code, usage goes up consistently every time I animate – in my case around 2Mb. After the patch, it cuts usage down to less than 1/4 of that amount. It also seems the garbage collector may be cleaning up some of that. I think there is a still a leak but it’s much better.
hi
the classes have been updated for the latest revision of GW
http://liquidnight.de/2008/06/10/papervision3d-effect-classes-for-great-white/#comment-206
joerg
Thanks tp Flex Profiler the Memory Leaks are fixed in GW Classes.
http://liquidnight.de/2008/06/10/papervision3d-effect-classes-for-great-white/
Joerg
Joerg,
Your update today is just what the Dr. ordered. Using Flex Profiler I can confirm that the memory leaks have been dramatically reduced. Garbage collection seems to be somewhat delayed at times as I’ve watched the Peak Memory climb quite high, but it seems to eventually fall back down to a very manageable level. Is there a certain level that Papervision lets the Number3D class grow to before it starts cleaning up? Thanks again for your work on this.
Peace,
Jason
Garbage collection is handled by the player and there is no way to force it.
http://gskinner.com/blog/archives/2006/06/as3_resource_ma.html might be worth a quick read
I posted this in the comments on the blog with the updated library for papervision 2.0, but I thought maybe someone could help here as well. These effects are awesome (thanks tink!), but I am having one issue: When I use a component that has no background color and is transparent, when it flips the entire background color changes to black. I can’t seem to find why this is happening, would you have any thoughts? To test, just use the flipexample.mxml and remove the background color, and make it transparent and you’ll see.
[...] de-for-3d-flex-form http://www.dgrigg.com/post.cfm/04/19/2007/Source-code-for-3d-flex-form http://www.tink.ws/blog/papervision3d-effects-for-flex-source/ http://www.lfpug.co [...]
Thanks for these excellent examples! These have taught me a lot. I wish they worked with the new version of papervision and/or with UIComponents.
I have created a Flex UIComponent in Papervision, but maybe you have some design suggestions?
http://www.systemsofseven.com/papervision/PV3D_UIComponent/FlexPV3D.html
Adios,
Lance
@ Lance
Take a look at http://www.efflex.org
[...] ex_components_en.html Flex Components | Flex.org http://flex.org/software/components 3D paparvision http://www.tink.ws/blog/papervision3d-effects-for-flex-source/ ~ by shadow on November 5, 2008. Posted in useful url [...]
[...] le. other example is use to enable papervistion 3D effect for flex. it provide sources downlao [...]
Thanks for sharing the examples.
I am playing around with the Flip example. Unfortunately it is not working for me, and appreciates if you give me some hint. I have downloaded the latest papervision 2.0 (Don’t know if that is the problem).
I am getting these errors
Severity and Description Path Resource Location Creation Time Id
1061: Call to a possibly undefined method renderCamera through a reference with static type org.papervision3d.scenes:Scene3D. MyFlip/src/ws/tink/flex/pv3dEffects/effectClasses EffectInstance.as line 112 1233503712375 8587
_scene.renderCamera( _camera );
Is this bad practice to have (_camera)?
BTW, I don’t see .renderCamera as an option in the menu.
1061: Call to a possibly undefined method renderCamera through a reference with static type org.papervision3d.scenes:Scene3D. MyFlip/src/ws/tink/flex/pv3dEffects/effectClasses EffectInstance.as line 131 1233503712375 8588
1137: Incorrect number of arguments. Expected no more than 0. MyFlip/src/ws/tink/flex/pv3dEffects/effectClasses EffectInstance.as line 158 1233503712390 8589
Hi Kiumars
Please see http://www.efflex.org
Please i need the correctly working source code of Papervision 3D effects.
In the pld existing code Cube is not working, it shows the following error.
1067: Implicit coercion of a value of type org.papervision3d.materials:MaterialsList to an unrelated type org.papervision3d.core.proto:MaterialObject3D. CubeInstance.as
But am in need of Cube animation effects. Other animations are working correctly except Cube animation.
I want the full working source code. Please anybody there to help me…
Any way thanks in advance…
I hope i will get the reply from any of the paper vision 3D friends….
Please send me the link of working source code.
Hey Tink especially i want inform this to you friend.
Because u r answering for all question. I too expecting the good reply from u ASAP.
Tink u have to give me the solution frind.
Please……………………
I fully searched in the google, but i cant get the full source code anywhere.
Please give me one good solution friend. Pleaseeeeeeeeeeeeeeeee….
Thanks in advance……………
Hi Mogi, unfortunately we are no longer supporting these effects. You could have a look at Efflex, but the public version does have bugs, and v0.02 that irons out these bugs isn’t public, and doesn’t have a Cube effect at the moment.
Ok thanks Tink.
But where shall i get the sample code for Cube effect Tink.
Shall i get the bug free source code for Cube rotation, if it is old version also no problem Tink.
But i need the bug free source code of Cube effect.
Presently am trying for some of the effects, i cant get the effect for cube instance.
Please give me any suggession Tink pls……..
Tink just i want the working source code for the following sample http://www.tink.ws/blog/files/flex/CubeExample.html.
This sample is working fine tink.
Its the PV3D effects sample…
Shall i have the source code of this sample.
Thanks in advance…
The source is available above (right click to view source). We don’t support it any more so if it doesn’t work for you, you need to fix it yourself.
Hi ZIT,
How are u buddy.
Can u get me…..
If so please reply me friend…..
I need a help from u ZIT.
We are using the Cube effect on a viewstack and it’s working well. The only issue is that when switching to full screen, the cached bitmaps are from the pre-full screen resolution and therefore too small. As you switch to each child, the cache seems to get refreshed so it’s only an issue the first time you switch to a child after changing to full screen. When you exit full screen mode, the reverse happens – ie. the cached images are too big and get clipped.
Any suggestions how to resolve this? The hide effect is calling the cache effect identically to the cube example on your blog.
Thanks!
Hi Royce.
This effect is no longer supported and has been replaced with Efflex. Publically Efflex doesn’t have a Cube effect but inside the SWC there is both a CubePapervision3D and Cube (Flash Player 10), but both have a couple of issues with scaling.
The problem of moving to a from fullscreen is definitely something they won’t manage effectively, but I will bear it in mind for future versions.
Hi Tink,
Thanks for your very rapid response!
Do you have any timeframe in mind for when the new Cube effects would be publically released?
Basically they are in there and you can use them.
There are 2 different problems with them.
1. Due to perspective on 3D effects they either need a render area bigger than the original dimensions, or they need to be scaled throughout the effect to keep them inside the original dimensions (you can see this taking place on the FlipPapervision3D effect if you have clipContent set to true on the ViewStack. If clipContent isn’t set to true I need to work out how big the dimensions will need to be at the start, and I’m currently waiting for some info back from the PV3D team for this.
2. The above applies for the Flash Player 10 Cube effect (found in the spark package), although I’m not waiting for a response for the PV3D team for this. I’ll sort this out although I’m waiting for the Flex team to reply with a stance on ViewStack’s for spark. Currently they don’t seem to have a spark replacement, and you can’t use spark containers in mx containers, so it would mean ViewStack’s are out the window (https://bugs.adobe.com/jira/browse/SDK-21782).
Hi again Tink,
I tried using the CubePapervision3D effect in Efflex, but it had big rendering issues. I couldn’t see the other FP10 Cube Effect you mentioned so no idea how well that one would work.
I think for now we’ll need to stick with the old cube effects as they’re doing the best job. The only issue still is with caching. Is it possible to force an update of the cube cache? I could trigger that when switching too/from full screen mode and that might solve our issue.
Thanks!
Sorry for the double post, but these are the 2 issues I found with Efflex CubePapervision3D:
1. The duration parameter doesn’t seem to do anything – no matter what duration I set, it’s always taking about 5 seconds to render.
2. The effectEnd parameter seems to trigger before the effect has ended. I set the effectEnd function to change the cube direction and change the viewStack selectedIndex. For this test example the cube just alternates between left and right rotation. But the effectEnd is firing too early and so you end up with multiple instances of cube rotations.
Any ideas?
[...] ervision3Dを利用したeffectライブラリ。 ○Papervision3D Effects for Flex Source http://www.tink.ws/blog/papervision3d-effects-for-flex-source/ デモ1:flip ht [...]
I try to use your Cube, Flip, Rotate and Zoom examples with a ViewStack with children created at runtime. The childs was: I create a container and inside this I add a image component for each image file loaded with BulkLoader.
When I change the selectedIndex of ViewStack, the effect is ready but the effect show first image in the front and black background in the back, when the effect is finish the second image is showed.
I know this is a creationPolicy =”all” staf, but I set this for the viewstack at design time but, at runtime the childs are created when the selectedIndex is changed.
Yours examples are for design time childs created only?
Any idea???
Thanks in advance.
HI Fisad
These effects are no longer supported, please see http://www.efflex.org