Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
awe.js
Advanced tools
Readme
It's the quickest and easiest way to create Augmented Web applications.
If you want to see what an awe.js app looks like just visit https://awe.media and setup a free demo.
Here's a few short videos that show you just how easy it is to create an awe app.
Or checkout some of our older demos showing showing different uses of awe.js
Then checkout the docs in our wiki.
It's what comes after html5!
It uses WebRTC, WebGL, WebVR and the modern sensor APIs to bring Augmented Reality and so much more to the web platform. It will completely change the way you and your users see the web.
Just add a <script src='js/awe.js'></script>
tag to your html page to turn that page into an Augmented Web application.
Now you are ready to create adaptive Augmented Web Experiences. awe.js
allows you to easily create and manage 3d objects, add and manage Video and Audio streams and integrate automatic handling of sensor driven data feeds.
See the examples/
and their plugins for more details.
To initialize your awe.js
application just call:
awe.init({
...
});
Once the awe_ready
event is fired then your awe.js
app is ready to start. Then you can call awe.setup_scene()
to setup your scene. NOTE: This must be called after awe_ready
has been fired.
To see this working try loading examples/basic_ar/index.html
in a suitable standards compliant browser.
The awe.js
API is consistently built upon a simple CRUD like model but the common actions are named list
, add
, view
, update
and delete
- see the v8.js
file included in the top of js/awe.js
for more detailed information.
Each awe.js
application consists of a 3d scene and into that scene you can add points of interest or pois. Each poi marks out a point in space that is important or useful for some reason. This can be the location of an object or it might be a point where a recognised object or marker is currently sitting. Then you can attach different types of media (e.g. 3d objects, videos, images and sounds) to each poi and these pieces of media are called projections.
To add an object (point of interest) into your scene just call:
awe.pois.add({ id: 'my_first_poi' });
To see all the points of interest in the scene call:
awe.pois.list();
To see the first poi you created call:
var poi = awe.pois.view('my_first_poi');
To see all the projections in the scene call:
awe.projections.list();
To rotate a poi and all it's children projections just call:
awe.pois.update({
data:{
rotation:{
y:180
}
},
where:{
id:'my_first_poi'
}
});
NOTE: It's important that you only manipulate your pois and projections using the awe.js
interface (e.g. awe.pois.update({ data:{...}, where:{...} }
) otherwise you will miss out on all the awe.js
automagic goodness.
{
id: 'poi_name',
scale: { x:1, y:1, z:1 },
position: { x:1, y:1, z:1 },
rotation: { x:0, y:0, z:0 },
visible: true,
}
{
id: 'projection_name',
scale: { x:1, y:1, z:1 },
position: { x:1, y:1, z:1 },
rotation: { x:0, y:0, z:0 },
geometry: { shape:'cube', x:10, y:10, z:10 },
material: { color:0xFF0000, opacity:1.0, transparent:true, wireframe:false, fog:true },
texture: { path:'example.jpg' },
visible: true,
cast_shadow: true,
receive_shadow: true,
},
{
poi_id:'poi_name',
}
Welcome to the future of the web - the Augmented Web!
FAQs
The jQuery for the Augmented Web
The npm package awe.js receives a total of 2 weekly downloads. As such, awe.js popularity was classified as not popular.
We found that awe.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.