Flash :: Rendering A "sprite" In Away3D (molehill)?

Sep 2, 2011

Turns out, that I need to be able to render something similar to sprites, but having all of the goodness from Molehill.Im new to Away3D and Molehill, and I was wondering how hard (if possible) would be to render a sprite (plain I guess) using Away3D, emulating somehow what Flash does with sprites, bitmaps, and the like

View 1 Replies


Similar Posts:


ActionScript 3 :: Rendering Text - Adding Label Above Each Sprite

Feb 4, 2011

I'm having a bit of confusion about how to render text in a pure AS3 project. There are classes like flash.text.StaticText but these are designer-only, you can't create them in code. I was half-expecting the Graphics class to have text-rendering options but alas, no. Specifically I was going to add a label above each player's sprite with their name, health %, etc. So I expected to add a child text-element or draw text using Graphics in some way... it's read-only and should not support user-input, I just want to draw text on-screen.

View 1 Replies

ActionScript 3.0 :: Flash 3D API (Molehill)

Mar 14, 2011

[URL]

1920x1080 @ 60fps == Really exciting stuff!

More sweet demos here:

[URL]

This is all runnig in the Flash Player and uses OpenGL on OS/X and Linux, and DirectX on Windows.

View 4 Replies

Flash :: Download Molehill API / Library?

Mar 22, 2011

Where can I download the Molehill API / library from and what else do I need to get it running?

View 2 Replies

Flash :: Backface Culling With Molehill

Oct 2, 2011

Using Flash 11 RC1 with the new Molehill API, I would like to enable backface culling. The beta documentation is pretty vague, but the example implies Molehill wants front-facing triangles to wind counter-clockwise, which is pretty normal. But when my polygons wind counter-clockwise, I get the exact opposite behavior - in other words, it's as if contrary to its own examples Molehill expects front-facing triangles to wind clockwise. Since the documentation never explicitly states which winding is correct, I am stumped.

I don't want to just flip all my triangles around until it looks right before I am 100% on what Molehill actually wants, since that has a fair chance of hiding a fundamental misunderstanding. I am using simple perspective projection (a note regarding .transpose() below: because copyRawDataFrom expects data in column-major order, and I hated the way that looked in code, I decided to just enter it row-major and transpose the matrix afterwards

[Code]....

View 1 Replies

Flash :: Morphing In MoleHill Using A Vertex Shader?

Feb 5, 2012

Using the Molehill with Flash I wish to create a vertiex shader, to have one mesh transform into another, I have seen that it is possible with Flare, However I am unsure if that was using Stage3D, Can anyone give me any pointers in the use of shaders in AGAL as to how this might be done.

View 2 Replies

Flash :: Away3d Remove From Memory?

Mar 1, 2010

I am building a website which loads some collada objects for each area. But I couldn't manage to clean the memory. It seems impossible to kill the objects.

I've found some samples implementing destroy() methods for away3d internal classes, but they're not working as well.

View 2 Replies

Flash :: Cannot Apply Material To A *.obj In Away3d?

Aug 10, 2010

I cannot apply a texture to an object, I don't know why.( AS3 blender export script and Collada Import is not working for me either )

var loader:Loader3D = new Loader3D();
loader.addEventListener( Loader3DEvent.LOAD_SUCCESS,
handler_loadSuccess );
var parser:Obj = new Obj();
loader.loadGeometry( "assets/objects/Test.obj", parser );

[Code]...

View 1 Replies

Flash :: How To Get The Top Level Child In Away3D

May 16, 2011

i have a small question concerning away3D. I have some cubes with the exact same dimensions that are positioned in the same place. When i click on the stack of cubes, i want to register a click on the cube i added last. Instead of doing this, the click is registered on the cube i added first.

I have found a way to alter the cubes position in the container and have tried putting the element at the end (code below) and start of the childrenArray, but nothing seems to work. I am kinda really stuck here, so if anyone knows how to get the top level element when clicking on the stack, i'd be happy to hear.

[Code]...

View 1 Replies

Flash :: Nothing Happens When Try To Render A Cube Using Away3D?

Aug 11, 2011

when I try to render a cube using Away3D + Molehill, I only get a white default screen, I followed the instructions here: hhe only thing I did not do, was the part that talks about the patch, cuz If I do that I get errors like when I try to import the Sprite class, for example.Im using FB 4.5.!

This is my code:
package
{

[code].....

View 1 Replies

Away3D Vs Sandy 3D And Other Flash 3D Engines For Mobile?

Jun 25, 2010

What are the pros and cons of various Flash 3D engines with regards to performance on mobile devices? Which do you prefer -- which have you tried (examples of apps developed) implementing on mobile devices?

View 1 Replies

ActionScript 3.0 :: Flash CS5.5 / Away3D - Texture Could Not Be Found

Dec 13, 2011

I've been trying to test out Away3D engine on Flash CS5.5, and I've been getting lots of errors. I have downloaded playerglobal.swc and placed it, edited player xml file and configured it for flash to use FP11. In Flash, I have chosen Flash player 11 to be used. But when I try to create a new View3D object:
var view:View3D=new View3D();
I get an output error (not a compiler error) of:
VerifyError: Error #1014: Class flash.display3D.textures::Texture could not be found.

View 1 Replies

Flash :: Port Away3d Scene With Animation Into PV3d?

Jul 25, 2010

How to port Away3d scene with animation into PV3d? Are there any tutorials on how to do that?

View 1 Replies

Flash :: Away3d To Render A Surface From Given Array Of 3d Points?

Dec 14, 2010

So I have some 3d points generator that gives points like

{1,1,1}
{1,2,3}
{1,3,3}

[code].....

View 1 Replies

Flash - Where To Get Comparing List Of Papervision3d Versus Away3d

Dec 18, 2010

So I know that PV3d looks quite dead. But it is documented over the internet much better. So I decided to develope my product using old but good PV3d engine. Time goes on so I plan to port it sooner or later to Away3d. So I need a list of things that aere not in Away3d that I have in PV3d. And a list of generall use diffrencies (use of cameras, viewports, etc). So where to get comparing list of papervision3d vs Away3d?

View 1 Replies

Flash :: Away3d WireframeMaterial: Setting The Wire's Width?

Feb 26, 2011

I am having a difficult time setting the width of a WireframeMaterial. Things were working well until I upgraded to from 2.5 to 3.6

I am doing: var mat = WireframeMaterial(0xff0000, {width:4, alpha:alphaValue});

but that's not working at all the width is still set to 1

View 1 Replies

Flash :: Apply Bend On A Cube Using DMod And Away3D?

May 10, 2011

I am having some problems with the away3D library. I want to apply a bend to a cube using AS3DMod, but i can't seem to get it working. My cubes kind of get mutilated when i want to bend them :p they bend to all directions and i can't seem to find a pattern in the bending.

[Code]...

View 1 Replies

Flash :: Clipping Due To Segmentation In Plane Primitive In Away3d

Nov 28, 2011

I have a Plane and I try tweening a MovieClipSprite on it. I run into trouble when I try to tween near the points where both segment triangles meet (I have kept both segments as 1), While moving near these points the Sprite disappears. I can tell it goes beneath the Plane because when it reappears it does so gradually and I can see it's lower half appearing as it moves away from these points. Increasing the segments obviously deteriorates the performance further as this begins to happen at other points as well. I am pasting some relevant code var planeMaterial:BitmapMaterial = new BitmapMaterial(texture.bitmapData, {smooth: true, precision: 4});

[Code]....

View 1 Replies

Flash: `sprite.visible = False` Doesn't Hide Sprite Immediately?

Apr 4, 2011

I've got a sprite which I want to temporarily hide... But changing the .visible property doesn't do what I expect. The code looks roughly like this:

[Code]...

View 1 Replies

Flash :: Rotating Sprite Moves The Sprite From It's Original Location

Jul 6, 2011

I'm doing a simple rotation on a sprite but there's a weird behavior where the sprite does not rotate around it's top left. I think I'm rotating along the top left of the test class instead of the sprite child. I would like to rotate the rectangle around it's top left corner (kinda like a clock hand). The code is pretty short so I'll let the code + pictures explain my problem:

package
{
import flash.display.Sprite;

[Code]....

I've read a lot of stuff about rotating around a fixed point, I've tried doing it with movieclips instead of sprites, I even copy pasted a tutorial on rotation and nothing works.

View 3 Replies

Actionscript 3 :: Get Working Engine For Molehill 2D?

Nov 2, 2011

Where can I get working engine for Molehill 2D?I checked ND2D and M2D and none of them work on Flash Player 11.Not even the Demos.

View 2 Replies

ActionScript 3.0 :: Load A Molehill MovieClip With A Loader?

Mar 9, 2012

Flash has bacome a complete stranger to me since I last used it 11 years ago.[code]...

If that Main.swf is some "normal" swf I made, everything is ok. But when it is the Main.swf from here[url]...

View 8 Replies

Actionscript 3 :: Draw A Line With Adobe Molehill?

Mar 28, 2011

how can i draw a line with adobe molehill. If i was using opengl i would use GL_LINES, but i seems molehill can only draw triangles.

View 2 Replies

ActionScript 3.0 :: Molehill : VertexBuffer3D's Vector From CopyPixels?

Mar 18, 2011

I am working on my own Molehill 2D painting classes. I took a look at Ely Greenfield's M2D stuff but I found it a tad overkill for what I am looking for. So I want to do my own. I have been working off of Polygonal's example. You can check out my code here - http:[url]..........Assume I want to paint one entity that is a rectangular bitmap image using two triangles (essentially a quad). Basically I am having a hard time understanding how to translate this:

Code:
bitmapData.copyPixels( sourceBitmapData, sourceRectangle, destinationPt.. );
to this (assuming I am using a x, y, u, v vector pairing):[code]...

Specifically if the source rectangle doesn't contain the same values of the sourceBitmapData.rect. What if I want to paint only a portion of a bitmap onto a quad? Or stretch a portion of the image across a quad.

View 1 Replies

ActionScript 3.0 :: Write A Phong Shader For Molehill Project?

May 2, 2011

I've been struggling to write a Phong shader for my Molehill project. The problem is that the light seems to shift or move when the camera rotates. So I've been investigating what could possibly be wrong, by basically comparing my shader with the Phong shader written in GLSL. There's one thing I found that is kind of weird. In GLSL the output position in the vertex shader is ModelViewProjectionMatrix * Vertex, ok that is just fine.

HOWEVER, in Molehill the ModelViewProjectionMatrix has to be transposed so that it will render the vertex correctly to the screen. In GLSL that is not necessary.

How did I find that out? I created the Matrix3D modelViewProjection, I applied the ModelView to that matrix and then the Projection matrix. I tried to give the vertex shader that matrix and it displayed nothing until I transposed the modelViewProjection.

In GLSL this is not necessary, I could just say output.position = projection * modelview * vertex and it would be displayed correctly, I don't need to do transpose(projection * modelview * vertex).

So.. I'm wondering if there's something that I am not seeing here or is this a special part of Molehill that we just have to follow? Or could it be a bug in Molehill? I will create a new post tonight with my Phong shader and hope that someone sees what I may be doing wrong. But this is confusing me a lot at the moment and would like to know why the matrix has to be transposed.

View 1 Replies

Get 3D Coords On Some Plane For 2D Mouse Coords In Flash With Away3D?

Aug 1, 2011

Waht is the right way to get 3D coords from 2D mouse coords using Away3D. (version 3.6.0) It's ambigoius problem in general, so there is restriction that 3D point belongs to some fixed plane.

There are some examples with camera.unproject and plane.getIntersectionLineNumbers methods, but they don't work if camera is rotated or plane is not trivial.

View 1 Replies

Rendering Flash In The Server?

Oct 26, 2009

I am trying to find a way to render a Flash object, more specifically a Open Flash Chart, in the server, and save a screenshot of it to a temp file to embed it in on a PDF report.

I've found some solutions that use Javascript to generate a temp file in the browser, and then send it to the server (like here). However I need to generate reports automatically and send them as e-mail attachments, so I cannot render it using a browser.

View 1 Replies

Rendering Div Contents In A Flash Movie?

Jul 2, 2009

I have a webpage containing 2 DIV containers hidden using CSS. The site has a Flash Movie embedded. I want to render the content of these hidden DIV containers from within the Flash movie.I'm using CS4?  
 
HTML
<div id="sectionone">content</div>
<div id="sectiontwo">content</div>
  
CSS
hide sectionone div and sectiontwo div
 
FLASH
Display sectionone within flash movie when requested

View 2 Replies

Php :: Rendering Fonts From Flash To Image?

Oct 25, 2010

I am trying to render an image with text and images that are on a .swf file. What i am doing is saving all the objects and their properties in an XML and then using imagemagick to render all that. the problem i am facing is that imagemagick treats fonts very different than Flash, so i don't get a perfect copy of what i see in the flash to what i see on the rendered image.

how to match font sizes between flash an imagemagick?

View 1 Replies

ActionScript 3 :: Stop Rendering In Flash

Apr 15, 2011

Here's my problem: I have a few display objects that are modified by a loop, and I would like flash to render exactly one frame at the end of each loop. Duration of a loop may vary unpredictably, thus a constant frame-rate won't do it.

I found a hack-ish way to render one frame at the end of each loop, using updateAfterEvent with a 0ms timer. Now I want to prevent Flash from rendering frames in the middle of the loop: this is a waste of time and ressources, and produces strange blinking effects. Setting the frame rate to 0 would be an easy solution, but stage.frameRate has a minimum value of 0.01.

Question 1: Is there a way to properly stop the standard rendering loop? A workaround will not be regarded as a valid answer, because what I'm currently doing is a pretty good workaround (1 frame every 100 seconds is bearable). Question 2: Is there a better way than updateAfterEvent to force rendering?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved