Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorSir_Ser
- CommentTimeJan 10th 2009
Hi all!
I'm using Flint since 0.x version and i simply LOVE IT!
Now i'm getting stucked after trying CS4 version af Flash, because i know this file worked perfectly in CS3 and now with the implementation of 3d in flash libs those lines of code returns me this error:
CODE :
emitter.addInitializer( new Position( new PointZone( new Vector3D( 400, -10, 200 ) ) ) );
emitter.addInitializer( new Velocity( new DiscZone( new Vector3D( 0, 0, 0 ), new Vector3D( 0, 10, 0 ), 100, 50 ) ) );
ERROR:
1067: Implicit coercion of a value of type flash.geom:Vector3D to an unrelated type org.flintparticles.threeD.geom:Vector3D.
I tried to solve the problem by NOTimporting the Flint .as file org.flintparticles.threeD.geom.Vector3D , and using flash.geom.Vector3D , due to the fact that they're similar also in code, but this was not enough; i also tried by modifying the Flint library but i can't find where the problem is.
Can u help me please? -
- CommentAuthorRichard
- CommentTimeJan 12th 2009
You need to add the import for Flint's Vector3Dimport org.flintparticles.threeD.geom.Vector3D
at the top of your code, otherwise Flash will assume you want the new flash 3D class added in Flash 10 - flash.geom.Vector3D. -
- CommentAuthorSir_Ser
- CommentTimeJan 12th 2009
I tried and it generates me the problem that i posted before. I mean is using the Flint lib that i get the error... Maybe Flint lib need fixes for version 10 of Flash Player? Ill' keep trying get this fixed! Any suggestions please? -
- CommentAuthorRichard
- CommentTimeJan 13th 2009
Then tryemitter.addInitializer( new Position( new PointZone( new org.flintparticles.threeD.geom.Vector3D( 400, -10, 200 ) ) ) );
emitter.addInitializer( new Velocity( new DiscZone( new org.flintparticles.threeD.geom.Vector3D( 0, 0, 0 ), new org.flintparticles.threeD.geom.Vector3D( 0, 10, 0 ), 100, 50 ) ) ); -
- CommentAuthorSir_Ser
- CommentTimeJan 14th 2009
Either it dosen't works.
Please note that i have updated via Svn at the lastest revision 226.
It returns me those two error at the lines u suggested me to use referred at Position.as
ERROR :
Position.as, Line 92 1067: Implicit coercion of a value of type org.flintparticles.threeD.geom:Quaternion to an unrelated type org.flintparticles.threeD.geom:Vector3D.
There line 92 that generates error in Position.as is : if( !e.rotation.equals( Quaternion.IDENTITY ) )
Position.as, Line 94 1119: Access of possibly undefined property rotationTransform through a reference with static type org.flintparticles.threeD.emitters:Emitter3D.
There line 94 that generates error in Position.as is : e.rotationTransform.transformVectorSelf( position );
Ill'help improving the lib! -
- CommentAuthorRichard
- CommentTimeJan 15th 2009
I've run a number of tests of the code, including various 3D systems using both Position and Velocity, and find no issues with it. A little investigation suggests that your Emitter3D class is still at revision 170 - in that version the rotation was a Vector3D rather than a Quaternion, and the rotationTransform didn't exist. The next update to this class was revision 212 where the rotation was changed to a Quaternion and the rotationTransform was added. Your Position class is, however, at the latest version, which was added in revision 212. So it seems that only some of your files are updated to the latest revision - probably an error by your SVN client software. -
- CommentAuthorSir_Ser
- CommentTimeJan 16th 2009
You're right, that was the problem... Lol! I'm gonna update Tortoise SVN at the latest version or kill my way of being n00b.
Thanks for your time, help and quickness in your replies.
Excellent work by the way! -
- CommentAuthorjoel
- CommentTimeNov 3rd 2010
I also have this problem and still get this issue:
emitter.addInitializer( new Position( new BoxZone ( 1366, 768, 10, new org.flintparticles.threeD.geom.Vector3D( 0, 0, 400 ), new org.flintparticles.threeD.geom.Vector3D( 0, 1, 0 ), new org.flintparticles.threeD.geom.Vector3D( 0, 0, 1 ) ) ) );
emitter.addInitializer( new Velocity( new PointZone ( new org.flintparticles.threeD.geom.Vector3D ( 0, 0, 50 ) ) ) );
after updating to the latest version of everything.
I am using Flash cs5 if that makes any difference and am publishing it as flash player 10. -
- CommentAuthorjoel
- CommentTimeNov 3rd 2010 edited
What I failed to mention is that I am trying to replicate this:
http://flintparticles.org/forum/comments.php?DiscussionID=84
I am almost there other than the issues listed above.
Thanks :) -
- CommentAuthorRichard
- CommentTimeNov 5th 2010
Hi Joel
I added a full script in answer to your questions on the other thread. Hopefully that answers this question too.
1 to 10 of 10
