ActionScript 3.0 :: Papervision3D Lag With Map Floor And Test Sprite

Aug 10, 2009

I'm not sure if this is directly hardware related or not. I've just started playing around with papervision 3d and I threw together this map floor and test sprite to see how it would look. The problem is, whenever I have a large portion or the map in my viewport, it lags. I was just wondering if maybe:

a) My code is horrid
b) My computer is a piece
c) Papervision3D is just bad for 3D

I mean the concept is simple, there's nothing fancy going on and I'm only using planes. Maybe it's because I'm using 25x25 of them? Is there a better path to use 3D than paper3d? Anyways, here's the code.

ActionScript Code:
//import files
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import org.papervision3d.objects.*;
import org.papervision3d.objects.special.*;
[Code] .....

View 2 Replies


Similar Posts:


Professional :: Create A Simple Floor Plan That Highlights Where The Computers Are On The Floor

Mar 31, 2011

I am trying to create a simple floor plan that highlights where the computers are on the floor.

1. Each computer has a name for e.g. Comp1, Comp2, Comp3 etc.

2. The computer names are in a list on the left hand side.

3. On the right hand side is the simple floor plan with computer images (or clipart)

This is what is expected:

1. As the mouse is mover over the item on the list, the computer associated with it must light up (or highlighted) For e.g. when the mouse is over Comp1 in the list then computer1 image (or clipart) on the floor plan must light up

2. When the mouse is over a computer on the floor plan, then the associated computer name in the list must light up For e.g. when the mouse is over computer2 image (or clipart), then Comp2 in the list must light up. I was trying to get some ideas from [URL]. I was able to make the image for a computer. It doesn't go far enough to tell me how to accomplish the above. Using Excel, I did this nearly five years back, by putting the clipart in specific cells and hyperlinking them. Now we want to make it available on the web.

View 5 Replies

ActionScript 3.0 :: Memory Benchmark Test :: MovieClip Vs. Sprite Vs. Shape?

Jun 11, 2010

I performed a benchmark test memory consumption by three DisplayObjects - MovieClip, Sprite, and Shape.
 
Below are results and method used. I just wanted to create instances. Test with adding instnaces to display list showed a slight difference in terms of memory consumption.
 
Observations: Sprite uses from 16 to 22% with average 18% less memory than MoviClip.
 
Shape uses from 42 to 55% with average of 46% less memory than MovieClip.
 
Shape uses from 32 to 42% with average of 35% less memory than Sprite.

[Code]...

View 8 Replies

C# :: Build Interactive Floor With Projection?

Jan 15, 2011

is there any lib or api out to deal with this ? EVEN, if there is any resource , article from another language c++ , c , .. i just didn't have enough time to test lot of ways

If you search interactive floors , or interactive floor projection you can find some companies who provide such a thing

View 2 Replies

ActionScript 3.0 :: Math.floor Vs Bit Shifting Vs Int

Aug 17, 2009

I just ran some tests on round numbers.In preparation for getting max performance from AS3, I want to test as many areas as possible.All I did was generate a rounded random number a million times per frame, and record the time step in milliseconds.[code]Now the strangest part is having a non rounded random number generated a million times per frame netted an average time of 195 milliseconds, faster than using int as a random number. It must simply be that because Math.random isn't returning an integer, some form of conversion of taking place for your variable to be an integer.

Incidentally, using a Number instead of integer for the looping variable decreased performance minimally, just a few milliseconds.So simply having your variable as an integer, and using no rounding at all produces the fastest results if you want a round number.Remember though, there are many other areas in Flash to dramatically increase performance. Being that we're talking about a million iterations per frame, the difference in performance is not exactly dramatic here. One is not even twice as fast as another, over a million iterations.

View 5 Replies

ActionScript 2.0 :: Math.floor Function Is Not Working

Apr 16, 2007

For some reason my math.floor function is not working (trace yields "undefined")..[code]

View 2 Replies

ActionScript 3.0 :: Floor Not Recognised By Character Movement?

Feb 8, 2010

I am designing a character to move right and left but the character is not recognising the floor movieclip and is falling straight threw the floor.I have attached a zip file with the flash document sample and associated Actionscript file.

View 2 Replies

Professional :: Creating Interactive Floor Plans In Flash CS4 Possible?

Apr 29, 2010

Is it possible to create interactive floor plans in flash CS4? Are there any tutorials out there to do this?

View 1 Replies

Make An Interactive Picture Scroll With Reflective Floor?

May 17, 2010

I WAS WONDERING HOW TO MAKE AN INTERACTIVE PICTURE VIEWER IN fLASH LIKE WHAT APPLE HAS IN LEOPARD AND SNOW LEOPARD.  FOR EXAMPLE, WHEN THE PICTURE IS IN FRONT OF YOU AND YOU CAN SEE OTHER PICTURES BESIDE IT BUT THEY ARE FURTHER AWAY AND YOU CAN SEE THE REFLECTION ON THE FLOOR OF IT  IS THIS A POSSIBILITY IN fLASH?

View 2 Replies

Flex :: Image - ARCGIS Overlay Floor Plan Png

Oct 25, 2010

We have floor plans of a building in the DB in PNG format. We am using arcGIS flex api. We want to build something like [URL] How can we load my building floor plan onto the arcGIS flex map.

View 1 Replies

ActionScript 2.0 :: Game - User To Fall When He Is Not Touching A Floor?

Mar 28, 2004

im making a game but im already having trouble with the first code, i just want the user to fall when he is not touching a floor....i put this code on the user:

[AS]onClipEvent(enterFrame){
if(falling=true){
this._y=this._y+5}[code]....

theres is no errors but it doesnt stop when it hits the floor

View 4 Replies

ActionScript 2.0 :: Weirdness In Math.floor - Get A Decimal Return

Jan 28, 2008

project width is 500

tile_width=25;
map_collumns=Stage.width/tile_width
trace(map_collumns)

Sometimes I get a decimal return. Then, when I close it,and run it again, it shows the correct answer.

View 10 Replies

ActionScript 2.0 :: Math.floor - Round Down To Nearest 10th

Mar 12, 2008

I want to round a whole number down to the nearest whole 10th. Like 52, becomes 50. Or 49, becomes 40. Or 2005, becomes 2000. Does that make sense? I imagine it has a math.floor approach, but I can not figure it out.

View 5 Replies

Flex :: Test Spark Components In FlexUnits Visual Test Environment

Sep 17, 2011

I'm trying to test a custom Flex 4 skinnable component, using the FlexUnit UIImpersonator class. If I run my tests from a FlashBuilder Spark only project everything works fine. If I try to test from a project with the mx component set on the classpath I get a "getElementIndex not available in non Flex 4 projects" error.Can I unit test spark components in FlexUnits visual test environment while still having the mx component set on the classpath?

UIImpersonator delegates it's method calls to a "testEnvironment".The implementation used for this "testEnvironment" is decided by the VisualTest EnvironmentBuilder class and the FlexEnvironmentBuilder class. If the FlexEnvironmentBuilder class can find the "mx.core.Container" on the classpath it returns a MX environment, else a Spark environment. Only the spark environment has valid implementations for Flex 4 relevant method calls on the UIImpersonator - like the addElement method.

View 1 Replies

Professional :: Buttons Don't Work When Test Movie/Test Scene?

Aug 4, 2011

My buttons only work when I click on them on the stage while having the "enable simple buttons" option on. They do not work if I try to "test movie," "test scene" and publish it to a SWF. Nothing responds whenever I am in these modes. I am using Adobe Flash Professional CS5 Actionscript 2.0.
 
This is the code that I put in for the buttons:
 
[Code].....

View 5 Replies

ActionScript 3.0 :: Movie Works In Flash Test But Not Html Test?

Aug 30, 2009

i have a movie that has worked fine in past during Html test but ive been doing some dubugging using the flash test latly and it runs fine here but when i go back and try to test in Html mode no errors come just the movie never fully starts (starts up about as much as if there was an error).

View 5 Replies

ActionScript 2.0 :: Test Movie Works But Test Scene Does Not

Mar 19, 2009

I have two scenes in my flash file and in scene 1, first button takes you to frame 2 where movie clip is -works

on (release) {
gotoAndStop("scene1",2);
}
second button takes you to frame 3

but on scene 2 that performs same function as scene 1, the first button

on(press){
gotoAndStop("scene2",2);
}

instead of going to frame 2 goes to frame 3. and the second button goes correctly to frame 3.that happens when i test scene! when i test movie all buttons work properly.

View 1 Replies

ActionScript 3.0 :: Create A Simple Movie Clip Of A Car That Can Drive On On A Curvey Floor?

Jul 20, 2010

i am trying to create a simple movie clip of a car that can drive on on a curvey floor. its from a side view.i have managed to control the car movement well enough but i cant figure out how to control the car y position so its always above the floor level.

View 4 Replies

Flex :: Access The Test Name Of A FlexUnit 4 Test?

Jan 21, 2010

In FlexUnit 1 it is possible to access the name of the currently-running test using the TestCase.getName() method because all tests subclass TestCase. In FlexUnit 4, however, there's no base class for tests; the tests are identified by annotations. So, how can I replicate the getName() functionality in FlexUnit 4?

View 2 Replies

Jquery :: Web Software Packages Are Available To Setup A Drag And Drop Canvas For A Restaurant Floor Plan?

Jan 13, 2011

I'm looking for a software package that implements a drag and drop plan of a restaurant's floor plan. Any technology silverlight/html5/flash is acceptable.

Perhaps there is even a tutorial on how to develop a simple example of this.

Essentially I need different shaped tables which can be selected from a shapes panel that can then be dragged onto the canvas and moved around to match the current floor plan of a restaurant.

View 1 Replies

Actionscript 3 :: Class Extending Sprite - Set The Sprite's Width And Height Properties?

Mar 5, 2010

I created a class, extended the sprite class, and now in the constructor I am trying to set the Sprite's width and height properties which are inherited from the DisplayObject. However, after I set this.width and this.height, and print the values, I get 0 for both.

What the heck is going on? When I view the livedocs I see that DisplayObject has width and height listed as public properties. I have been able to instantiate a Sprite directly, and set the width and height after it's been instantiated, so I don't get it.

package {
import flash.display.*;
public class ScrollBar extends Sprite {[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

IDE :: Adding A Single Sprite On Main Moviclip Sprite Remains Invisible

Mar 2, 2009

I created a new AS3 document (550px by 400px) and added the following code to the first frame.

However, when I run this, I see nothing painted on the screen at all, the screen remains completely white.[code]...

View 3 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.0 :: Sprite.addChild(NumericStepper) Resizes Sprite To 100x100

May 27, 2008

[Code]...

Then the numericStepper is drawn as if it is squished to 20% its normal height. If I pre-set mySprite width and height before adding the numericstepper, the trace output is 0,0 after adding it and it is not displayed at all. Is there some way I can make the sprite only adjust to correctly fit the numericStepper OR resize it afterwards without distorting the numericStepper component?

View 2 Replies

Actionscript 3 :: Difference Between Sprite.width VS Sprite.scaleX?

Sep 23, 2011

Both of sprite.width and sprite.scaleX can be used for scale a sprite. Is possible sprite.scaleX depends on screen size?

View 2 Replies

ActionScript 3.0 :: Sprite.graphics And Setting Sprite.width?

Jun 19, 2009

It has been a great resource of the years. No my problem. I am trying to dynamically resize a sprite that has a line drawn into it. Here is my code:

[Code]...

View 4 Replies

ActionScript 3.0 :: Papervision3D With CS5?

Jan 9, 2011

I'm having some problems with Papervision and Flash CS5. Basically, it doesn't seem to work ... I successfully installed Papervision once before on Flash CS3 using the same technique.. which leaves me asking if Papervision is even compatible with CS5 ? I've searched high and low but I can't seem to find anything concerning CS5 in the FAQs or on the forums.

View 3 Replies

IDE :: PaperVision3D - Add A Material To A DAE?

Mar 12, 2009

I've successfully loaded a DAE model with its own bitmap texture material. Now I want to layer an environment map over that to give it a shiny look. I'm about ready to go out of my mind---nothing seems to work. I've created my environment map material, and added it to the DAE model, but it fails to appear at all. I've cut some holes in the original bitmap material, so that I'd be able to see if the reflection was covered over, but nothing appears to be hiding underneath

View 1 Replies

ActionScript 3.0 :: Mcproduct Sprite And Mcproductpane Sprite?

Aug 15, 2010

first i have 2 sprite.. it`s mcproduct sprite and mcproductpane sprite . mcproductpane is a parent of mcproduct sprite.. so inside mcproductpane there a several mcproduct sprite.this is a script of mc prodcut

PHP Code:

[Code]...

The problem is i want to set a button in here(mcproductpane sprite), this button will unload / make dissappear an image that i load using loader class in mcproduct sprite..how can i make this happen?when i want to make a button in mcproductpane sprite which the function of the button it`s to unload/make an image that i load using loader class in mcproduct sprite disappear.

View 1 Replies







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