Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8740091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:04:14+00:00 2026-06-13T11:04:14+00:00

I used to program maps in AS3 like you, but then I took a

  • 0

I used to program maps in AS3 like you, but then I took a Pixel Bender in the knee. Since then I have been using Pixel Bender to do parallel calculations on arrays. Can Stage3D be used for this?

Example of using Pixel Bender for calculation:

http://wonderfl.net/c/eFp0/

My goal is to get a vector of [x1, y1, x2, y,2 , . . ., xn, yn] and return a vector of [f(x1), f(y1), f(x2), f(y2), . . . ,f(xn), f(yn)]. More like f(x1, y1).x , f(x1,y1).y. I am sure you get the general idea.

What we normally call a map. Here is a thorough explaination.

http://en.wikipedia.org/wiki/Map_%28higher-order_function%29

I noticed that with Pixel Bender I can accomplish this with a speed boost of 10x. Is there any way to do the same thing with Stage3D.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:04:15+00:00Added an answer on June 13, 2026 at 11:04 am

    Unlike other languages such as c++, I’m not aware of a way to direct assembly instructions to the GPU beyond Program3D Shaders with Adobe Graphics Assembly Language.

    Program bytecode can be created using the Pixel Bender 3D offline
    tools. It can also be created dynamically. The AGALMiniAssembler class
    is a utility class that compiles AGAL assembly language programs to
    AGAL bytecode. The class is not part of the runtime. When you upload
    the shader programs, the bytecode is compiled into the native shader
    language for the current device (for example, OpenGL or Direct3D). The
    runtime validates the bytecode on upload.

    The programs run whenever the Context3D drawTriangles() method is
    invoked. The vertex program is executed once for each vertex in the
    list of triangles to be drawn. The fragment program is executed once
    for each pixel on a triangle surface.

    Not approaching the performance you are obtaining with Pixel Bender, it should be noted that you could leverage ActionScript Workers to parallelize your functors.

    A Worker object represents a worker, which is a virtual instance of
    the Flash runtime. Each Worker instance controls and provides access
    to the lifecycle and shared data of a single worker.

    This capability of simultaneously executing multiple sets of code
    instructions is known as concurrency.

    With Adobe Premium Features, Alchemy / FlasCC, XC APIs, Pixel Bender, and ActionScript Next on the way, it’s an exciting time for the rapidly progressing Flash platform.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used to program for iPhone. But then I want to make another similar
I have a PyQt program used to visualize some python objects. I would like
I have errors when I run program(1). But when I used program(2), writing 0
Under Windows, I have used a program called Dependency Walker to examine the libraries
I have a program that is used to create other program and compile it
I used SWIG to generate a Perl module for a C++ program. I have
Since C it's not a language I am used to program with, I don't
I have a client software program used to launch alarms through a central server.
I'm wondering if using generic types through out the program will have any (significant)degrading
The following program used the implementation of atomic locks from 'Cuda By Example', but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.