ActionScript 3.0 :: Mipmaps With 3D Textures (bitmap Fill)

Jan 28, 2010

I must say I'm a little puzzled by the mipmap functionality in the newer flash players.URL...Tinic describes the way that mipmaps work in flash player if the images are specific sizes (e.g. powers of 2 like 256x256 etc). The demo here URL... shows this working quite clearly and I have myself demonstrated that when using a simple bitmap object with smoothing set to true then scaling has a much better result when the images are the correct dimensions for mipmap capabilities.However I have not seen mipmaps work in 3D when using bitmapFill and drawTriangles. The bitmap quality seems to look crappy regardless of the bitmap size. Do mipmaps ever work in 3D with bitmap fill etc? This topic direct from Adobe seems to imply that it does URL...with the comment "Use bitmap sizes that are divisible by 4 or 8 for two-dimensional images (such as 640 x 128, which can be reduced as follows: 320 x 64 > 160 x 32 > 80 x 16 > 40 x 8 > 20 x 4 > 10 x 2 > 5 x 1) and 2^n for three-dimensional textures".However a few other sources such as this one implies that it doesnthttp:URL...with the comment "Mipmapping was introduced in Flash Player 9 but it doesn't work with 3D drawing and requires textures to be even in resolution. That is why we developed our own method of filtering."

View 1 Replies


Similar Posts:


ActionScript :: Fill A Rectangle With A Bitmap With It?

Mar 11, 2006

Anyone knows if it's possible to fill a rectangle with a bitmap with action script?

View 12 Replies

ActionScript 3.0 :: Bitmap Fill An Existing MC / Sprite?

Mar 2, 2011

What I want to do is draw the outline of an object using the IDE to create my movieclip symbol...this object will be an enclosed region e.g a cloud. I then want to be able to fill the internal area of the object with a bitmap using actionscript.

I had assumed that I would be able to do this via graphics.beginBitmapFill but there doesn't seem to be a way to specify to draw the outline within the MC or to do a floodfill with a bitmap using a point of origin within an enclosed region.

View 2 Replies

ActionScript 2.0 :: Linestyle Does Not Support Bitmap Fill

Mar 21, 2007

I am creating the line trough "lineStyle" method but I need that instead of color on the fill I want to use an image.something like the beginBitmapFill well I tried everything and could not fin a solution for that.even the " lineGradientStyle" does not supprt the bitmap fill...

View 2 Replies

ActionScript 3.0 :: Bitmap Fill + Drawing API = No Good?

Feb 9, 2010

I'm trying to use a bitmap fill, but I can't seem to get it to work.I'm using FlashDevelop with assets imported from CS4 - this isn't the problem, I can instantiate the asset I'm targeting perfectly fine, so I suspect that it's a problem with what I'm trying to do. Here's my code:

Code:
//get the bitmap data from a grass symbol
//grass symbol IS present - can be added to stage fine
var grassBMD:BitmapData = new BitmapData(155, 80);[code]....

Nothing gets displayed in the box, so I'm suspicious that I'm not allowed to use bitmap fill in non-primitive shapes.

View 6 Replies

ActionScript 2.0 :: Fill Movieclip With Bitmap/texture Using Code?

Feb 3, 2011

I am trying to create small flash application which would allow me to fill movieclip with different texures/bitmaps using actionscript. It should work something like this:Click herebut instead of fill with different colors movieclip should be filled with different bitmaps/textures. I have find tutorial for changing colors but not sure how to realize this to change textures.Perhaps there is some other solution beside using actionscript for which

View 2 Replies

Flash :: Adjust The Repeat Of A Bitmap Fill Via Actionscript?

Dec 11, 2011

On my stage I created a rectangle with a bitmap fill, such that there is exactly one repeat of the bitmap (the default). I then converted the rectangle to a Movieclip symbol, so that I could access it via actionscript. The problem: when I change the height of the rectanble via actionscript, the bitmap stretches to match. What I want is for the bitmap to maintain its repeat, such that if I double the height of the rectangle, I would see two vertical repeats of the bitmap (the way it would happen in html/CSS with background-repeat set to "repeat").

View 1 Replies

ActionScript 2.0 :: Color Bitmap Fill Question-FlashMX2004

Sep 11, 2005

I am using the following code for creating color areas (similiar to that of a user controlled coloring book):

[Code]...

Instead of using the RGB mode, I'd like to use Bitmap fills.

View 6 Replies

ActionScript 3.0 :: Fill A Irregular Movieclip With A Bitmap Pattern?

May 13, 2009

The subject pretty much sums it up; I have a bunch of movieclips on the stage, that are already filled with a bitmap pattern in the IDE. Now I need to fill them with another pattern once they are clicked, and I can�t seem to figure out how to do it.This is the closest yet, but i just get a recangle with the new pattern behind my selected mc. I realize that the rectangle comes from the drawRect method (duh) but I cant seem to find something the will allow me to fill the entire movieclip with the new pattern.in District.as

Code:
public function doSelect(){
_selectPattern = new SelectPattern(0,0); //class from my library

[code].....

View 5 Replies

ActionScript 3.0 :: Graphics Fill - Change From Color To Bitmap?

May 19, 2009

i have found a beautiful water effect made in as3. The effect is available to download on the website below.I am trying to change the fill of the water (that is blue or any color that you pick).The original code fills the water like this:

Code:
public function renderWater():void {
shape.grapics.clear();
shape.graphics.beginFill(0x006699);
shape.graphics.lineStyle(0, 0x000000, 0);

[code].....

I tried to follow the instructions on the beginBitmapFill help, but i am receiving the water with no fill.

[code]...

View 1 Replies

ActionScript / Flash :: Programmatically Bitmap-Fill IDE Drawn Vectors?

Mar 19, 2011

my current situation maybe akin to me painting myself into a corner. i have many vector shapes drawn with the Flash Professional CS5 IDE, which have been converted into sprite objects and exported to actionscript. for example, here are 3 shapes:

i want to programatically fill each shape with a bitmap from my library. i realize i can fill these shapes with library bitmaps in the IDE, but i need to scale the bitmaps at runtime as well as swap them out for others. how is it possible to programatically bitmap-fill shapes drawn within the IDE at runtime without having to also programatically redraw them?

View 1 Replies

ActionScript 3.0 :: Get Textures From A Single Picture?

May 24, 2011

I have a .png file with 16x16 tiles that I want to make into their own variables. I've tried using BitmapData like this[code]...

View 3 Replies

ActionScript 3.0 :: Loading Textures For .3ds Models?

May 25, 2011

I have a .3ds file for the model and a .dds file for the texture. I am able to load .3ds model by using the code:

Code:
var model:Max3DS = new Max3DS("model");
model.load("assets/model.3ds");

How should I load the texture from .dds file and apply it to .3ds model?

View 0 Replies

ActionScript 3.0 :: Making Textures With Noise Functions?

Apr 11, 2012

This question was posted in response to the following article: [URL]

View 2 Replies

Flash :: Textures Distortion In 3D To Render A Model

Nov 1, 2011

I am using Papervision3D Flash 3D engine to render a model. Also I am noob in 3D =D Model is simple, it's a parallelepiped with different textures on its sides. All works just fine except one thing: whenever I change my visual angle to a model from 90° textures on the sides are distorted. I notices that it is common effect in 3D graphics, I saw that effect in games and other 3D renderers (i.e. away3D, three.js) even wth different 3D models. Distorted texture on object (different view angle): Normal texture on object (same object and texture) (view angle == 90°): What is the reason of this effect?

View 1 Replies

ActionScript 3.0 :: Png2atf Tool For Compressing Textures?

Mar 27, 2012

is anybody here who have and would be willing to send me png2atf tool for compressing textures? It was part of the prerelease of Adobe about a year ago.

View 0 Replies

Actionscript 3.0 :: Creating PV3D Textures With A Loop

Apr 28, 2010

I'm trying to create multiple objects in Papervision using Flash Builder, each one with it's own texture that I'm getting from an imported SWC.My code works perfectly if I apply one texture to all shapes, but when I try to put it into a loop I can't seem to get it to work. I think this is more of a syntax problem, I'm just not sure how to tell Flex what I want.Here's a chunk of the code that works fine, applying an "img1" texture to everything: [code]Does that make sense? I want each iteration of the loop to add a number to the end of "img" and apply that to the shape.

View 8 Replies

Flash :: IDE - CS3 Fill A Color - It Shows Lock Fill

Oct 23, 2010

I am new to flash, trying to do some animation character. I have 2 queries

1. What is lock fill; whenever I am trying to fill a color, it shows lock fill....

2. If I am creating a non regular figure like say with pencil, if I draw some part of it & do other part by later; these will be assumed different objects & I am not able to fill the whole figure with a selected color.

View 2 Replies

ActionScript 2.0 :: Make A Quiz Where The User Identifies Textures In Images?

Sep 14, 2011

So basically I want to make a quiz where the user identifies textures in images. The first image is of a shell. So I want the user to be able to type in their answer into a input text field, then press a "check answer" button. Then if they typed in shell "Correct" will appear in a dynamic text field or "incorrect" if they had typed in any other answer.

with the action script required for this button, I am using action script 2 in flash cs4.

I found this code on the internet but it didn't work.

on (release) {
if (input_instance_name=="correct answer"){
display_instance_name.text="Correct!";
}

[Code].....

View 1 Replies

ActionScript 3.0 :: Fill Movieclip With "Fill" Once "Fill" Reaches 50%?

Mar 12, 2010

I have a scratch card. Basically I'm masking a movie clip with an empty shape. I can draw on that mask and thus my movieclip will become visible. I have also attached the fla.

Now what I would like to achieve is that when you fill a percentage of that mask, let's say 70%, I automatically fill the whole layer so that all of my movieclip becomes visible (as mask is fully filled).

View 2 Replies

Specifying Fill/No Fill For A Shape

Jul 13, 2009

1. I selected the Rectangle tool, and made sure Object Drawing Mode was not selected.

2. I picked colors for stroke and fill, and drew a rectangle.

3. I clicked the Selection tool, then dragged around the rectangle to select all of it.

4. In the Property Inspector I clicked the fill color icon. I clicked the square with the slash, to designate no fill. The fill disappears.

Everything has worked so far. But now I decide I want a fill color after all. I select the shape again. But clicking the fill color icon in the Property Inspector and the Tool panel has no effect on bringing a fill color back to the shape. I can't figure out how to do that.

Actually, I could restore the original fill color using Undo, or the History Panel. But it seems there must be a way using the Property Inspector.

View 2 Replies

Flex :: Use "textures" With Charts?

Apr 19, 2010

I'm new to Flex...I'm wondering if I can make a flex bar chart display a "texture" instead of a color?

View 1 Replies

ActionScript 3.0 :: Bitmapdata.hitTest - Bitmap 'emptyBitmap' With Bitmap Data Created

Feb 3, 2009

I'm cutting my teeth in actionscript 3 on a game that has a character running through a world. So, I have set up my Hit Testing by using the bitmap data hit test method, since I figured my world is going to be destructible - it'd be nice to update the level and then redraw it and have the character interact with the new change. (That works beautifully) I am however; a bit confused as to how I have my hit Testing set up. I've been messing around with it, and it works for now - but I'm not sure why.. currently, I have a character set up by using a class I built and using a series of animations I created. So, this character has a walking and falling animation, etc. This is a movie clip.

Then there's a bitmap 'emptyBitmap' with bitmap data created - however; I never really added this as a child to the character. This is sized to the dimensions of my character. My level is created as a movielip, then it's drawn to a bitmap - when the level movieclip is changed, the bitmap redraws, and that's how this updates.

[Code]....

View 1 Replies

ActionScript 3.0 :: Use The BitmapData Property Of A Bitmap And Pass It To The Constructor Of A New Bitmap Object?

Aug 20, 2009

I know the topic of "duplicating" movieclips is a hot issue with the new virtual machine. Luckily, I understand the implications. I only am [currently] interested in duplicating a Bitmap. See, I load an image from an URL using 'flash.display.Loader.load', which is a non-blocking operation in Flash Player.However,I may use multiple copies of the loaded image (which is reported to be a Bitmap, naturally) in the display list at the same time.Hence, I naturally do not want to load the image from an URL every time, because I don't want to wait for a non-blocking call to complete. Nor do I need to - I mean one copy is already loaded, so it should be possible to just "duplicate" it, right?

My idea is to do use the bitmapData property of a Bitmap and pass it to the constructor of a new Bitmap object. I have not tried the following in action, but I want to hear whether any of you did and if the following would not work, what would:

Code:

var original_bitmap: Bitmap;
var copy_of_original_bitmap: Bitmap = new Bitmap(original_bitmap.bitmapData);

LiveDocs mention that the BitmapData being passed to a Bitmap constructor is "being referenced", which to me might suggest it cannot be used twice? There is also the BitmapData::clone() method, which I am not sure is applicable here or not.I know this is a lot of talk instead of just trying this out, but I test so much Flash Player code daily just to see "what works" (which should be documented instead by Adobe),

View 4 Replies

Flex - Function To Redraw Bitmap On Sprite Without Passing In Said Bitmap?

Feb 22, 2011

If I have a BitmapData that's already been drawn onto a Sprite. Is there a way to redraw the BitmapData onto a Sprites Graphics object without having to invoke beginBitmapFill and passing in the same BitmapData?

View 1 Replies

ActionScript 3.0 :: Drawing From Bitmap To Bitmap Overrides Earlier Graphics?

Dec 29, 2010

I'm working on a game, and to keep performance good, instead of addChild'ing 50 new sprites to the stage every second, I decided to have each player draw to their own bitmap, and then to the 'master' bitmap. This introduces an issue though: the second player would override all data the first player has put into to bitmap...My basic debugging proof of concept:

Code:
// bitmap test

import flash.display.Bitmap;
import flash.display.Bitmap;[code]......

View 1 Replies

ActionScript 3.0 :: Copying A Rotated Bitmap Into A Bigger Bitmap?

May 9, 2011

I have a bitmap which has several frames (packed along the horizontal axis). In order to render them I copy it to the backbuffer (larger bitmap) as follows:

Actionscript Code:
public override function copyToBackBuffer(db:BitmapData):void{ if (active)  var drawRect:Rectangle = new Rectangle((currentFrame-1) * frameWidth, 0, frameWidth,

[code].....

View 5 Replies

Actionscript 3 :: Update A Portion Of A Bitmap With A Pixelbender Instead Of The Whole Bitmap?

Feb 17, 2012

In pure AS3, I have a pixelbender and a large bitmap. The pixelbender is configurable with a distance parameter to affect only a small area of the bitmap. The problem is that the pixelbender is executing over the whole bitmap. What would be the best way to update only the effected region of the bitmap? Given this config:

[Code]...

View 1 Replies

ActionScript 2.0 :: Bitmap Font Text Drawn To Bitmap

Oct 8, 2006

Is there a way to write a bitmap font right into the bitmap being desplayed? Mabey better worded: myBitmap.draw(image, t) draws a picture is there a way to draw text? I'm stuck even if its just a work around in some way I would like to know... (the current work around i have in my head is writing it in a movieclip turning that into bitmap data and drawing it... esentially creating a prototype answering my question... but a built in way would be easier probably).

View 2 Replies

Actionscript 3 :: Bitmap Too Big - Limitation Is In Bitmap And Loader?

Mar 30, 2011

In AS3, I am loading a png from a zip file (nochump's zip library through ByteArray to Loader). The png can be up to 45k pixels wide but only 120 tall. This creates a problem in flash, as images can only be ~8000 pixels wide. A possible solution would be to split the images into 6 columns somehow. This would probably need to be done in the ByteArray state, because the limitation is in Bitmap and Loader.

View 2 Replies







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