Giter Site home page Giter Site logo

timsdesigns / gltf-export Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 19.84 MB

Grasshopper Plugin for web export of 3d models

Home Page: https://www.food4rhino.com/en/app/gltf-web-exporter?lang=en

License: MIT License

C# 100.00%
gltf grasshopper rhino rhino8 grasshopper-export

gltf-export's Introduction

Web_Exporter

A Grasshopper Plugin for web export of 3d models

Content

Workflow

  • some examples alt text

Testfile

Export

  • exported gltf1st Result

Motivation

  • I recently saw that shapediver is now suggesting to use the Rhino8 native gltf export, so I wrote the script to leverage that.

Component Descriptions

Component Icon GLTF-Export

  • This Component implements two ways to output the gltfs
  1. It outputs the entire scene
  2. It outputs only the grasshopper geometry

Component Icon GLTF-Options (Optional) [v1.1.0+]

  1. Draco Compression
  2. Formatting
  3. Mesh Settings

Adding Materials

gltf-export's People

Contributors

timsdesigns avatar lin-ycv avatar

Watchers

 avatar

gltf-export's Issues

Debugging with Visual Studio

The Plugin doesn't load for debugging:

  • Issue to reproduce:
    • GrasshopperDeveloperOptions > Add Assembly > .\GH-Helper\Web_Exporter\GLTF-Export\bin\Debug\net7.0
    • Start debug Session from within Visual Studio
    • hit space bar and type Gltf Exporter or gltfExp
    • the component doesn't show up
  • Workaround:
    • drag and drop the latest .gha from bin onto canvas during debug session
  • Possible Causes:
    • the postbuilt event in the .\Web_Exporter.csproj under Target
      (added because according to MS the <TargetExt>.gha</TargetExt> isn't supported in .net7 anymore) is:
      • renaming the .dll after the debugger starts rhino/grasshopper
      • causing some other issue
    • my machine has issues with loading Assemblies through GrasshopperDeveloperOptions
    • some other Rhino8 or .net7 related problem

Casting to ArchivableDictionary

image
AddGenericParameter does not work for Rhino.Collections.ArchivableDictionary, also GH_ParamAccess.itemseems to create an issue for this.

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.