Skip to content

Take pictures of the input GeneralMesh from custom camera positions

License

Notifications You must be signed in to change notification settings

maria-korosteleva/Photographer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photographer

A module to take pictures of the 3D object from multiple cameras =) Accepts GeneralMesh object as an input.

Functionality

Cameras:

You can setup as many cameras as you want thtough addCameraToPosition().

To add the camera you need to specify it's position, assuming the object is at the world origin. Two options here:

  • Absolute camera position
  • Vector to the intended camera position and the distance to the camera.

The resulting camera will be put at the specified position looking at the object

Dependencies

Don't forget to add opengl32.lib; glfw3.lib; glad.lib; in the Linker options. If you don't have glad.lib, just add glad.c to your project.

How to link (VisualStudio):

  • Add the project directory (or parent of it) to the include directories (Configuration Properties -> C/C++ -> General -> Additional Include Directories)
  • Add the Photographer.lib to the Linker options (Configuration Properties -> Linker -> Input -> Additional Dependencies

For MCLab members

Please, contact Maria before making any modifications

Further development:

You can extend the class with the fuctionality you need * For backward compatibility, do not change existing interfaces * Kindly ask to follow the existing code style and to keep the new finctions small and readible.

Ideas

  • Other camera parameters formats
  • Allow to remove cameras
  • Allow to add arbitrary cameras
  • Backward projection
  • Support quad meshes (minor)

About

Take pictures of the input GeneralMesh from custom camera positions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published