ActionScript 3.0 :: Fp10 Drawtriangles And Uvmapping When No Z-val

Nov 1, 2009

i'm messing around a bit with the new fp10 drawing api and drawtriangles. i've created a little something i think is kinda of cool, though i can't seem to get the uv-mapping working as i want. since i'm just moving points in z/y direction i don't really have and z-value to calculate the uv with. though the bitmap texture gets distorted. i've tried to calculate a "fake" z-value with x and y, but since my maths skills are terrible i can't really get it to work.

i've thrown together a little sample here below (code obviously needs cleaning up, but i'm gonna worry about that when i've got it working as i want to). in this example z-val will always be 1 and no perspective fixing will be done. how i can take my calculated x and y point and turn them into a "fake" z-point and use that to avoid distortion in the map/texture.

[Code]...

View 5 Replies


Similar Posts:


Flash :: AS3 Fp10 Drawtriangles And Uvmapping

Nov 1, 2009

I'm messing around a bit with the new fp10 drawing api and drawtriangles. i've created a little something i think is kinda of cool, though i can't seem to get the uv-mapping working as i want. since i'm just moving points in z/y direction i don't really have and z-value to calculate the uv with. though the bitmap texture gets distorted. i've tried to calculate a "fake" z-value with x and y, but since my maths skills are terrible i can't really get it to work.

i've thrown together a little sample here below (code obviously needs cleaning up, but i'm gonna worry about that when i've got it working as i want to). in this example z-val will always be 1 and no perspective fixing will be done. so i really need your to figure out how i can take my calculated x and y point and turn them into a "fake" z-point and use that to avoid distortion in the map/texture.

[Code].....

View 1 Replies

ActionScript 3.0 :: Using DrawTriangles From Within A Class?

Nov 16, 2011

Has anyone ever had trouble using the drawTriangles method from a custom class?

I have an fla that points to a Main class, and within that class i create a var with the type defined in another class (let's call it Triang) that uses the drawTriangles method.

There are two main ways I've tested to see what could be wrong. 1.) I have used the drawRectangle method instead from the Triang class and when testing the project the rectangle is properly added to the stage. 2.) I've used the drawTriangles method on the first frame within a blank fla file in the same way i'm trying to within the class and the triangle was added (just to make sure i understood how to use the method properly)

View 0 Replies

Actionscript 3.0 :: Draw Squares With DrawTriangles?

Jan 25, 2010

How do you go about drawing only the outline of squares using drawTriangle. Currently I am using lineStyle to draw my lines but obviously that outlines each triangle. I know i can just draw Squares out using drawRect with no fill but that seems like a waste.

View 6 Replies

ActionScript 3.0 :: Flash DrawTriangles() Looks Crudy?

Jan 5, 2011

Is there a way to make DrawTriangles use anti aliasing like it does in the native flash UI.ode below uses a movieclip on the stage called "testBitmap_mc" that has stuff inside it and then it draws a triangle and flips it.

Code:
import flash.display.Bitmap;
import flash.display.BitmapData;[code]....

View 1 Replies

ActionScript 3.0 :: DrawTriangles() UV Mapping Only Good For Planes?

Aug 23, 2009

I'm just coming back to toying with 3d in flash. All my previous efforts were made in AS2 so drawTriangles() is liquid-awesome to me... Still, am I right in thinking that the UV mapping of drawTriangles is only really useful for two-triangle planar evaluations? In other words, there isn't any way to pipe in the UV map data required to skin a whole model - even a simple cube - in one call to drawTriangles, is there?

I got my hopes up when I saw I could draw the whole wireframe of an object in one call, but everything I read suggests the UV coordinates are relative to the vertices, not the indices. So I'm thinking that the UV value for a vertex can't be redefined for triangles sharing vertices as described by the index. Is that right? If so, I guess you could draw the whole thing in a single call if you threw away your index and passed all the unconsolidated vertex information. Seems like an awful waste if that's right.

View 1 Replies

IDE :: FP10 GPU Wmode Resizing?

Jul 17, 2009

Anybody notice any issues when resizing windows that are embedded using the new "gpu" wmode? Like a noticeable lag and some scaling issues for about a second before it fixes itself? Its not a big problem but it is a lot less smooth than previously...Edit: I threw together a quick demo so you can have a look. I'm working on a site and it really has to use the new gpu wmode since it improves the performance quite significantly.

View 2 Replies

ActionScript 3.0 :: FP10 Perspective And Masking

Jul 29, 2009

So I am learning AS3 slowly.First project in it.I am having some troubles. (I know I need to learn to code class based, working on it, familiarizing myself with some of the basics before I change my style completely).I have set up my stage to have four instances of a movieclip named silverScreen0 - silverScreen3.Each of those has a content layer in it which I am dynamically loading an identical swf.I then have a mask I put over each clip so that it only show a specific area.

-First issue comes up that hte fourth mask seems to move/distort on load, as you'll see in the swf.

-Second issue comes up when the loaded swf comes in ... the mask seems to shift if the swf has a motion animation, click the second white circle above chapter1 to see this.

-Third issue comes up when I move the content layer inside of the silverScreen# clip ... the mask seems to move as well. No example of this but if you download the source files you can see it.[code]

View 1 Replies

Embedding SWF: Doesn't Recognize FP10

Jun 25, 2009

Flash files I embed have faulty plugin detection - it does not recognize FP10 as an upgrade from FP9. This is in the knowledgebase, but it does not suggest a solution. "Some websites will ask you to install or update Flash when you already have the Flash 10 plugin installed. This is not a problem with your Mozilla browser or your Flash plugin, but with certain websites that misidentify Flash 10 as Flash 1 due to a faulty detection scheme. Contact the website and ask them to correct the problem or, on Windows, you can try the site in Internet Explorer, since the Flash ActiveX detection may work even though the plugin detection does not."

View 4 Replies

ActionScript 3.0 :: Variables Passed Different To FP9 Versus FP10?

Sep 20, 2010

I have been using the flashvars from swfobject for a long time to pass info into my swf for specific outcomes. I am just starting to publish everything using flash player 10 and wasnt able to get my variable to be seen by the swf. maybe i was doing something incorrectly with this new file? but i then took code from my older files and they didnt work either... then i published down to flashplayer 9 and it worked perfectly... ???

i am using swfobject 2.2 and my code for passing the flashvar is

// Flash Code:

Code:
var r:int = root.loaderInfo.parameters.varName == null ? 0 : root.loaderInfo.parameters.varName;

[code]....

View 1 Replies

Professional :: StageVideo And FP10.2 - StageVideoAvailabilityEvent Never Fires?

Oct 7, 2011

I can just create a new project, target Flash Player 10.2 and paste this into frame code:

[Code]...

The event never fires off. I look in the reference for StageVideo and I see it's available in Flash Player 10.2. What's up with this? edit: If I target AIR for iOS, this event does fire (I have AIR3.0 overlayed).

View 3 Replies

ActionScript 2.0 :: Does The XRay Debugger Still Work In FP10

May 27, 2010

I'm trying to debug an old AS2 project that uses an old version of MDM Zinc and its driving me mad not having a decent debugger.
Especially as I need to debug on several platforms,e.g by Zinc exe works fine in XP but not in Vista.I tried downloading the latest XRay stuff from GoogleCode but it doesn't seem to work as my player is the lastest FP10 I suspect that this could be the result of FP10 sandbox security changes to local connection.

PS. I did look at DeMonster debugger but I can only find an AS3 version

View 3 Replies

Actionscript 3 :: FP10 Causing Text To Flicker And 'bloom'?

Dec 9, 2009

I have run into a small graphics glitch in Flash.It seems to be both in FP9 - Exported via Flash CS3, and FP10 Exported via the Flex 4 beta SDK.The glitch /problem manifests itself as embedded text at a small point size "blooming" under certian conditions.It basically looks like the antialiasing becomes fatter at some level of text brightness. I have made a small test case below. (Obviously) You will need to embed the Arial font in your compiled SWF for the below code to work.[code]You can see an example of the problem by rolling over the graphical element here: url..It's not really an option to change to AntiAliasType.NORMAL as it makes the text way less readable at this point size.

View 1 Replies

ActionScript 3.0 :: [FP10] : Sound.extract And Saving Mp3 File?

Jan 29, 2009

how to convert bytearray of samples from Sound.extract to bytearray of mp3 file? I want to save editied mp3 to user's local disk.

View 0 Replies

ActionScript 3.0 :: Tweening 3d Objects Using The Built In Fp10 3d Engine

Jan 13, 2010

i'm having problems tweening 3d objects using the built in fp10 3d engine. i have a timeline tween that i want to create a tweenlite tween from and then duplicate it for other objects. i am using the bezierthrough plugin as well to tween along a path. i have used the motion editor in the ide to copy all values that change along the path into a tweenlite instance as follows:

[Code]....

View 1 Replies

ActionScript 3.0 :: Using FP10 Classes Within A FP9 Wrapper In Flash Player 10

Oct 6, 2010

We create Flash games which are embedded within third party wrapper SWF files, which are exported for FP9.If I create an FP10 SWF which uses classes specific to FP10 (Pixel Bender classes such as Shader, ShaderData), when I run them in an FP9 wrapper within an FP10 player, an error is thrown VerifyError: Error #1014: Class flash.display::Shader could not be found.I thought this may be something to do with ApplicationDomains - maybe the child SWF was forced into using the global classes from the parent SWF, but assigning a new ApplicationDomain to the child didn't make any difference. Is there any way to get access to these FP10 classes - or does the version of the outermost wrapper SWF always determine what's available to child SWFs? It seems odd that the FP10 classes are not available in a FP10 player.

View 2 Replies

ActionScript 3.0 :: Flex Upload Images Without Server - FP10?

Mar 25, 2011

i have code:

Code:
private function load_image(evt:MouseEvent):void {
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaderComplete)
loader.load(new URLRequest("images.jpg"));
}

[code]...

working good, if i use only one images, but i need load images with local machine and display in flash, how can modify my code?

View 1 Replies

Flex :: Swf - HTML Templates Disappearing In Builder When Target Fp10?

May 19, 2009

When I target flash player 10 in flex builder 3, the index.html template along with some other files (history.js, etc) are removed and no wrapper html page is built.Anyone else experiencing this? I have an ant build script as well, but I was trying to run the built in fb builder.

View 4 Replies

ActionScript 3.0 :: Universal Video Player Which Runs On FP9 And Uses FP10 Features When Possible?

Apr 7, 2011

As in subj. Is it possible to make a video player which will run on FP9 and when FP10 is detected use some of its features as Stage video API or pixel bender shaders?.I've tried to access FP10 classes via getDefinitionByName but it doesn't work

View 2 Replies

ActionScript 3.0 :: Internet Explorer /FP10 Draggables Are Splitting Into Pieces

Mar 31, 2012

I'm making a simple drag and drop game, but the strangest thing is happening on IE with FP10: the sub-assets of the draggables shift their positions when the parent is dragged quickly.The mouseChildren of the draggables is set to false, and the cacheAsBitmap is set to true. And it functions beautifully on Safari and Chrome. This is client work, so I can't really post a link here without their permission.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved