Flash - Should A New VertexBuffer3D & IndexBuffer3D Be Created For Each Program3D Used

Jan 18, 2012

If I have a few Program3D objects (each with it's own Vertex-Shader and Fragment-Shader responsible for it's own rendering task), do I need to instantiate a new VertexBuffer3D and IndexBuffer3D so that they store the data only relevant to the vertex-data format used by their corresponding Program3D?

For example, if I was planning to define Quads in different vertex-data formats, such as:

var vertexData:Vector.<Number>;
//Vertex-Format A:
vertexData = new <Number>[

[code]....

Would I need to create one VertexBuffer3D and IndexBuffer3D to store format A, another one for format B, and yet another one for format C? Or can the various formats be mixed inside the same VertexBuffer3D and then make some clever (or confusing!) use of a single IndexBuffer3D to draw the triangles?

View 1 Replies


Similar Posts:


Flash :: Write To An IndexBuffer3D With UploadFromByteArray?

Jan 25, 2012

I really don't understand what I'm doing wrong, but according to Adobe, this is how you use uploadFromByteArray(...) on an IndexBuffer3D object:

Adobe's LiveDocs for IndexBuffer3D

What I don't understand is which writing-method do I have to use to write the integers of my vertex-indexes? I've tried writeFloat, writeUnsignedInt, writeInt, even writeShort and all fails. I've set my ByteArray instance to ba.endian = Endian.LITTLE_ENDIAN, still no go.

I've made sure to reset my ByteArray position to 0 before I attempt to upload it to my index-buffer, but nothing shows up!

If I upload a Vector.<uint> instead, that works! So I know the problem is not with the AGAL shader.

View 1 Replies

Flash :: Is Switching Between Multiple Program3D's During ENTER FRAME Computationally Expensive

Oct 20, 2011

When setting up a Stage3D's Context3D for rendering, is it expensive / bad practice to switch between Program3D's in an Event.ENTER_FRAME cycle?I don't have an example at hand, but I'm curious to know if there's such situations where this alternation between programs would be used and if the frame-rate would suffer considerably.

View 1 Replies

Flash :: Use VertexBuffer3D To Manipulate Objects In A Hierarchical Display Structure?

Dec 25, 2011

Scenario 1: Within some 3D container object, I would like to add two Cubes: one without any transformation, and one with small position, rotation and scale adjustments. After adding those two cubes, I would like to also transform the container's position, rotation and scale.

Scenario 2: In a 3D character's body, it consists of many hierarchical children (and subchildren), each having various transformations over the course of an animation.

How do I calculate these individual 3D object transformations efficiently? Can it even be possible to do this with only one VertexBuffer3D? Or do I need several VertexBuffer3D to keep track of each objects? Using multiple VertexBuffer3D seems like it could hit a limit (but I haven't read enough of the Stage3D / Context3D documentation to know for sure).

View 1 Replies

ActionScript 3.0 :: Molehill : VertexBuffer3D's Vector From CopyPixels?

Mar 18, 2011

I am working on my own Molehill 2D painting classes. I took a look at Ely Greenfield's M2D stuff but I found it a tad overkill for what I am looking for. So I want to do my own. I have been working off of Polygonal's example. You can check out my code here - http:[url]..........Assume I want to paint one entity that is a rectangular bitmap image using two triangles (essentially a quad). Basically I am having a hard time understanding how to translate this:

Code:
bitmapData.copyPixels( sourceBitmapData, sourceRectangle, destinationPt.. );
to this (assuming I am using a x, y, u, v vector pairing):[code]...

Specifically if the source rectangle doesn't contain the same values of the sourceBitmapData.rect. What if I want to paint only a portion of a bitmap onto a quad? Or stretch a portion of the image across a quad.

View 1 Replies

ActionScript 3.0 :: System Resource Use - Flash Created Vs Photoshop Created?

Mar 14, 2009

I have only one question but phrased it 3 ways:

1) Is it better to pre=render things say in photoshop or have flash render them?

2) if I have a field of stars that drift along; is it better to create that Star Field in photoshop as a single picture (say a .png) or to create a star in my library and add it to a movie clip and then have that drift along?

Lets say I have a blur effect on my stars and have an equivalent on the photoshop.

3) I have heard (and experienced) adding effects like blur takes a fair amount of CPU and memory so was wondering if I created the effect in photoshop and then imported the 'blurred' object into my flash if I could cut down on system resources?

View 2 Replies

ActionScript 3.0 :: Keyword "this" - Refer To The Current Instance Variable Being Created When Its The Only One Being Created?

Dec 11, 2009

When an instance variable is constructed by a constructor method, why do you need to refer to the current instance variable being created when its the only one being created? I understand assigning an expression to it but why name it "this." when it is the only object that the constructor is building? Does it have some hing to do with being able to naming that object in the Local Variable? In other words am I creating a generic object that will be named in another class?

View 7 Replies

ActionScript 1/2 :: Link Exported Flash Buttons Created In Flash Pro 8 Flash To Pages In Dreamweaver 8?

Jun 8, 2010

I'm working through Dreamweaver fairly well, and I'm now wanted to import Flash buttons I've created myself into Dreamweaver for a website I'm currently building, and it's here that I'm finding the problem. I have been to the 'get URL Function', but it says something about needing to link to a web page? But my problem is how can I link Flash Buttons to a web page, when my site is still being developed and not published? Do I have to publish first?

View 3 Replies

Professional :: Project Created In Flash CS3 & Flash CS5 Crashes Both Safari & Firefox

Jan 24, 2011

I have a user with a brand new image including Snow Leopard 10.6.6 and the Adobe CS5. When creating a project in Flash CS5 and then trying to view it in Safari & Firefox the plug-in crashes which then brings down the browser with it.I went and installed Flash CS3 (as this is what he is used to using) and the problem still persists.

View 1 Replies

Modifying Text Created In The Flash GUI

Jan 22, 2010

I'm trying to build a schedule with Flash CS4 and Actionscript 3.0 for an Internet radio station. I'd like to have a .swf that I can open, drag and drop a text symbol from the Library (ideally, for design reasons), and then change the color of the text with Actionscript when the user presses a button.

I can change the color of text if I create it with Actionscript, of course, but I'm not sure how to use Actionscript to change the color of text I've created in the Flash GUI. I can't pass a TextField to a symbol and expect Flash to know what to do with it, can I?

View 1 Replies

ActionScript 3.0 :: Created A Flash Slideshow

Nov 9, 2009

I have created a flash slideshow, where the slide will enter the stage from the left via a motion tween. Once the tween finishes and the symbol is in place, I want the slide to be clickable. I created an invisible button to go over each slide, and put these buttons on their own layer.Then I created an actions layer and put in this code:[code]It worked fine on the first button, but when I attempted to add a second button (only changed the parts in red to reflect different instance and link), it told me it was an error due to a duplicate code.

View 3 Replies

Professional :: Resizing A Swf After Its Been Created In Flash?

Feb 8, 2010

Is there anyway of resizing a swf after its been created in flash?
 
EXAMPLE:
 
My document size of my animation is 520px width by 680px height... when i resize this as an embedded swf in an html page (through source coding) to 382px width by 400px height.. the animation does not flow properly and there are occasional jerks... its not fluid.
 
Is there an easy way to do this in flash after its been created? Or am i going to have to start from scratch with the proper document size?

View 2 Replies

Flash :: CS4 Crashes As Soon As A New File Is Created?

May 6, 2010

or context:I just installed Snow Leopard on my Macbook Pro (2007 model) and thus just recently installed CS4 Design Premium Student Ed.

[Code]...

View 5 Replies

Professional :: Testing IOS App Created In Flash Pro Cs5.5?

May 7, 2011

I've followed several instructions on how to develop a simple iOS app. I've managed to go all the way through and Publish + create the .ipa. I'm able to then add the file to my iTunes library, but when I then try to add it to my iPod Touch (2nd Generation) I get the following error:
 
The app "XXXXXX" was not installed on the iPod "XXXXX's Ipod" because it is not compatible with this iPod.I've even tried it with a simple "Hello World!" app but I get the same error.I'm using Flash Pro Cs5.5 on a Windows PC.

View 12 Replies

Asp.net Mvc :: Flash - Slideshow (swf) Be Created Dynamically?

Nov 17, 2009

now a customer wants me to make a Flash intro in her (ASP MVC) site. The scenario is this: images are stored in the dbms. Every image belongs to a category. Depending on what category is selected, the corresponding images should be fetched and played in a flash player with "transition" effects (hope i used the correct words).How can a slideshow (swf) be created dynamically?

View 1 Replies

Flash - Is The Code Run Every New Object Created

Aug 27, 2011

if i have following code :

class Stand {
public static const STAND_LIST:Array = new Array();
STAND_LIST[0] = new Array();
STAND_LIST[1] = new Array();

[code]...

is the STAND_LIST[0] keeps created every new instance of Stand created? or is it created just once?if it's created every new instance of Stand created, how do i make it run just once?(like initializing const)

View 1 Replies

ActionScript 3.0 :: Textfield Created In The Flash CS4?

Feb 10, 2009

Is it possible to have a textfield created in the Flash CS4 IDE that is associated with a sub-class of TextField? Or do I have to instantiate the TextField in code?

View 1 Replies

Actionscript 3.0 :: Swc Created In Flash Using StageVideo Api?

Feb 10, 2011

I built a video player that uses embedded movieclips and bitmaps with flash professional cs5. I would like to incorporate logic to use stageVideo. However, if I use flash the stageVideo api's are not available. If I use Hero, I don't know how to incorporate the embedded movieclips and bitmaps that are currently in the fla.So, my question.Using flashbuilder, is their a way to access assets from an fla? or Can I somehow gain access to the stageVideo api in flash?Would it work to create a swc in flashbuilder with stageVideo apis included, and then add it to flash professional?

View 1 Replies

CS3 Cannot Import Illustrator-created Image To Flash

May 5, 2009

i cant import the image without losing a huge amount of quality. a friend made this image using Illustrator, and i am trying to incorporate it into a Flash banner.i have numerous images already being used in my Flash movie banner, and all of them have been very easily imported, resized, and animated. here is the image im attempting to use.the Flash banner is am working with can be found at the top of the page at this address.URL..
ive tried to import it to my movie as a GIF, JPG, PNG, BMP, after using Fireworks to successfully edit the image without losing any quality. but as soon as i C&P it or import it directly to the Flash stage or library, the quality goes right out the window.

View 2 Replies

ActionScript 3.0 :: SWCs Created In Flash Not Working

Mar 1, 2010

I cannot seem to accomplish what I thought would be a trivial task. I installed the SWC commands extension for CS3/CS4 and I am using it exactly as prescribed to create SWC files. When I point to them through the 'build path' prefs UI of my Flex project, one of two things happens:

1. If I created the SWC in CS4, Flex immediately crashes when it reads the file. When I re-open Flex it either crashes immediately or does so when I switch to design view and try to have access to the components panel where the new SWC should appear.

2. If I created the SWC in CS3, I perform the steps in Flex, and it seems like everything is OK, but the new component simply doesn't appear in the components panel at all. Flex behaves normally otherwise.

I can import third-party SWCs just fine in Flex otherwise.

Does anyone know what may be going on? I've even dumbed down my SWC to just a single movieclip containing a fill instead of something containing Actionscript, and it still behaves the same way.

View 13 Replies

ActionScript 3.0 :: How To Get XML Data Created By PHP In Flash File

May 1, 2009

How to get xml data created by php in flash file (Action script 3).....?

View 4 Replies

ActionScript 3.0 :: Created A Button Which Fullscreen The Flash?

Jun 2, 2009

I have created a button which fullscreen the flash, but the trouble is that after doing full screen, i am not able to enter text in textbox, means there is no cursor at full screen.

View 2 Replies

Flash :: Action Created In (.fla) The Same When Published In .swf Or .html?

Oct 12, 2009

I created a complex fixed line and a bird flying on the line using tweens from point A to B to C.  When I view the birdline in play or by scrubbing across them in the layers mode, the bird follows the line just as designed.  When I test the birdline in "test Scene" or "test movie" one bird flies from point A to C, then another bird appears at point B and flies the course to point C.  The published .swf and .html do the same as the test functions.  What can I do to get the published version to behave the same as the design?

View 9 Replies

Flash :: Format Links In TLF Text Created Using CS5 GUI?

Jul 1, 2010

Is it possible to use AS3 to control the appearance of links in TLF text created using the Flash CS5 GUI? Can anyone provide an example? I have tried several meant for TLF text fields created via AS that have no effect on those already on stage.

View 2 Replies

Professional :: Scope Of Class Created In Flash?

Sep 14, 2010

What is the scope of a class created in Flash? If you create a class on the main timeline, can you use it anywhere in your project? If you use your class in a a movieclip, can you use that class outside of the movie clip?

View 3 Replies

Professional :: SWF Created In CS4 Flash Does Not Play From Web Server

Oct 3, 2010

I published a Flash movie in CS4, which includes the following ActionScript 3.0 code to allow people to click the movie to open a new web page; but it will not play from the web server...however, it plays just fine from my local hard drive in Firefox and IE 7.It  is an html file with an embedded .swf and I made sure to copy over the  swfObject.js, AC_ActvieX.js, AC_RunActiveContent.js, expressInstall.swf, and  swfobject_modified.js files to the correct directories. The address is: [URL] and as you will see,  there are no errors...just a blank page.  I even tried changing the script  from:
 
<script  type="text/javascript"><!--swfobject.registerObject("FlashID");//--></script>
 
to  this script:  <script type="text/javascript"  src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>, but using this script generates a lot of CSS and other errors.
 
Nothing  works.  The ActionScript code I used is:
 
//Link to websiteSite_btn.addEventListener(MouseEvent.CLICK,visitSite);
function visitSite(e:MouseEvent):void{    var req:URLRequest = new URLRequest("http://giseldemarco.com/Home/Index.html");    navigateToURL(req,"_parent");}

View 1 Replies

Professional :: Check Who A Flash CS4 File Has Been Created By

Jun 7, 2011

I urgently need to be able to check the authenticity of a Flash CS4 file. There is no information given about author etc in the properties using Windows but I was hoping that Flash embeds author information and history.

View 1 Replies

Flash :: Get Am Instance Name Of A Dynamically Created MovieClip Or Name?

Dec 4, 2009

For AS 3

I have a class which crate a panel with close button. and i create an instance of this class like this

function _smallThumbClick(evt:MouseEvent):void {
var _popup:Popup=new Popup( square.width ,evt.currentTarget.y, evt.currentTarget);
addChild(_popup);
}

and this mouse event from the thumbnail(suppose), so if i click on the thumb it will create popup. so i want to close all other or previously opened pop window.

How do u get the popup class object to close from another class..

or is there any alternate method for detect instance of the movieclip or class..

View 1 Replies

Flex :: Use TweenMax With Filters Created In Flash IDE?

Dec 16, 2010

Is there a way to get TweenMax to tween the filters of an DisplayObject where The filters are added in the Flash IDE.

I want to Tween between two states and it would be nice if I could do it without creating the two states with bitmaps and tween between them. One state with the filters and one without the filters. [code]...

View 1 Replies

Flash :: Edit Visually Created Class In AS3?

Jul 30, 2011

I have some class that I created visually in Flash Professional CS5 by transferring drawn result into a MovieClip and extorting symbol into AS code. Now, I want to add some properties to the class. To be more specific, I've created Ball class and want to add to it variables that will represent vertical and horizontal speeds. How can I edit the class in order to do it? Also, when I wanted to add some visible external element to the class, at first I decided to add MovieClip property in the code itself, but then recalled method .addChild() that worked perfectly for me. Now, I can't do the same with non-visible properties. So, what is the difference between adding visible elements using .addChild() and adding them in the code itself?

View 3 Replies







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