kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

Object interaction does not work with PerspectiveLens #89

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Create a simple interaction test using a PerspectiveLens.

What is the expected output? What do you see instead?

I expect the sceneX, sceneY and sceneZ values to be correctly filled in.

What version of the product are you using? On what operating system?

Away3D 3.4.0 (using Ubuntu but that shouldn't matter).

Please provide any additional information below.

On line 207 of View3D it says:

persp = camera.zoom / (1 + screenZ / camera.focus);

Which makes the calculation assume a ZoomFocusLens, to work for other
lenses this line should be changed to:

persp = camera.lens.getPerspective(screenZ);

Original issue reported on code.google.com by li.mik...@gmail.com on 18 Jan 2010 at 5:26

GoogleCodeExporter commented 8 years ago
This has been fixed in 3.5, however 2.5 still had the problem

now fixed in the trunk:

http://code.google.com/p/away3d/source/detail?r=2670

Original comment by rob.bate...@gmail.com on 3 Jul 2010 at 12:37