MouseEvent3D UV and OrthographicLens

Software: Away3D 4.x

newawayuser, Newbie
Posted: 12 July 2011 04:14 PM   Total Posts: 1

Hi. I’m new with Away3d, using Broomstick.

I’m trying to get the UV coordinates from a plane when the mouse is clicked.

When I use a normal camera it works fine, and I get values between 0 and 1. When I use the OrthographicLens I get all king of weird values like -650, 27, 60, 0.12…

How can I solve this?

Thanks and regards.

   

Mafiy, Newbie
Posted: 04 August 2012 07:31 PM   Total Posts: 15   [ # 1 ]

Up.

I have the same problem.
Away3d 4.0.7 GOLD

public function Main():void
  {
   
   scene 
= new Scene3D();
   
camera = new Camera3D(new OrthographicLens(670));
   
camera.500;
   
camera.0;
   
camera.0;
   
camera.lookAt(new Vector3D(000));
   
view = new View3D(scenecamera);
   
view.antiAlias 4;
   
view.mousePicker PickingType.SHADER;
   var 
plane:PlaneGeometry = new PlaneGeometry(10010011);
   var 
texture:BitmapTexture = new BitmapTexture(new Tex().bitmapData);
   var 
material:TextureMaterial = new TextureMaterial(texturetruetruetrue);
   var 
mesh:Mesh = new Mesh(planematerial);
   
   var 
cont:ObjectContainer3D = new ObjectContainer3D();
   
scene.addChild(cont.addChild(mesh));
   
mesh.mouseEnabled true;
   
mesh.shaderPickingDetails true;
   
mesh.addEventListener(MouseEvent3D.MOUSE_MOVEmove);
   
   
addChild(view);
   
   
addEventListener(Event.ENTER_FRAMEupdate);
  
}
  
  
private function move(e:MouseEvent3D):void
  {
   trace
(e.uv);
  
}
  
  
private function update(e:Event):void
  {
   view
.render();
  
   

zbw, Newbie
Posted: 04 September 2012 10:41 AM   Total Posts: 12   [ # 2 ]

away4, the map is not interactive, that SWF?Members solved ideas. Thank you.

   
   
‹‹ 3D / 2D Pixel Matching

X

Away3D Forum

Member Login

Username

Password

Remember_me



X