Stage3D is an API in Adobe Flash which allows developers to create hardware accelerated graphics.
Questions tagged [stage3d]
196 questions
2
votes
1 answer
Using Stage 3D inside a Direct3D or OpenGL application
Before there was Stage 3D, I could simply capture the output of flash rendering engine with an in-place site and use it as a texture. But now, there is the Stage 3D which seems can't be rendered windowless...
Is there a way to capture the output of…

BlueWanderer
- 2,671
- 2
- 21
- 36
2
votes
2 answers
While coding in low-level AGAL, do you need to create a new Program3D per Textures?
For example...
If I'm developing an application that requires more than one texture in it (unique sprites, basically), do I need to call context3D.createProgram(); and assemble a new Program3D (with a VertexShaderAssembler and a…

chamberlainpi
- 4,854
- 8
- 32
- 63
2
votes
1 answer
What's the low-level code required to render a texture (BitmapData) to a Stage3D in 2D space?
I've looked at the following website for some information on writing AGAL to render Textures / Bitmaps to the Stage3D object:
http://iflash3d.com/shaders/my-name-is-agal-i-come-from-adobe-1/
But it seems to cover more about how to create objects in…

chamberlainpi
- 4,854
- 8
- 32
- 63
2
votes
1 answer
Memory allocation issue in Haxe using Enum as Map key type
I follow a 2D GPU library and saw an issue someone was having with memory allocation. An Array

dinorider
- 191
- 10
2
votes
1 answer
AS3/AIR Mobile Click and/or touchevents on moving objects
few weeks ago i asked a question about a similair issue, but within the Starling Framework (Starling TouchEvent on Sprite)
Now, i am working on another mobile app/game with Away3d. I seem to have the same problem touching/tapping a moving sphere or…

Marijn
- 800
- 7
- 14
2
votes
1 answer
AGAL: Calculating screen space position in fragment shader
Before I define my problem in more detail, I think I should begin by explaining how I've set everything up.
Basically I have a simple plane mesh, defined as such (x, y, z, u, v):
_vertices = Vector.([
-1, -1, 0, 0, 0,
1, -1, 0, 1,…

stalem
- 219
- 1
- 13
2
votes
3 answers
Away3D 4.1 performance issues - how to optimise a scene with many identical meshes?
I have created a simple test using Away3D 4.1 (2500 cubes) but performance is a lot lower than i expected - only 10 FPS.
I assume i am making a noob mistake (being a noob and all) so here are relevant pieces of code:
Lighting:
var…
user1901867
2
votes
1 answer
Adding glows to Stage3D objects
I'm making a Stage3D space game: www.sugarspook.com/darkmatters/demo.html,
and I'd like to add 'glows' to some objects.
Is there a way to do this solely in the AGAL shaders, or do I need to pre-render the glowing objects and 'blur' them?

moosefetcher
- 1,841
- 2
- 23
- 39
2
votes
2 answers
Can I Keep Stage3D From Writing Into the Z-Buffer?
I want to render concealed objects and achieve a similar effect as the one shown in the link in Stage3D.
Silhouette Effect in Torchlight 2
I already know how to do this theoretically. I have to draw the object twice:
Once with normal settings…

Max Did It
- 23
- 2
2
votes
1 answer
RangeError: Error #3609: Stream 0 does not have enough vertices
I am developing a rotating cube in 3D using stage3D.
I can see the result perfectly in Firefox but in Chrome I cannot se nothing. When I set:
context.enableErrorChecking = true;
I receive this callback from the browser
RangeError: Error #3609:…

Mc-
- 3,968
- 10
- 38
- 61
2
votes
1 answer
AS3 Softbody texture starling
I have created a soft body circle in nape. And now I'm trying to get it texturized. But I'm having trouble, and I can't find the answer. Thats why I'm turning to you guys.
Im trying to do what he is doing in this objective c…

Michell Morsø
- 45
- 9
2
votes
2 answers
How do I pass barycentric coordinates to an AGAL shader? (AGAL wireframe shader)
I would like to create a wire frame effect using a shader program written in AGAL for Stage3D.
I have been Googling and I understand that I can determine how close a pixel is to the edge of a triangle using barycentric coordinates (BC) passed into…

JimmyDeemo
- 313
- 1
- 15
2
votes
3 answers
Can Stage3D draw objects behind all others, irrespective of actual distance?
I am making a 3D space game in Stage3D and would like a field of stars drawn behind ALL other objects. I think the problem I'm encountering is that the distances involved are very high. If I have the stars genuinely much farther than other objects I…

moosefetcher
- 1,841
- 2
- 23
- 39
2
votes
2 answers
Loading of ATF textures in Flash 11.3 works, but has high memory usage
I'm aware that this is not entirely officially supported at the moment, but I'm trying to generate an ATF texture using the open source project ATF-Encoder. I'm then trying to upload it to a Stage3D Texture with uploadCompressedTextureFromByteArray,…

Rodrigo Monteiro
- 390
- 1
- 10
2
votes
2 answers
Away3D Broomstick (4), how to fade out model
I have a complex model consisting of different meshes and different materials. What's the easiest way to fade out (slowly make transparent) the whole model over time?

Mat
- 4,281
- 9
- 44
- 66