Code Monkey home page Code Monkey logo

Comments (3)

mswaidan avatar mswaidan commented on June 16, 2024

That strategy seems fine. Can we also expand from just colors to materials? Something like:

properties.spkMaterial = {
  type: diffuse, specular, etc.
  color: rgba OR map
  specular: float OR map
  bump  = map
  etc. }

Obviously we don't want to send a bunch of material maps back and forth for each object / layer. Maybe theres a SpeckleMaterial that is referenced by objects/layers instead? Thoughts?

from speckleviewer.

didimitrie avatar didimitrie commented on June 16, 2024

Hm... If any texture info is just a pointer to a resource we can request async, i'm happy. I would not store such things in the db though.

I do believe both would be good, ie can have just a simple colour, or if really keen, a sweet material.

So I would say yes to a SpeckleMaterial of sorts (maybe we'll get inspired by gltf), but one with textures only for version 2.0 (as that's when we're going to add a s3-compat layer, where we can store blobs efficiently), and for 1.0 colour (simple) and material (no textures). Does that make any sense?

from speckleviewer.

didimitrie avatar didimitrie commented on June 16, 2024

closed in #78

from speckleviewer.

Related Issues (20)

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.