Git Product home page Git Product logo

ecohomes's Introduction

Den-Demo

This demo showcaes the ease of development of a Montage application by leveraging components, bindings, listeners, and the declarative approach and toolset promoted by Montage. It is intended for public distribution; though the history will be truncated prior to posting. Regardless, please keep confidential information to a minimum.

Installation

  1. Install git
  2. Install nodejs (http://nodejs.org)

Autopilot Everything:

  1. sudo npm install minit -g && git clone [email protected]:declarativ/den-demo.git && cd den-demo && npm install && minit serve
  2. Open the url reported by the previous command in a browser

Manual Installation:

  1. After cloning this repository, cd den-demo
  2. Run npm install
  3. Browse to your clone as served by your local system e.g. http://localhost:8081/den-demo

Throughout the course of development run npm update to fetch the latest dependencies

NOTE: Prior to running npm update remove glTF-webgl-viewer from node_modules, (rm -rf node_modules/glTF-webgl-viewer)

Contributing

  • Run jshint on your code to ensure it conforms to our standards

  • Make sure all commit messages follow the 50 character subject/72 character body formatting used throughout git

  • Make sure commit messages start with uppercase present tense commands e.g. Prefer "Clear selection when clicking new button" over "Cleared selection when clicking new button"

  • When adding or updating dependencies list the EXACT version of the dependency to minimize differences when building at different times. i.e. treat package.json as a shrinkwrapped dependency specifier

3D Components and Objects

The following points about 3D do not cover - yet - Scene and View. Please ping @fabrobinet if needed.

Assigning a viewPoint

A viewPoint is a node that contains a camera.
Just like any other node in the scene a viewpoint has transform that is potentially a target for an animation.

For example you can create & configure a viewPoint named "viewPoint0" - either in lumiere or by adding this serialization:

        "viewPoint0": {
            "prototype": "glTF-webgl-viewer/runtime/node",
            "properties": {
                "id": "node-camera001",
                "scene": {"@": "scene1"}
            }
        },

In this example:

  • id refers to the id of a Node the glTF file
  • scene points to the Scene object

Then this viewPoint is referred by a View as in:

        "view": {
            "prototype": "glTF-webgl-viewer/ui/view.reel",
            "properties": {
                "element": {"#": "colladaView"},
                "height": "768",
                "scene": {"@": "scene1"},
                "viewPoint": {"@": "viewPoint0"},
                "width": "674"
            }
        },

Dealing with viewPoints in the "loft" 3d scene

First of all, to get an idea of where are located the nodes that contains a camera (i.e viewpoints) you can look at the glTF file, as in :

        "node-Camera": {
            "camera": "camera_6",
            "name": "Camera",
            "rotation": [
                0.676486,
                0.390273,
                0.624542,
                1.49155
            ],
            "scale": [
                1,
                1,
                1
            ],
            "translation": [
                70.9776,
                -22.4153,
                50.3661
            ]
        },
        "node-LookAtBar": {
            "camera": "camera_5",
            "children": [],
            "name": "LookAtBar",
            "rotation": [
                -0.168108,
                0.559335,
                0.811717,
                3.62017
            ],
            "scale": [
                1,
                1,
                1
            ],
            "translation": [
                95.5895,
                -193.301,
                82.9342
            ]
        },

and so on...

At the time of writing this, the viewPoints for the "ride", i.e the animated ones are: node-camera001, node-camera002, node-camera003

The viewpoints without animation, just to "look at" a point of interest are: node-LookAtBar, node-LookAtBooks, node-LookAtFridge, node-LookAtLivingRoom, node-LookAtStairs, node-LookAtWindow,

The recommanded way to go to a static viewPoint is to:

  • set the viewPoint on the view
  • call the pause action on the view

Then to resume the ride:

  • set the viewPoint with node-camera001 on the view
  • call the play action on the view

ecohomes's People

Contributors

simurai avatar mczepiel avatar fabrobinet avatar aadsm avatar romancortes avatar francoisfrisch avatar hthetiot avatar mikokim avatar marchant avatar spearway avatar jonfu86 avatar asolove avatar kriskowal avatar pierrefrisch avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar James Cloos avatar Johnny Miller avatar  avatar David Witherspoon avatar John Fallows avatar Thibault Zanini avatar  avatar sliumontage avatar Corentin Debost avatar Thomas Jaede avatar RD avatar

ecohomes's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.