Comments (7)
We can try to generate model images automatically. Write a function that will take images of all models. If all models are already loaded into page memory, then this should not take up many resources?? But I'm not sure if this is a good idea.
Maybe It might be better to have such a generator as a separate script, which will create images of models and place them in a separate folder. The downside here is that we will have to load all images of models onto the page from the server
from 3dstreet.
@Algorush we already have a script that can generate jpegs from gltf, see https://github.com/3DStreet/citybuilderjr
this task is the ability for the add entity panel to reference some sort of json like catalog.json for the image file. How we create the image file is a task for another ticket (or to be done manually)
from 3dstreet.
this task is the ability for the add entity panel to reference some sort of json like catalog.json for the image file.
Ok, got it.
Now there is a file cardsData.js
, where img, icon, name for each mixinId can be stored. It is better to rename it to mixinsData.js
, because there will be only mixins data now. Use this data in the getGroupedMixinOptions
function in addLayerPanel
:
We can also remove the grouping logic from this function and instead divide the mixins into groups inside mixinsData.js. Like in src/assets.js.
from 3dstreet.
@Algorush I tried adding an image to Bicycle_1
mixin in this branch: #683 but I was not able to make it work. Can you check it out and suggest what I might be doing wrong?
from 3dstreet.
@Algorush I tried adding an image to
Bicycle_1
mixin in this branch: #683 but I was not able to make it work. Can you check it out and suggest what I might be doing wrong?
also need to import mixinsData
from cardsData.js
file in AddLayerPanel.component.js
and add img: mixinsData[mixinId]
here:
same for description. I was mention here about it: #632 (comment)
from 3dstreet.
@Algorush since this is not implemented yet per se, instead of using cardsData.js I'd like to use the catalog.json file. I have uploaded this in the PR here: #683
Please add support in the AddLayerPanel.component.jsx file to reference catalog.json and use the id, img, name and description fields (if existing) to match with mixins in the add layer panel to provide preview image, display name, and description.
from 3dstreet.
@Algorush since this is not implemented yet per se, instead of using cardsData.js I'd like to use the catalog.json file. I have uploaded this in the PR here: #683
Please add support in the AddLayerPanel.component.jsx file to reference catalog.json and use the id, img, name and description fields (if existing) to match with mixins in the add layer panel to provide preview image, display name, and description.
So far I've done it with what I have. But I think that for better performance, it is better to store mixins divided into groups in catalog.json
. And if later use the code from citybuilderjr, then adapt it a little for groups.
Since there are quite a lot of calculations in the addLayerPanel
component
from 3dstreet.
Related Issues (20)
- new file menu
- nour: additional objects to support mid block crosswalks
- setting elevation incorrect outside of west coast north america
- internationalization HOT 1
- improve posthog usage HOT 1
- remove 1 second 'debounce' from scenegraph update
- mailchimp functions use outdated node version
- error when first placing 3dtiles HOT 6
- cannot change title after opening scene from another user before I save HOT 1
- create basic privacy policy
- Add sign up prompt when non-authed user comes in from streetmix
- skybox is too small HOT 1
- saving and reloading a scene makes streetmix / street component properties not visible HOT 7
- improvements to asset metadata
- create 20 metadata entries in cardsData.js for models
- fix / update variant launch ar key HOT 1
- Last Login in users table doesn't seem to be accurate
- google.maps.Marker is deprecated
- 'DOMSubtreeModified' mutation event is deprecated (in assets.js)
- add undo for geospatial
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 3dstreet.