Questions tagged [stage3d]

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

196 questions
1
vote
0 answers

Hiding / clearing Stage3D on iOS hides 2D screen content - how can I get it to render 2D again?

After using and then switching back from Stage3D, is there a way to require AIR on iOS to recognize that the 2D stage is not empty and start displaying 2D again? My team's app has run well on Android and the ADL emulator, but on iOS (iPad 12.1.4…
s1972
  • 59
  • 8
1
vote
0 answers

How to use Matrix3D.appendTranslation()?

With stage 3d I set up a basic triangle, and I can use append rotation and append scale and everything works, but using append translation on the z axis, the triangle will dissapear with the translation being 1 or higher. With other shapes it would…
mellow m
  • 39
  • 6
1
vote
1 answer

Stage3D iOS Antialiasing on AIR 24

With AIR 24 release we are able to set anti aliasing on Stage3D now, but there are some issues with it. Can anybody help how to use it in right way without changing entire project code ? The issue I have is that anti alias works great, and no more…
1
vote
1 answer

Videotextures doesn't play mp4 in starling 1.7 / Air 18 on iOS

I've tried this code to play a video on my iphone with starling 1.7: var nc:NetConnection = new NetConnection(); nc.connect(null); var file:File = File.applicationDirectory.resolvePath("video.mp4"); var ns:NetStream = new…
P.O.W.
  • 1,895
  • 1
  • 16
  • 14
1
vote
1 answer

Why is a Texture in Stage3D limited to 2048 × 2048?

The biggest Texture you can create in Starling, which uses the Stage3D API, is limited to a maximum size of 2048 × 2048. Why is there such a size limit? I've read somewhere that a texture of this size should only consume ~16-17 MB of memory, which…
dayuloli
  • 16,205
  • 16
  • 71
  • 126
1
vote
0 answers

How to draw a single-pixel width line in Stage3D

I'm working on a 3D game set in space. I'm currently adding orbit-lines of the planets. Ideally I'd like to draw the orbit lines at 1 pixel width, irrespective of the line's distance from the camera. Does anyone know of the way to do that? Currently…
moosefetcher
  • 1,841
  • 2
  • 23
  • 39
1
vote
2 answers

Rotation without distortion using Matrix3D

How to assign a value to Matrix3D rotation about the axis Z. (li "rotation")? The position and size are calculated correctly, but after the addition of rotation, the image is stretched. I tried two method to rotation: _positionMatrix.identity(); var…
Cyclopoper
  • 19
  • 5
1
vote
1 answer

Render to texture not functioning

I'm trying to test Stage3D's setRenderToTexture function, but my test code is not providing any output. I was hoping someone could tell me why - I've tried practically everything to get this working. The code I've created is below: import…
Conduit
  • 2,675
  • 1
  • 26
  • 39
1
vote
1 answer

Stage3D, AGAL - vertices' and textures' coordinate systems

I've been trying to work with more complicated shaders, and have run into issues with the coordinate systems used by the vertex shader and texture sampler. In short: they don't seem to make any sense, and when trying to test them I end up getting…
Conduit
  • 2,675
  • 1
  • 26
  • 39
1
vote
1 answer

AGAL: m44 instead of Matrix3D.append()

How to move such computation: var a : Matrix3D = ... var b : Matrix3D = ... a.append( b ); within shader? My current approach: setProgramConstantsFromMatrix( VERTEX, 0, a, true ); setProgramConstantsFromMatrix( VERTEX, 4, b, true ); "mov vt0,…
Slaus
  • 2,086
  • 4
  • 26
  • 41
1
vote
1 answer

More detailed texture on a 'near sphere'

As far as I'm aware, the upper resolution limit for textures in Stage3D is 2048 x 2048 pixels. This causes a problem for the planets in a space game I'm developing; when the 'camera' gets to a certain distance, individual pixels are clearly visible.…
moosefetcher
  • 1,841
  • 2
  • 23
  • 39
1
vote
1 answer

Stage3D: is it still required to clear a target buffer before drawing to it

I read at several places (for example in the starling source code https://github.com/PrimaryFeather/Starling-Framework/blob/master/starling/src/starling/textures/RenderTexture.as) that it is required in stage3D to clear a Texture (or backbuffer)…
matthias_buehlmann
  • 4,641
  • 6
  • 34
  • 76
1
vote
2 answers

How to share "Starling" game in a facebook feed

I want to share a part of the game that I made on facebook like it can be done in Angrybirds. but the problem is that the game was written in starling and I am getting this error "application is not correctly embeded" and my question are can I use…
Shvilam
  • 236
  • 4
  • 11
  • 27
1
vote
1 answer

what's the agal tex syntax?

Here is the syntax I've read tex t a b - Samples the texture in b (which should be one of the fs registers) at the coordinates in a, putting the resulting colour in t. but In some opensource project code I found someone wrote tex like this: tex…
davyzhang
  • 2,419
  • 3
  • 26
  • 34
1
vote
2 answers

texture rotation didn't go right

i was trying to build a 2d sprite class that working in stage3d,the scale and translation was ok, but rotation is not right.when i use matrix3d to append a rotation,like these one. var m:Matrix3D = new Matrix3D(); …
user2003548
  • 4,287
  • 5
  • 24
  • 32