ActionScript 3.0 :: Papervision Rendering (Clipping & Culling)

Feb 4, 2011

when I move the camera around my scene the rendering at certain points is odd. Triangles become missing and it seems as though its just not working correctly. When you move the camera beside the cube, triangles along the side of the cube go missing. Is there a way I can turn the clipping off? Should I use more triangles? Is it a material/render engine/viewport problem?

[Code]...

View 0 Replies


Similar Posts:


Flex :: Rendering Glitches With Papervision?

Oct 31, 2009

Has anyone seen rendering glitches with Papervision?

seee the flash movie at [URL].. which demonstrates the problem.

View 2 Replies

Actionscript 3 :: Papervision Rendering PNGs With Transparency That's Inside A Movieclip?

Mar 9, 2010

I'm an actionscript dude - I'm working on a papervision game.

I have an asset of which is 127 pngs in a sequence for an animation.

I can happily project this onto my papervision plane. Problem is, there is no transparency. I Can't use a BitmapFileMaterial as I have many pngs -

View 3 Replies

Actionscript 3 :: Load A Papervision/Flex Application (SWF) As A Material On A Papervision Plane?

Mar 24, 2011

I am trying to build a portfolio application similar to the used by Whitevoid. I am using Flex 4 and Papervision3D 2. I have everything working except for one issue. When I try to load an external SWF as a material on one of the planes, I can see any native Flex or Flash components in their correct positions, but the papervision objects are not being rendered properly. It looks like the viewport is not being set in the nested swf. I have posted my code for loading the swf below.

private function loadMovie(path:String=""):void
{
loader = new Loader();
request = new URLRequest(path);

[Code]....

Below I have posted two pictures. The first is a shot of the application running by itself. The second is the application as a MovieMaterial on a Plane. You can see how the button created as a spark object in the mxml stays in the correct position, but papervision sphere (which is rotating) is in the wrong location.

View 1 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 :: Flex Render Culling Objects Not In View To Stop Them Getting Drawn When Not Needed?

Oct 27, 2010

Does anyone have any knowledge (preferably with links to make it official) about how/if Flash/Flex culls objects not in view, to stop them getting drawn when not needed? A specific cases: I have an 800x600 panel (a Canvas or Sprite, or other container) containing loads of Sprites representing individual game objects like asteroids or spaceships or missiles or map-tiles. The game world might be 5000x5000 so can I naively position Sprites anywhere in this range and let Flash cull them effectively? Or do I need to manage visibility somehow at a higher level (like manually removing them from the parent) to avoid performance issues?

View 1 Replies

3D Rotation Tool In Clipping Mask?

Jun 30, 2009

I noticed that for some reason whenever I use the 3d rotation tool on an object inside of a clipping mask that the object releases the clipping mask. Are 3d objects not supported within clipping masks? Is there a way around that?

View 6 Replies

ActionScript :: Text In Window Is Clipping

Sep 8, 2009

The last 2 characters or so are partially obstructed by parentheses.

For example, when I type: "stop()"  it looks like "sto()".

View 1 Replies

Streaming Flash Video - Clipping

Jan 21, 2010

I have a simple flash video player that streams the video from a streaming media server. The stream plays fine and I have no problems with playing the video and doing simple functions. However, my problem is that on a mouse over of the video, I have the controls come up and when I do a seek or scrub on the video, I get little weird boxes that show over the video - like little pockets - of the video playing super fast (you can basically see it seeking) until it gets to the point it needs to be at and then these little boxes disappear.

View 2 Replies

Flex :: Cropping/Clipping A Sprite?

Jul 7, 2010

How is cropping/clipping accomplished on a Sprite in Flex?

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="Init()">
<mx:Script>
<![CDATA[

[code]....

Notice that the lineTo completely leaves the UIComponent and Panel.How can I cause my UIComponent or Sprite, Or Panel for that matter, to be cropped/clipped? I realize I could just change the hard-coded 2222's to something more reasonable, but I need a generalized solution to this, since the actual project doesn't involve hard-coded values that I can alter, but works with dynamic data.

View 2 Replies

Flex :: Clipping And Dynamic Resizing?

Aug 24, 2011

I have a container with a vertical layout inside which I have two other child containers "A" and "B". n the first container "A" there is a component that I would like to resize dynamically based on the available display size. To to that I tried listening to the resize event of the main container and do my measures accordingly. That works somewhat until the parent container reaches a clipping size : container "B" gets clipped earlier than "A" because it contains much more stuffs : As soon as the parent container reaches "B"'s clipping size, it does not resize anymore (so no more resize event either) thus preventing me from updating my component's display in "A".

View 1 Replies

ActionScript 3.0 :: Unwanted Bitmapdata Clipping?

Feb 12, 2011

I am trying to figure out bitmapdata and was attempting to draw 2 ellipses as sprites,capture the bitmapdata and then spit them out with draw(). The problem is, there is some nasty clipping and I don't know how to get rid of it. I have tried using rect and messing with the draw parameters but nothing seems to work.

Code:
public class fhParticle extends MovieClip
{

[code]....

View 1 Replies

Flash :: Constraining/clipping Symbol Boundaries In CS5?

Sep 27, 2010

I want to create a MovieClip symbol of a certain width and height, but with content that extends outside its boundaries, with the option to have the external content be clipped/hidden or visible.

In Flex, the solution would be to create a group with .clipAndEnableScrolling = true.

Is there a way to do this in Flash CS5, or will the symbol always resolve to the size of its contents?

View 2 Replies

Actionscript 3 :: Overlapping Sounds And Clipping In StandingWave3?

Aug 22, 2011

I've been playing with the dynamic audio library standingwave 3. Almost the first thing one notices is that if one tries out the code samples in the developer's guide, namely this code:

[code]...

then one gets a really unpleasant sound and trace messages that read "AUDIO CLIPPING". The developer explains in one of the issue reports on github that you need to reduce the gain of samples when you mix them together to avoid this, and that there's no easy way to know dynamically how much reduction is needed.My question is, how is it that stangingwave2 seems to have dealt with this automatically? For instance, the code quoted above did not clip in SW2. Likewise consider this SW2 example demo - if you increase the sustain and hold (the S/H sliders) and press one of the sequence buttons, multiple tones will overlap without clipping, even though the source doesn't show any apparent sign of changing the gain or the volume of the sin tones, they just get mixed together.What's going on here - did SW2 have some way of dealing with this automagically, or is there some robust way of generally overlaying arbitrary numbers of sounds dynamically without causing clipping?

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

Remove White Outline On Clipping Paths Imported Into Flash?

Sep 9, 2009

I have been trying to import clipping paths into Flash, but the images look fine, except for the white outline around the imported clipping paths. what I could do to remove this. The clipping path looks fine when I drop it on the same color background in Illustrator. I'm using CS2 and Flash 8.

View 1 Replies

Actionscript :: Flex - Snapshot With Clipping Rectangle And Scaling Matrix?

Jan 29, 2010

var snapshot:ImageSnapshot = ImageSnapshot.captureImage(someSprite);
var file:FileReference = new FileReference();
file.save(snapshot.data,'abc.png');

n the above code I am able to capture an image.But I also want to apply a scalingMatrix(for zoomIn/Out) and a clipping rectangle to it. How to do it? I tried capturebitmapdata too, but with that I can't even get a proper image. See here. So I don't want to use that.

View 1 Replies

Flash :: Rotate BitmapData When Using Draw Method. Width Height Bounds Clipping / Cropping?

Jan 29, 2010

I wrote a collision detection class that works off using BitmapData.hitTest. Basically, every update, the .draw method is called and then two BitmapData's are hitTest'ed against each other to see if there is a collision.It works pretty well, however if I start rotating the source MovieClip I use for the BitmapData, the transformations don't get registered in the draw method. So what I did was pass through a Matrix in the draw method. That works. But here's the actual issue. If I output the BitmapData to a Bitmap on the stage, I see that Bitmap is, in fact, rotating, but now it's exceeding the bounds (width and height) of the BitmapData. Which is cropping / clipping the image of the source MovieClip.

UPDATE: Basically, when the Bitmap clone of the MovieClip rotates outside the positive co-ordinate space, it doesn't get drawn. It rotates outside the bounds of the BitmapData set width and height. I can multiply the bounds by 2, and then center the bitmap inside the set bounds, but then the origin point is never fixed and the object is always being moved around. Works pretty well, but makes aligning the object to any specific point impossible.Here's my isolated test code. It requires you to have a MovieClip on the stage named "iTest". I used a fairly vertical arrow shape (higher than it is wide) so I could keep track of rotations visually accentuate the clipping problem:

var rotateTimer:Timer = new Timer(10);
function rotateObject_init():void
{

[code].....

View 2 Replies

ActionScript 2.0 :: Stop Sounds, SetVolume, Causes "clipping" Or "popping" Noises?

Feb 19, 2011

The problem that I am having is that stopping sounds using a basic "mySound.stop()" command, or using "setVolume" to fade it out instead - causes clipping. I understand that, technically, it is not "clipping" (this is part of the reason why I can't find any forum threads about this). What is happening really is that the sound card is interpreting going from an average dB level to zero makes a square wave, and thus the popping sound. For example, imagine that each dot is a sample in a WAV, and as you can see the straight vertical line occurs when the sound is stopped:BUT, what I am confused about is that this does NOT ALWAYS happen. I find it hard to believe that I am just getting lucky and hitting the stop button exactly at a moment when the wave is at zero (or really close).

View 0 Replies

ActionScript 3.0 :: Car Skidmarks In Papervision

Oct 19, 2009

I asked this question in papervision 3d forums, but nobody replied. So. I am writing a 3D application with actionscript 3 and papervision 3D. But I have stuck on one problem, I can't figure out, how to place skidmarks (decals?) on an object. The only method I can think of is drawing directly to BitmapData (texture). What would you suggest to draw a textured skidmark on ground (plane primitive)?

View 1 Replies

Actionscript 3.0 :: Globe Done In Papervision

Jul 2, 2009

I have done globe in papervision - basically sphere + material (image of political map) over it.Now, I need to make every country on my globe interactive, what means, I need somehow create event listeners for lots (at least 15) of small areas on my globe, and if I click those areas, something will happen (say, additional info windowwill come out)I googled a lot and found a lot of things describing some realted stuff (hotspots?), but since I am quite new in flash/actionscript/papervision, could I, please, get some introductory idea how my problem might be solved?

View 1 Replies

Actionscript 3.0 :: Put Text In Papervision?

Jul 27, 2009

i was trying to put text in papervision but am having touble.

View 4 Replies

Get Papervision Development Tool?

Aug 21, 2009

Is there any development tool that has the papervision3d classes buit-it, so i can get hints when i'm writing th code as i get hints for as3 code?

View 2 Replies

IDE :: Importing 3d Animation With Papervision

Feb 12, 2009

I am new to Papervision, and am experimenting on importing animated 3ds max models into my project.I can export a model (with no animations) into Collada format, and import it using Papervision, with no problems. But when I try to import a model with animations, i get this error:[code]I am using Flash CS 4 / Papervision3D Public Beta 2.0 - Great White / 3D Studio Max 2009 (with the New Collada Plugin).

View 7 Replies

ActionScript 3.0 :: PaperVision 3D .. CPU Performance?

Jan 4, 2011

I am trying to develop a game based on papervision and flash.the very basic idea of the game is that some 3D objects are falling from the sky and you have to catch them .. At a time there can be as many as 20 of such 3D objects on the stage.Now the problem is that these 3D objects are causing too much CPU usage .. I was hoping if there was another way to do the same thing and which causes less of performance issues ...

1.I have two classes suppose A and B

2.the class A calls class B

3.class B initiates a 3D sphere whenever it is called .. the Sphere has a bitmap image material .. and it rotates along the X axis on every enter frame event

4.class A has a timer function which moves the 3D object in the Y direction and also destroys it when the object reaches a specified Y position ..here are the code snippets ...

Class A :Code:
public function onTick(e:TimerEvent)
{
if(Math.random() < spawnrate)[code]......

View 2 Replies

ActionScript 3.0 :: Where To Put The Material Jpg [papervision]

Apr 11, 2011

trying a simple papervision tutorial and swf stops rendering by mat = new MovieMaterial(rec);

[Code]...

View 2 Replies

ActionScript 3.0 :: Setup Planes With Papervision?

Oct 30, 2009

how to setup Planes with papervision, then retrieve them later?I've set up the 3d scene like this:

PHP Code:

var con:Sprite = new Sprite();
con.x = this.width * 0.5;
con.y = this.height * 0.3;
holder.addChild(con);

[code]....

but none of these methods seem to work,, possibly because you can't do the same things to Planes that you can to movieclips...(?)the scene.numChildren seems to work though.

View 1 Replies

Flash :: SWF Loading In An SWF Containing A Papervision Scene

Apr 25, 2010

I have an SWF loading in an SWF containing a papervision scene.I've done it before yet problem is, I get an error - I'm not sure what the issue really is.[code]

View 3 Replies

Flash :: Importing DAE Files To Papervision?

Sep 14, 2010

i created a 3d model using sketchup and exported it as a DAE file.

then i try to import the model into papervision, but the model never appear.

when i use the DAE file provided in the examples, it works. only when i tried to create my own models, it doesn't work. does this have anything to do with sketchup?

View 2 Replies

Flash :: Using Papervision To Create A 3d Game

Oct 22, 2010

now i need to add a health bar and countdown timer on the screen. how am i going to do it? adding a plane in the 3d scene? the health bar is always on the top right corner of the screen. is there anyway of NOT using 3d concept to implement this. i mean i could do it with a plane keep changing it's texture to show the status of the character. is there any cleaner way of doing it?

View 1 Replies







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