Grabbing the 8? coordinates of the cameras view

Software: Away3D 4.x

Babylon, Jr. Member
Posted: 11 March 2013 08:03 PM   Total Posts: 39

Greetings,
Can’t seem to figure out which camera property returns the ‘points’ of the camera’s view so that I can do some custom logic in how some things are rendered.

Any help would be great.

Thanks,
-B

   

_kihu, Jr. Member
Posted: 12 March 2013 09:44 AM   Total Posts: 43   [ # 1 ]

I don’t know if I understand correctly what you mean by ‘points’ of the camera’s view. My interpretation is you want to get info about world-space 3D coordinates for each pixel on the screen.

If that’s the case, you can use Depth buffer and camera’s fov to calculate this (in fragment shaders). Maybe raycasting would do a better job, depending on what custom logic you want to do here.

   

John Brookes, Moderator
Posted: 12 March 2013 11:04 AM   Total Posts: 732   [ # 2 ]

PerspectiveLens(view.camera.lens).frustumCorners

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X