All Projects โ†’ alvinwan โ†’ aframe-low-poly

alvinwan / aframe-low-poly

Licence: MIT license
low poly add-ons for aframe virtual reality

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to aframe-low-poly

Aframe Inspector
๐Ÿ” Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
Stars: โœญ 469 (+2505.56%)
Mutual labels:  aframe, virtual-reality
Superframe
๐Ÿ“ฆ A super collection of A-Frame components.
Stars: โœญ 1,061 (+5794.44%)
Mutual labels:  aframe, virtual-reality
A Painter
๐ŸŽจ Paint in VR in your browser.
Stars: โœญ 539 (+2894.44%)
Mutual labels:  aframe, virtual-reality
aframe-globe-component
3D Globe data visualization component for A-Frame
Stars: โœญ 27 (+50%)
Mutual labels:  aframe, virtual-reality
Aframe
๐Ÿ…ฐ๏ธ web framework for building virtual reality experiences.
Stars: โœญ 13,428 (+74500%)
Mutual labels:  aframe, virtual-reality
Ideaspace
๐Ÿ˜Ž Create interactive 3D and VR web experiences for desktop, mobile & VR devices
Stars: โœญ 344 (+1811.11%)
Mutual labels:  aframe, virtual-reality
Aframe Persist Component
Persisting Aframe attribute data using localStorage
Stars: โœญ 10 (-44.44%)
Mutual labels:  aframe, virtual-reality
aframe-registry
[DISCONTINUED] Curated collection of community A-Frame components.
Stars: โœญ 76 (+322.22%)
Mutual labels:  aframe, virtual-reality
Awesome Aframe
[DISCONTINUED] Collection of awesome resources for the A-Frame WebVR framework.
Stars: โœญ 1,310 (+7177.78%)
Mutual labels:  aframe, virtual-reality
Aframe React
:atom: Build virtual reality experiences with A-Frame and React.
Stars: โœญ 1,199 (+6561.11%)
Mutual labels:  aframe, virtual-reality
Networked Aframe
A web framework for building multi-user virtual reality experiences.
Stars: โœญ 803 (+4361.11%)
Mutual labels:  aframe, virtual-reality
lvr
๐Ÿ‘“ Augmented Reality for everyone - Out of the world experiences
Stars: โœญ 92 (+411.11%)
Mutual labels:  aframe, virtual-reality
Mathworldvr
Math world in WebVR, powered by A-frame.
Stars: โœญ 73 (+305.56%)
Mutual labels:  aframe, virtual-reality
a-blast
๐Ÿ’ฅ Save the World From the Cutest Creatures in the Universe!
Stars: โœญ 116 (+544.44%)
Mutual labels:  aframe, virtual-reality
virtual-reality-tour
๐Ÿ“ Virtual reality travel in Google Street View.
Stars: โœญ 34 (+88.89%)
Mutual labels:  aframe, virtual-reality
omegalib
A hybrid visualization framework for desktops, large immersive displays and the web
Stars: โœญ 74 (+311.11%)
Mutual labels:  virtual-reality
aframe-bmfont-text-component
A-Frame component for rendering bitmap fonts.
Stars: โœญ 62 (+244.44%)
Mutual labels:  aframe
AnotherBadBeatSaberClone
This is a discontinued but perhaps helpful VR project created during my Master's degree at FH Wedel.
Stars: โœญ 22 (+22.22%)
Mutual labels:  virtual-reality
colibri-vr-unity-package
This is the Unity package for COLIBRI VR, the Core Open Lab on Image-Based Rendering Innovation for Virtual Reality.
Stars: โœญ 41 (+127.78%)
Mutual labels:  virtual-reality
aframe-keyboard
An Aframe component that renders a fully functional 3D keyboard, that works on mobile, desktop browers, and VR headsets!
Stars: โœญ 23 (+27.78%)
Mutual labels:  aframe

A-Frame Low Poly

Low poly add-ons for a-frame virtual reality models. View the aframe low-poly demo ยป

Screen Shot 2019-05-30 at 11 42 04 PM

Take any existing a-frame primitive, such as a-sphere and replace the prefix to obtain a low-poly version, such as lp-sphere. For example, the below is a low-poly sphere for a tree's foliage:

<lp-sphere color="#59810C" max-amplitude="0.2" position="0 0.6 0"></lp-sphere>

The above spheres are used in the demo pictured below at aaalv.in/vr/low-poly-trees. For more, see aaalv.in/vr

screen shot 2018-11-24 at 11 32 11 pm

Usage

Looks like what you need? To get started, include the minified javascript in your a-frame project.

<script src="https://cdn.jsdelivr.net/gh/alvinwan/[email protected]/dist/aframe-low-poly.min.js"></script>

Low-Poly Attributes

Every low-poly object supports the following attributes. Modify the following attributes just like you would any other AFrame VR attribute:

max-amplitude: <x double> <y double> <z double>

min-amplitude: <x double> <y double> <z double>

Maximum and minimum amount of perturbation allowed for each vertex. The vertex will not be moved more or less than this amount away from the original position.

Example:

<lp-plane max-amplitude="1 0 0" min-amplitude="0.5 0 0"></lp-plane>

seed

Seed for random-number generator, allowing you to fix randomness during design.

max-amplitude-difference: <x double> <y double> <z double> coming soon

min-amplitude-difference: <x double> <y double> <z double> coming soon

Maximum and minimum difference in perturbation between adjacent points. For now, use the curvature specification below to achieve a similar effect.

Terrain

LowPolyTerrain.registerCurvature(componentName, function({x, y, z}, {xmin, ymin, zmin}, {xmax, ymax, zmax})

Allows you to specify curvature of the surface. Function that accepts the vertex's original position and outputs the vertex's new position. This is applied before customizable randomization. All random perturbations are applied to the vertex's new position.

Example:

LowPolyTerrain.registerCurvature('sine', function (vertex, min, max) {
    var py = (vertex.y - min.y) / (max.y - min.y);
    var z = Math.sin(py * 2 * Math.PI) + min.z;
    return {x: vertex.x, y: vertex.y, z: z}
});

Cloning

clone=<selector>

Duplicate entire entities without repeating common HTML. For example, say you have a template tree and many trees in your environment. Simply create one tree, and use the clone attribute for the rest, changing the position and rotating as necessary. This keeps your code streamlined and eases development (e.g., changing tree trunks for all cloned trees involves a single-line change)

Example:

<a-entity id="tree" ... ></a-entity>
<a-entity clone="#tree"></a-entity>

Projects

Projects that use aframe-low-poly:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].