Skip to content

ExpertOfNil/image-projection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is for demonstrating some of the difficulties I am having with texture projection. The objective is to be able to project a texture onto a mesh where the knowns are:

  1. Camera position in world space
  2. Camera intrinsics
  3. Camera extrinsics
  4. Vertex positions in world space

However, the vertex to texture coordinate mapping is not known.

Demonstrations:

  1. master branch: projection of a texture onto a plane where textrue coordinates are computed in the vertex shader. Distortion occurs at the diagonal shared by the plane's two triangles. Here is the result result.
  2. projector branch: same as master except the texture is projected from a static camera other than the view camera.

About

Demonstration of image projection using wgpu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published