Flash :: Use Text As Texture On Cube Inside Papervision3d?
Jan 19, 2010
What is the best technique to apply anti-aliased text as texture on cube using papervision3d?
make dynamic textfield, convert it to moviematerial then apply it to the faces of cube. Design a bitmap using any picture editor and make a bitmapFileMaterial to apply on faces of cube.
View 1 Replies
Similar Posts:
Oct 24, 2011
I have an object in Papervision3d that the user needs to be able to zoom into a considerable amount. At Flash's maximum bitmap size of 2880x2880 the texture is too blurred at the maximum zoom. Even going beyond this to the sizes available in Flash 10 do not help.Is there any way to build a BitmapMaterial that can pull from a set of tiled 2880x2880 images?Is there any other way to load a larger texture into Papervision3D?
View 1 Replies
Dec 31, 2011
Using Away3D, I've successfully displayed a cube. So far, if I want to display a texture on each side of the cube independently (different textures on each side), I'd have to put them all in one texture, kind of like a sprite map. Is there a way I can do this so I can apply a different bitmap to each side of the cube? Here's my code so far:
[Embed(source = "texture.png")] private static var _texture:Class;
var texture:Bitmap = new _texture();
cube = new Cube(new BitmapMaterial(texture.bitmapData),240,240,240);
cube.material.smooth = true;
cube.material.mipmap = (texture.width == texture.height);
View 1 Replies
May 27, 2010
I would like to combine bitmaps to one texture and apply it to a cylindric primitive. The cylinder will be rotating or better: the texture should moving along the cylindric-surface and therefor you should see only one (up to 3 textures at the same time). For better understanding: it's my intention to create somehow a poster-pillow with a undefined number of posters on it. By clicking on the pillow, it should rotate to the next poster but you will see always parts of the previous/next poster.
My question is: How can I load the texture dynamically but also how to combine, load/unload posters on the run ?
View 1 Replies
Nov 28, 2011
I have a question about Papervision3D, or perhaps bitmapData, I am unsure where the problem is. I have constructed a program that takes 4 banners and splits them into pieces and then applies those pieces to cubes so that I can make a banner rotator. So after I run my program I have 10 cubes with a piece of a banner on 4 faces(front, top, back, bottom) of each cube. The problem is that some of the faces are oriented incorrectly(spun 180 degrees).
Is there a way in Papervision3D to spin a cube face? The other place I think the problem may be is when I create the bitmapData that will be applied to the cube faces. Is there some way to explicitly define orientation during bitmapData creation?
[Code]...
View 1 Replies
Aug 16, 2010
I have created a cube using Papervision3D where the back face has an image and some text, and the right face has an image and some text and contains a URL. I want the back face (the one facing the user) to wait for a MOUSE_OVER event then roll 90 degrees to the right and present the right face to the user. The right face then waits for 2 mouse events: either a MOUSE_CLICK, which will launch the URL, or a MOUSE_OUT, which should cause the cube to roll 90 degrees back to the left and present the back face again to the user. I am using the Papervision3D and TweenMax libraries in my code, which looks like this:
//front1 = back face
//back1 = right face
front1.addEventListener(MouseEvent.MOUSE_OVER, handleRollOver);
[code]....
View 1 Replies
Aug 16, 2010
I have created a cube using Papervision3D where the back face has an image and some text, and the right face has an image and some text and contains a URL. I want the back face (the one facing the user) to wait for a MOUSE_OVER event then roll 90 degrees to the right and present the right face to the user. The right face then waits for 2 mouse events: either a MOUSE_CLICK, which will launch the URL, or a MOUSE_OUT, which should cause the cube to roll 90 degrees back to the left and present the back face again to the user. I am using the Papervision3D and TweenMax libraries in my code, which looks like this:
[Code]....
View 1 Replies
Mar 2, 2010
i have been using AS2.0 for quite a long time. And i started using papervision3D too.I am using tutorial made by Lee Brimelow's cube tutorial. but i want different results. So long i am able to move the cube in one direction and that is my requirement. But in his tutorial he as link to urls. what i want is to expand one face of the cube which is clicked to expand to fit in the screen.(i am also using fullscreen and stage resize).
View 1 Replies
Jan 25, 2011
I've seen that it's possible to format a specific bit of text in a text field with:setTextFormat(format:TextFormat, beginIndex:int = -1, endIndex:int = -1):void
I need to format a section of text by applying a texture to the rectangular fill space around the letters. (Imagine in Microsoft Word that you've written a short sentence and you highlight it. Then you fill the text background with a colour. Then imagine that that colour is a single repeating texture. That's what I'm trying to achieve.) Note that the text field must be multiline, and I'm not looking to fill the whole rectangular text field area. The applied texture needs to fit to each character. Is this possible in Actionscript? Would I need to use some kind of HTML or CSS formatting? Is it possible at all? If it is possible, is it possible to change the size of the fill area around the text?
View 10 Replies
Feb 7, 2010
if it were possible to apply a tiled image fill to text to create a texture.
View 3 Replies
Apr 14, 2011
How can I position a bit of text (or text as image) next to a cube?
View 1 Replies
Jul 6, 2009
how i could create a background like this site has [URL]
You see there is a little texture in it, and the texture matches every screen size. The gradient effect is no problem but how can i make the texture also match every screensize?
View 1 Replies
Oct 17, 2010
[code]...
That is changing colors (the ARRAY_COLOURS have [ 0xFF0000, 0x0000FF, 0xFFFF00 ])
I would like to have instead of that something like ARRAY_COLOURS[ IMAGE1, IMAGE2, IMAGE3 ]
View 1 Replies
Jul 18, 2009
I have an image of a handbag. I want the user to be able to click on a fabric image and change the fabric on the handbag to whatever they selected. How to change the image texture in photoshop. Would I first have to make the change in photoshop, then somehow create a movie in flash that places those images in the .fla file. Or will flash do it all for me. That is wrapping the texture around the image each time a new one is selected.
View 2 Replies
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
Jan 12, 2010
I want to recreate a coloring book seen on [URL]
I want to use the same concept except I want to use a library of jpegs (bitmaps) as my color swatches.
Here is my version: [URL]
View 3 Replies
Jun 26, 2010
I need to develop a cube that contain 10 little cubes and manipulate everyone like an object.
View 1 Replies
May 25, 2011
I have a flash application and I use papervision3d library. I put my objects to the scene, no problem but I also want to show the coordinate axes (x,y and z) to user. Is there any way to show these axes?
View 2 Replies
Mar 8, 2010
I'm updating the start and end points of a Line3D object in Papervision3D. The end result works fine but there seems to be a lag from when I move the objects and for the line to redraw in the right position. I'm using the following code:
connectingLine.v0.x = startDisObj.sceneX;
connectingLine.v0.y = startDisObj.sceneY;
connectingLine.v0.z = startDisObj.sceneZ;
[code].....
View 1 Replies
Apr 30, 2010
I'm doing a project using FLARManager augmented reality and the Papervision3D library. Unfortunately, Papervision is giving me a lot of problems.My scene3D contains a DAE model and a plane. The plane has a MovieMaterial and is playing a video through FLVPlayback. The DAE and the plane are both inside the same DisplayObject3D container. FLARManager transforms the container so that everything appears through the angle of the marker.
My DAE model is a TV, the screen of the TV is transparent. I want to have my Plane inside of my DAE model, so that the Movie playing on the plane material appears to be what is playing on the TV.The problem is that, even if the plane has a lower Z index then the TV, it always appears in front of the TV.
How do I have my plane and its MovieMaterial appear behind the TV, so that some of its corners are cut out by the TV and the part of the TV thats transparent let me see the Movie? If its impossible, anyone has an idea of how I could get the desired effect of having a movie play on the screen of my DAE tv model?
View 1 Replies
May 10, 2010
im very new at papervision3d, i know in order to display a .DAE model i use this
[Code]...
But how can i do in order to use VRML models (.WRL).
View 1 Replies
Apr 5, 2011
ive got two template which ive seen online which i would like to make now purchasing them cost quite a lot so im looking to make these templates one or the other here the info on the templates:
template 1: templateaction.com/space-cube-flash-cms-template
template 2: templateaction.com/cube-flash-cms-template
on the website if you click live preview you will know what im looking for. now i researched a bit and notice that the cube in these templates is made in papervision3d and found a tutorial on that:gotoandlearn.com/play.php?id=68 now how can i make one or the other of these templates as their are the exact thing im looking for, for my project can anyone help me out. editing the cube is not a problem i could make it on click go to websites or scenes in flash, but the thing is im not a expert in flash or papervision3d so i need help to get the type of features in the templates on the cube.
View 1 Replies
Sep 3, 2009
How to anti-alias a collada model in papervision3D?I've tried searching everywhere but didn't find any ways to anti-alias models. I've also tried blurring it a little as an anti-alias method but that only f-s it up and makes it look worse.How do I do that properly?
View 1 Replies
Mar 8, 2010
I'd like to keep an object appear to remain in the same place while moving the camera.I'm using this scriptto orbit an object using a mouse drag. But I have an object in the scene that I would like to keep still. How to I do this?
View 1 Replies
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
Apr 1, 2011
i need to make a loader on flash or a simple label who say "wait, the model is loading". This is the part of my script were i load the model, but how to control the loading process.
Code:
private function _onInit(e:Event):void {
_earth = new DAE();
_earth.load('model/hfarm.DAE');
[code]....
View 2 Replies
Aug 19, 2011
i have an animated collada of envelope module that have an animation of opening itself
now for seeing both sides of the envelope i set the
oneSide = false
i added for tests a ColorMaterial.
but what i want is to have 1 color in the outside faces and another color in the inside faces
View 2 Replies
May 16, 2010
I'm trying to create a Rubik's Cube in Flash & Papervision and i'm really stuck here. I'm up to the point where i can rotate any plane of cubes once, but after that...it's messed up because all local coordinate systems are messy.I dont really know where to go from here, can anybody give any advice on what do do? I'm not looking for 'read about transformation matrices', i know i should (and i am doing that), but i'm not really sure what to look for.My idea is that, after each rotation, i should fix each coordinate system of each cube again, but i have no idea how. Any hints on what i want to achieve (in words)
View 3 Replies
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
Sep 13, 2009
I just made a new Flash project. It lets you move a Cube, with the arrow keys on the keyboard.
Code:
function hearKey(yourEvent:KeyboardEvent):void{
if (yourEvent.keyCode==Keyboard.RIGHT){
cube_mc.x+=5 };
if (yourEvent.keyCode==Keyboard.LEFT){
[Code] .....
It works perfectly fine, except for example: I press down the down key. It moves down (good so far). I keep pressing the down key down and also press the left key down. Now it moves left(not so good, I want it to move both left and down, how do I do that?) Now I release the left key but am still on the down key. Nothing happens....(I want it to then continue going down).
View 1 Replies