Hi all, after some experience with PV3D i decided to switch to away3D. So i started with all the tutorials i could find and i learned how to load models (not that hard, after many hours trying to import a DAE, before i realized, that *.3ds seems to be the better choice), aply shading and textures on primitives, mouseEvents,.... But there is 1 big problem i can´t solve:
http://www.mischen-impossible.de/away3d/Fotoalbum__01.html I´m working with V 3.4.0, downloaded as ZIP file. The same shading problems happen to all of my meshes i load. The code for this simple RoundedCube with PhongColorMaterial is the following: package { import away3d.containers.View3D; import away3d.primitives.RoundedCube; import flash.display.Sprite; import flash.events.Event; import away3d.lights.DirectionalLight3D; import away3d.materials.*; public class Rendertest extends Sprite{ private var view:View3D; private var light:DirectionalLight3D = new DirectionalLight3D({color: 0xFFFFFF, ambient:0.15, diffuse:0.75, specular:0.8}); private var cube:RoundedCube = new RoundedCube(); public var phong:PhongColorMaterial = new PhongColorMaterial (0x9EC482); public function Rendertest() { init(); } private function init() { view = new View3D({x:200,y:200}); addChild(view); view.scene.addChild(light); light.y = 500; light.x = -1300; light.z = -1200; cube.material = phong; view.scene.addChild(cube); addEventListener(Event.ENTER_FRAME, onEnterFrame); } private function onEnterFrame(e:Event) { cube.rotationY += 3; cube.rotationX += 1; view.render(); } } } How can i fix this problem? Is it caused by the renderEngine? I have the same "distortions" with a PhongBitmapMaterial. Rising the amount of vertices doesn´t make it better. Manipulating the light doesn´t fix the problem. What can i do?
