Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Lesson Menu Cards #6

Open
CodeRhymesLife opened this issue Feb 8, 2016 · 0 comments
Open

Create Lesson Menu Cards #6

CodeRhymesLife opened this issue Feb 8, 2016 · 0 comments
Assignees
Milestone

Comments

@CodeRhymesLife
Copy link
Owner

Menu cards are generic rectangles that display information about an option within a particular context. For example, lesson cars should display simple information about available lessons. Something like this:

image

Here's a library you can use to add text in aframe: https://github.com/ngokevin/aframe-text-component. And here's an example of how I used it in the hackathon: https://github.com/drryanjames/MiniSeaVR-Anatomy-Explorer/blob/master/site/client/index.html. And here are the steps I took to use it:
1. Save aframe-text-component.js to our repo
2. Link aframe-text-component.js in index.html html <script src="path/to/js/aframe-text-component.js"></script>
3. Create an entity with text: html <a-entity text="text: some value" material="color: blue"></a-entity>

After you've created a simple card put multiple cards next to one another, like this:
image

When a card is hovered it should grow a little show show that it can be selected. To grow a card you can either increase it's scale or move it closer to the camera by modifying the z position.

Finally, when a user looks towards the red dotted boxes in the image above, the cards should scroll left or right depending on which box they look at. You should be able to do this by adding an invisible plane html <a-plane visible="false"> element, detect when the cursor hovers over it using jquery, and modify the position of the cards by setting their position using jquery ``javascript $("selector for cards").get(0).setAttribute("position", "x y z");`

These are just suggestions, BTW. Feel free to do everything your own way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants