stage3d

Getting started with stage3d in Flash CS5, and which framework to choose?

匆匆过客 提交于 2020-01-01 19:31:10
问题 I have been off the stage 3d bandwagon and flash programming altogether this year, but I want to catch up on things and I need some tips. Here's what I know: FP11 features the low level GPU stage3d API, codenamed Molehill. There are a few frameworks out there which help you access all the stage3d features more easily. (I know of Flare3D and Alternativa3D). Which framework is best to start out with? (not just out of the mentioned 2) The rather few tutorials from Flare3D and Alternativa3D say

Simple flat shading using Stage3D/AGAL

我只是一个虾纸丫 提交于 2019-12-23 01:38:29
问题 I'm relatively new to 3D development and am currently using Actionscript, Stage3D and AGAL to learn. I'm trying to create a scene with a simple procedural mesh that is flat shaded. However, I'm stuck on exactly how I should be passing surface normals to the shader for the lighting. I would really like to just use a single surface normal for each triangle and do flat, even shading for each. I know it's easy to achieve better looking lighting with normals for each vertex, but this is the look I

How do you combine X, Y, and Z rotations in a model's local space (not global)?

房东的猫 提交于 2019-12-22 04:18:05
问题 I am starting out on Molehill and am having a lot of problems grasping Matrix3D. My first problem is how to manage a Matrix3D that describes a single model's orientation. I use Matrix3D.appendRotation() to do this. But depending on the order I append in I get a different result (obviously, since I am rotating one at a time in the global space). I know this is a common problem, I have run into it with 3d software modeling. But this time, I have to fix it programtically. This is where I need

Can the ENTER_FRAME event be missed or received delayed by the listener?

你离开我真会死。 提交于 2019-12-13 04:41:12
问题 Is ENTER_FRAME always received, even if another process occupies the CPU, OR the listener might miss one or more ENTER_FRAME events -then receive several of those events delayed in a batch as usually happens in Windows? (I'm using pure AS3 and Stage3D with 3D GPU rendering -no 2D display objects, Flash timeline, movieclips etc). 回答1: ENTER_FRAME depends on frame rate. And frame rate is not a constant - it depends on a lot of factors, few of which are CPU and GPU. The listener won't miss

AS3/AIR Mobile Click and/or touchevents on moving objects

孤街醉人 提交于 2019-12-12 18:06:58
问题 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 box. When the sphere is not moving, i can just tap it exactly at its position, but when it rotates, the click-event doesnt fire very accurate. this only happens on Mobile (tested on Android 4.2.2: Nexus7/Galaxy S2 and iOS: iPad2/iPad Retina)

depthAndStencil throws Error 103 in application XML

房东的猫 提交于 2019-12-12 02:56:44
问题 in trying to implement the answer to stage.stage3Ds is empty when debuging on Kindle Fire HD 8.9". I tried adding both renderMode and detailAndStencil to the application xml file but get this error when trying to debug to device. Error occurred while packaging the application: D:\Flash\Mobile Test\bin-debug\Main-app.xml(10): error 103: application.initialWindow.depthAndStencil is an unexpected element/attribute The initialWindow portion of application xml file is below <initialWindow>

How much of GPU RAM is used by Flash Stage3d?

做~自己de王妃 提交于 2019-12-12 02:16:07
问题 Does anyone know how to measure GPU memory usage when using Stage3D in Flash? I know there are System.*Memory counters, but I couldn't find GPU one. Any ideas? 回答1: You can use Adobe Scout, for now it's free. As far as I know, it's the best AS profiling tool at the moment. Regarding GPU, it displays memory, draw calls count, Stage3D instructions and their result for every single frame. You can even edit your shaders and watch the result in real time. Here is the guide. The only problem is

stage.stage3Ds is empty when debuging on Kindle Fire HD 8.9"

眉间皱痕 提交于 2019-12-11 05:30:10
问题 when i debug my program stage.stage3Ds is empty ( length 0 ) this gives me an error when i try to use it for programming. When I push a new Stage3D on to stage.stage3Ds and then use the requestContext3D() function, I never get the context3d_create event that allows me to move forward with program 回答1: In the Adobe AIR Application Descriptor XML file, set the following elements: <renderMode>direct</renderMode> <depthAndStencil>true</depthAndStencil> Render Mode Specifies whether to use

Loading of ATF textures in Flash 11.3 works, but has high memory usage

柔情痞子 提交于 2019-12-10 11:14:21
问题 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 , which is, itself, supported since FP11. This works in the sense that the texture is correctly uploaded and displayed. I can also verify that there are compression artifacts on the resulting texture, especially if I increase the quantization

Simple flat shading using Stage3D/AGAL

我的梦境 提交于 2019-12-08 03:49:28
I'm relatively new to 3D development and am currently using Actionscript, Stage3D and AGAL to learn. I'm trying to create a scene with a simple procedural mesh that is flat shaded. However, I'm stuck on exactly how I should be passing surface normals to the shader for the lighting. I would really like to just use a single surface normal for each triangle and do flat, even shading for each. I know it's easy to achieve better looking lighting with normals for each vertex, but this is the look I'm after. Since the shader normally processes every vertex, not every triangle, is it possible for me