Comments (3)
Hey @shaneparsons - based on your description you're really describing some form of 3D geometry or scene.
- locations (user and place)
- points their phone towards (e.g. a direction vector)
- have the user see a pin in front of the place
The easiest and most performant way to manage 3D geometry on the web is using WebGL as it is optimised to use GPUs and provides all the required 3D math in a highly optimised format.
So I'd recommend just using a standard awe scene and using the simple API calls as discussed in your other ticket.
If you want the object to always face the user then you can utilise the lookAt()
function. Just walk through the array of your pois. And tell each of them to look at the camera.
awe.pois.list().forEach(function(poi) {
poi.get_mesh().lookAt(awe.pov().position);
});
If you combine this with the other ticket and the files in the examples repos it should definitely give you everything you need to get started. But please let us know if you have any other questions.
from awe.js.
Hi @shaneparsons - it's not 100% clear what you mean from your comment above.
If you just want to add a persistent flat overlay image you can simply add an html overlay on top of your awe scene. The whole awe.media UI is implemented that way.
But when you say "in front of a chosen location" then you are actually implying a spatial component, which by definition includes position and rotation. This is then something best dealt with inside the awe scene - and that's exactly what 3D objects with textures delivers.
BTW: The file format of these textures is defined by WebGL and your browser's graphics layer implementation and is not just limited to .png.
If you can provide a bit more detail about what you mean then we'll try to help you further.
from awe.js.
Basically, I just want to add a marker (similar to a pin on a map) to areas of interest as a person walks through town (e.g if somebody points their phone towards the beerstore, I'd like to show a pin in front of it based on its coordinates).
I just want the pin to be a flat image, that always faces the user, and I just figured if there's a way to do it with a flat image, rather than applying a texture to a plane object, it wouldn't use as many resources to render.
Let me know if it's still not clear enough.
from awe.js.
Related Issues (20)
- what can I pass in texture in awe.projections.add as displaying image? HOT 1
- how to animate or update image via texture using six different frames? HOT 1
- how to load .fbx file to animate an object? HOT 1
- Is texture property supported in awe.pois.update({data:{})? HOT 1
- how to unregister click event HOT 2
- Why object is going on beside of its actual position when an object is clicked/tapped? HOT 1
- how can i shake object from center on device? HOT 1
- object is appearing on another angle HOT 1
- Adding video texture to projections in an onclick event (Android) HOT 1
- texture not load HOT 1
- Use augmented reality in STEREO mode with AWE HOT 1
- Augmented Reality with camera active, with background black, for Hololens. HOT 1
- Non Mobile platform HOT 1
- Dispose method HOT 1
- Nothing HOT 1
- Text Example HOT 1
- How can I reload/update/change .obj model? HOT 2
- projection scale not working HOT 1
- Is there a function to manually run snapshot function HOT 5
- How do I link my AR scene to another scene in the same project?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awe.js.