Hello everyone!
Away3d is probably the nicest 3d engine, by nicest - I mean the
rendering shows the best image quality (apart from many other
features) - this is why I decided to use/learn away3d.
Thanks Rob for the engine!
I am trying to build an application using skybox, but then I am stuck,
normally the cube uses little CPU for example with a window size 800 x
600 it may use 0-1% of CPU (I use a PC machine) with IE, that I thinks
works with flash best, however when I zoom or turn the cube longer (it
doesn't mean faster), or tilt -90 or 90 or ... I still don't
understand exactly when - the CPU usage rises and rises and it can be
80% for a window size 800x600
I was trying to find out what causes this issue but I can't
here is an enter frame action I use for continuous movement:
private function EnterFrame(evt:Event = null):void {
if (move) {
camera.panAngle -= 0.03 * (lastMouseX -
this._stage.mouseX);
camera.tiltAngle -= 0.03 * (lastMouseY -
this._stage.mouseY);
}
if(!camera.hover() && !move) {
this._stage.quality = StageQuality.HIGH;
this._stage.removeEventListener(Event.ENTER_FRAME, EnterFrame);
trace(camera.hover() + "/" +
this._stage.quality);
}
//camera.hover();
view.render();
}
when the enter frame function is called I switch the stage to LOW or
MEDIUM