Ngl: wishlist: camera: orthographic or perspective

Created on 25 Nov 2015  路  8Comments  路  Source: nglviewer/ngl

option to change the camera type (and can be changed in notebook)

enhancement

Most helpful comment

stage.setParameters({cameraType: "orthographic"})

All 8 comments

started working on this in the orthographic branch

  • [x] integrate CombinedCamera (perspective & orthographic) including methods to switch
  • [ ] fix hyperball impostor (just noise)
  • [ ] fix sphere impostor (bounding box too small)
  • [x] integrate OrthographicTrackballControls (also, make feel more similar to TrackballControls)
  • [x] fix multi-sample antialiasing (needs offset for OrthographicCamera)
  • [x] add camera switch to preferences

happy-dance-e1315079523499

merged the PR, testing appreciated

screenshot 74

can you create a branch in NGLView with updated NGL code for camera? And how to change camera type? I can test it but prefer to use notebook. :D

stage.setParameters({cameraType: "orthographic"})

so I did

cd ngl/build
`sh make.sh

then copy js/build/{ngl.js, three.custom.min.js} to NGLView. Nothing shows up. Open JS console and saw

[.CommandBufferContext]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glClear: framebuffer incomplete

done. work nicely.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

biharck picture biharck  路  6Comments

garyo picture garyo  路  5Comments

Dom1L picture Dom1L  路  4Comments

harryjubb picture harryjubb  路  7Comments

josemduarte picture josemduarte  路  4Comments