EquiangularProjection
import { EquiangularProjection } from "@egjs/view360";
EquiangularProjection
is a projection type based on EquiAngular Cubemap (EAC).
EAC is a format that is usually used in YouTube videos, and generally looks like this:
Displaying the image above with the EquiangularProjection
is as follows:
- JSON
- Javascript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
projection: new EquiangularProjection({
src: "/pano/eac/eac.jpg",
})
}
Another example, also check Original YouTube video.
- JSON
- Javascript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
projection: new EquiangularProjection({
src: "/pano/eac/bathroom.mp4",
video: true,
})
}