-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from thometnanni/keyframes
keyframe functioning and video playback based on global time + interpolation + basic readme + removed old casestudy
- Loading branch information
Showing
15 changed files
with
776 additions
and
222,484 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Vantage-renderer | ||
|
||
Vantage-renderer is an open-source 3D projection renderer built with Three.js. It provides a modular framework for projecting media (images and videos) onto 3D environments using custom web components. Designed for fact-checkers, investigative journalists, and OSINT practitioners. | ||
|
||
|
||
## Features | ||
|
||
- `<vantage-renderer>`: Main container that sets up the Three.js scene, renderer, and camera controls. | ||
- `<vantage-projection>`: Manages projections, texture/video loading, and keyframe updates. | ||
- `<vantage-keyframe>`: Defines camera states (position, rotation, fov, etc.) at specific times. | ||
|
||
## Installation | ||
|
||
Install via npm: | ||
|
||
`npm install vantage-renderer` | ||
|
||
Or clone the repository: | ||
|
||
``` | ||
git clone https://github.com/thometnanni/vantage-renderer.git | ||
cd vantage-renderer | ||
npm install | ||
npm run dev | ||
``` | ||
|
||
## Usage | ||
|
||
Include the custom elements in your HTML: | ||
|
||
``` | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>vantage-renderer Example</title> | ||
<script type="module" src="src/main.js"></script> | ||
</head> | ||
<body> | ||
<vantage-renderer scene="path/to/scene.gltf" time="0" first-person="false" controls="edit"> | ||
<vantage-projection src="path/to/texture.mp4" focus="true"> | ||
<vantage-keyframe time="0" position="0 1.8 0" rotation="0 0 0" fov="60" far="150"></vantage-keyframe> | ||
<vantage-keyframe time="10" position="10 1.8 0" rotation="0 0 0" fov="60" far="150"></vantage-keyframe> | ||
</vantage-projection> | ||
</vantage-renderer> | ||
</body> | ||
</html> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.