Git Product home page Git Product logo

g.frame's People

Contributors

danyshevvbt avatar mreuler avatar olehsaveniukvbt avatar toshevalexander avatar vbt-ytokan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mreuler

g.frame's Issues

Try to move Viewer to Modules.

Not sure how it will look like.. But let's think about it.
Viewer -> AbstractModule
|---> PerspectiveCamera is instance
|---> WebGLRenderer is instance
|---> Scene is instance

Or we can divide viewer in to several pieces:

WebGLModule -> WebGLRenderer
PerspectiveCameraModule -> PerspectiveCamera
Scene is always in ModulesProcessor as main root Object3D

Any thoughts? ๐Ÿค”

You can't control OrbitControls from DesktopModule.

Currently user has to write next code to access OrbitControls:

const orbitControls = modulesProcessor.modulesInstances.get(DesktopModule)[1];

It should be the same as for DesktopActionController, so just accessing Agent:

const controls = modulesProcessor.agents.get(Controls);

ControlsAgent should provide user with ability to set different positions for different platforms. For example:

const controls: ControlsAgent = modulesProcessor.agents.get(Controls);
controls.setPositions({
    DESKTOP: new Vector3(1,2,3) / [1, 2, 3] / 0,
    QUEST: new Vector3(1,2,3) / [1, 2, 3] / 0,
    PLATFORM_Z: new Vector3(1,2,3) / [1, 2, 3] / 0
})

The same should be for rotations.
To get specific controls, user can write next code:

const controls: ControlsAgent = modulesProcessor.agents.get(Controls);
const orbitControls: OrbitControls = controls.getSpecific(OrbitControls);

To be continued...

Remove Bootstrap class. Use default AbstractModule for application bootstrapping.

What is Bootstrap class? Bootstrap class (BC) is used to define application start point. Exactly here all the application logic will be described. From BC come all features.
What is the main difference between AbstractModule and BC? AbstractModule has wider lifecycle than BC. But BC gets ModulesProcessor instance as argument during initialisation. AbstractModule gets only part of it during afterInit.
Why do we need it? Just because we can ๐Ÿ˜‚. But really, because of lifecycle and easier (more standard) management from ModulesProcessor side.
When do we need it? For sure before opensourcing this framework.
How could we support old applications? No way to support. We should go with new version.

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.