Questions tagged [stage3d]

Stage3D is an API in Adobe Flash which allows developers to create hardware accelerated graphics.

196 questions
1
vote
1 answer

AS3 Stage3D Fragment Shader?

Can someone tell me whats the difference between these 2 fragment shaders: // Adobe's GPUSprite Fragment Shader "tex ft0, v0, fs0 <2d,clamp,linear,mipnearest> \n" + "mul ft0, ft0, v0.zzzz\n" + // multiply with alpha?? "mov oc, ft0 \n" // Node2D…
Martin K
  • 765
  • 1
  • 6
  • 15
1
vote
1 answer

AS3 Stage3D: how to render all triangles with an overall alpha?

I am working on a 2D AS3 project, where the different layers are rendered via Stage3D, in a single drawTriangles() call, as a single mesh. (if you are familiar with the BunnyMark GPUSprite mini render engine, that will give you an idea:…
Martin K
  • 765
  • 1
  • 6
  • 15
1
vote
1 answer

Starling Framework - loading external swf / sharing context

I have project which includes main menu and several levels (pages), all based on Starling Framework. I want to separate pages from the main application to keep logic, views and effects in external swfs. Example: App Menu where user may choose…
1
vote
2 answers

Pixel Bender vs Stage3D, Stage Video and Starling

Does Pixel Bender (2D) combine with Stage3D? Namely: Does Pixel Bender work on top of Stage Video (GPU accelerated video)? Does Pixel Bender work on top of Starling viewport? Thanks
daniel.sedlacek
  • 8,129
  • 9
  • 46
  • 77
1
vote
2 answers

How to draw a line on a bitmap in Stage3D using Agal?

How can I draw a line on a bitmap in Stage3D using Agal? Can someone provide a code example?
Howard
  • 3,648
  • 13
  • 58
  • 86
1
vote
1 answer

can not set flash.geom.Matrix3D rawData

consider the following code: var t:Matrix3D = new Matrix3D( new Vector.([1,0,0,0,0,1,0,0,0,0,1,0,10,10,0,1]) ); trace(t.rawData[12]); the trace command will print "0" for me, and it is visible with debugger that rawData contains an…
antonfrv
  • 178
  • 7
1
vote
2 answers

How to prevent user from turning a car around against traffic in 3D game

I'm making a 3D game in flash using Flare3D and I have a track that consists of long straight sections and short curving sections of track. The player is free to steer their car, but I need to be able to prevent them from making a U-turn and driving…
Plastic Sturgeon
  • 12,527
  • 4
  • 33
  • 47
1
vote
2 answers

Minimum IOS version for Adobe Air App

I am writing an app for IOS using Adobe Air 3.2 using the new stage 3D feature. What is the minimum version of IOS that I can target? Also in order to target the new Ipad 3 it seems that you need to instruct the compiler to reference IOS 5.1. Will…
Luis
  • 5,979
  • 2
  • 31
  • 51
0
votes
0 answers

Stage3D for game - devices available

i've just started developing a tower defense game with AS3 - and it seems that: an isometric engine will be necessary plenty of different models with lots of animations will be present on the screen at the same time, thus, the popular blitting…
0
votes
3 answers

Scaleform vs Stage3d

I am curious as to whether there will be a need for Scaleform (in it's current form) in the future considering that now Flash has both the Stage3D and native support for the Unreal Engine (I mean, at least towards Unreal Engine games). I'm asking…
Spectraljump
  • 4,189
  • 10
  • 40
  • 55
0
votes
1 answer

Can we have more than 4 stage3Ds in flash?

I can't seem to find a way to get more than the initial set of 4 stage3Ds provided by flash. I have tried instantiating a new one using it's constructor and then adding it to the stage by simply pushing it to the list stage.stage3Ds.push(new…
Godfather
  • 1,089
  • 9
  • 21
0
votes
1 answer

How to write to an IndexBuffer3D with uploadFromByteArray(...)

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…
chamberlainpi
  • 4,854
  • 8
  • 32
  • 63
0
votes
1 answer

Can Adobe AIR for desktop run a Stage 3D project?

I am curious that if Flash Plahyer 11+ has ability to provide Stage 3D feature for web browser. How about Adobe AIR 3.1? Does it support Stage 3D for building 3D game for desktop platform too?
Teerasej
  • 1,486
  • 4
  • 21
  • 31
0
votes
1 answer

Should a new VertexBuffer3D & IndexBuffer3D be created for each Program3D used?

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…
chamberlainpi
  • 4,854
  • 8
  • 32
  • 63
0
votes
1 answer

Can constants (vertex or fragment) be reset / nullified in Context3D?

If I make multiple draw calls for various Program3D instances, is there a way that I can reset or nullify the constants if I'm no longer using them in the next following Program3D assignment? Is it even necessary that I do something like…
chamberlainpi
  • 4,854
  • 8
  • 32
  • 63