GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - echo3Dco/8thWall-echo3D-example: Demo that integrates echo3D with 8th Wall examples.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
Examples
Examples
 
 
README.md
README.md
 
 
echoAR.js
echoAR.js
 
 

Repository files navigation

8thWall-echo3D-example

Exapmle code that integrates echo3D with 8th Wall examples.

Register

Don't have an API key? Make sure to register for FREE at echo3D.

Setup

  • Create a new 8th Wall project.
  • Add echoAR.js to the project files.
  • On the JavaScript file that runs your scene, type import {echoAR} from './echoAR.js'; to import the echo3D class.
  • Create a new echoAR object using var echo = new echoAR(YOUR_API_KEY);.
  • To download the 3D models from your echo3D console, use the findObject() method. Each model will be placed as entries into a JavaScript map.
  • Use echo.models.get(ENTRY_ID) to access these entries in your main JavaScript file, where ENTRY_ID is the Entry ID listed in the console.
  • Look through the examples folder to see how echo3D can be implemented on existing 8th Wall demos. Replace any files in the 8th Wall console with their counterparts in the examples folder.

Map Attributes

  • echo.models.get(ENTRY_ID).hologram is the .glb model whose physical properties can be changed programmatically.
  • echo.models.get(ENTRY_ID).direction is the direction information that is pulled down from the console in transformations(). Look at the examples below to see how to rotate models in an animate() function.
  • echo.models.get(ENTRY_ID).url is the URL of the .glb model.
  • echo.models.get(ENTRY_ID).imageTarget is the file name of the image target if one exists. Otherwise it is null.

ThreeJS

  • To initially load the models into the JavaScript map, type echo.findObject(false, function(data) { // CODE }), where any code put inside the callback function will run after the models are fully loaded into the map.

Accessing and changing physical characteristics

  • Position: echo.models.get(ENTRY_ID).hologram.position
  • Rotation: echo.models.get(ENTRY_ID).hologram.rotation
  • Scale: echo.models.get(ENTRY_ID).hologram.scale

A-Frame

  • To initially load the models into the JavaScript map, type echo.findObject(true, function(data) { // CODE }), where any code put inside the callback function will run after the models are fully loaded into the map.

Accessing and changing physical characteristics

  • Position: echo.models.get(ENTRY_ID).hologram.object3D.position
  • Rotation: echo.models.get(ENTRY_ID).hologram.object3D.rotation
  • Scale: echo.models.get(ENTRY_ID).hologram.object3D.scale

Run

  • Press Save+Build to build your 8th Wall project.
  • Press Preview and scan the QR code to run the project on your phone.

Learn more

Refer to our documentation to learn more about how to use echo3D.

Support

Feel free to reach out at [email protected] or join our support channel on Slack.

Screenshots

AFrame Image Target Exmaple

A-Frame Image Targets

AFrame Manipulate 3D Model Exmaple

A-Frame Manipulate 3D Model

A-Frame Place Ground Exmaple

A-Frame Place Ground

About

Demo that integrates echo3D with 8th Wall examples.

www.echo3D.co

Topics

8thwallecho3d

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.