Core parts:
Should include a link to the low resolution and high resolution models.
| addMap () { | |
| if (this.map) { | |
| return | |
| } | |
| // fix weird map reload bug | |
| let bm = document.querySelector('.big-map') | |
| bm.innerHTML = '' | |
| bm.className = 'big-map' | |
| bm['_leaflet_id'] = null |
| var wireframe = false; | |
| var turntable = false; | |
| var logfps = true; | |
| var ibl = false; | |
| var rtt = false; | |
| var xr = false; | |
| var httpRequest; | |
| function makeRequest() { |
| hasBudgetFor (feature) { | |
| let count = this.features.filter(f => f.type === feature.type).length | |
| if (isLowPerformance()) { | |
| if (feature.type === 'particles') { | |
| return count < 4 | |
| } else if (feature.type === 'polytext') { | |
| return count < 6 | |
| } else if (feature.type === 'image') { | |
| return count < 100 |
| // MUNRO MUNRO MUNRO | |
| // | |
| define( | |
| [], | |
| function(){ | |
| return function(codeList){ | |
| var font={reverseHoles:false,reverseShapes:true},nbsp=' '; |
| import * as B from 'babylonjs' | |
| import { h, render, Component } from 'preact' | |
| interface Props { | |
| texture?: B.GUI.AdvancedDynamicTexture | |
| } | |
| class GuiComponent extends Component<Props, any> { | |
| control: B.GUI.Control |
| const BABYLON = require('babylonjs') | |
| var createScene = function () { | |
| // Create the scene space | |
| var scene = new BABYLON.Scene(engine); | |
| // Add a camera to the scene and attach it to the canvas | |
| var camera = new BABYLON.ArcRotateCamera("Camera", Math.PI / 2, Math.PI / 2, 4, BABYLON.Vector3.Zero(), scene); | |
| camera.attachControl(canvas, true); |
| generate () { | |
| const text = this.description.text | |
| let options: any = { | |
| width: this.scale.x * 128 * 2, | |
| height: this.scale.y * 128 * 2, | |
| } | |
| // Make a dynamic texture | |
| var dynamicTexture = new B.DynamicTexture('sign-texture', options, this.scene, true) |
| 3Box is a social profiles network for web3. This post links my 3Box profile to my Github account! | |
| ✅ did:muport:QmZo3TizQ6yEJb1teDcACzQjAxXMtieRY9EAX6jHgqmbzh ✅ | |
| Create your profile today to start building social connection and trust online. https://3box.io/ |
These are my thoughts on the MOMS architecture:
Monolith with Opensource Microservices.
Basically, you write your app as a monolith because its quick and easy.
And when you have a subsystem of sufficient complexity and independent enough (doesn’t require being deeply enmeshed in your app), you split it out to a microservice that you opensource.
By opensourcing it, it makes you think of how other people might use it, so you make the APIs a bit more generic, you document it better with a readme, and you standardise the deployment so it’s easy for you to deploy.