mcneel / glTF-IO

glTF exporter for Rhinoceros. Supports: mode-text, mode-binary, binary-draco, materials, and textures.
MIT License
9 stars 2 forks source link

Does this plugin works with Rhino Compute? #33

Open ryok90 opened 11 months ago

ryok90 commented 11 months ago

I've trying to import from Grasshopper using a C# script to do it. It works fine when using Rhino but through Rhino Compute the import comes false. Has anybody successfully imported through Compute?

I am doing something like this

var Filepath = "/some/file/path.glb";
using( var doc = RhinoDoc.CreateHeadless(null) ){
    Boolean result = doc.Import(Filepath); // `result` comes `false` when using through compute but `true` on Rhino
}
jrz371 commented 10 months ago

Hi, it should work with compute. I couldn't tell you off the top of my head why it wouldn't. This repository is for glTF IO plugins that ship with Rhino 8. I'm guessing your compute instance is Rhino 7 which doesn't include these plugins.

ryok90 commented 10 months ago

Oh my! I didn't realize that. Yes, we are running on Rhino 7.

But how come this plugin works fine with Rhino 7 when running "headfull" instead of on Compute?

Nevertheless, thank you for the answer!

jrz371 commented 10 months ago

Can you paste the system info for both here?

ryok90 commented 10 months ago

It is an r6i.xlarge EC2 instance running the latest Windows Server they have.

jrz371 commented 10 months ago

I mean copy the output of the SystemInfo command in Rhino. I wanna see what plugins you have installed

ryok90 commented 10 months ago

Oh I see. There you go, but it doesn't show any plugins even though I have them installed.

Rhino 7 SR34 2023-9-24 (Rhino 7, 7.34.23267.11001, Git hash:master @ a37d83041828484840f2448d5b3e3770e46694f9)
License type: (null), build 2023-09-24
License details: Cloud Zoo

Windows 10 (10.0.20348 SR0.0) (Server) or greater (Physical RAM: 31Gb)

Computer platform: DESKTOP (Hosting Remote Desktop session)

Standard graphics configuration.
  Primary display: Microsoft Remote Display Adapter (Microsoft) Memory: 0MB, Driver date: 6-21-2006 (M-D-Y).
    > Remote Desktop display device with 16 connection(s)
        - Windows Main Display using connection #0
  Primary OpenGL: GDI Generic: Microsoft Corporation. OpenGL Ver: 1.1.0
    > No graphics device is being used for OpenGL

Secondary graphics devices.
  Microsoft Basic Display Adapter (Microsoft) Memory: 0MB, Driver date: 6-21-2006 (M-D-Y).
    > External USB display device with 0 adapter port(s)
        - There are no monitors attached to this device!

OpenGL Settings
  Safe mode: Off
  Use accelerated hardware modes: On
  Redraw scene when viewports are exposed: On
  Graphics level being used: OpenGL 0.0 (primary GPU's maximum)

  Anti-alias mode: 4x
  Mip Map Filtering: Linear
  Anisotropic Filtering Mode: High

  Vendor Name: Microsoft Corporation
  Render version: 0.0
  Shading Language: Not supported
  Driver Date: (null)
  Driver Version: (null)
  Maximum Texture size: 1024 x 1024
  Z-Buffer depth: 32 bits
  Maximum Viewport size: 16384 x 16384
  Total Video Memory: n/a

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
  C:\Program Files\Rhino 7\Plug-ins\Commands.rhp    "Commands"  7.34.23267.11001
  C:\Program Files\Rhino 7\Plug-ins\WebBrowser.rhp  "WebBrowser"    
  C:\Program Files\Rhino 7\Plug-ins\rdk.rhp "Renderer Development Kit"  
  C:\Program Files\Rhino 7\Plug-ins\RhinoScript.rhp "RhinoScript"   
  C:\Program Files\Rhino 7\Plug-ins\IdleProcessor.rhp   "IdleProcessor" 
  C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp   "Rhino Render"  7.34.23267.11001
  C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp   "RDK_EtoUI" 7.34.23267.11001
  C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp  "Renderer Development Kit UI"   
  C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp  "Snapshots" 
  C:\Program Files\Rhino 7\Plug-ins\Alerter.rhp "Alerter"   
  C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp "RhinoCycles"   7.34.23267.11001
  C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp   "Toolbars"  7.34.23267.11001
  C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp    "3Dconnexion 3D Mouse"  
  C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp    "Displacement"  
ryok90 commented 10 months ago

image

thipokch commented 5 months ago

@jrz371 I’m having the same exact issue when importing / exporting .glb/.gltf as well. This only happens when I’m exporting a headless RhinoDoc on HOPS / compute.rhino. It works fine in UI mode though.

I'm running Rhino 8.5.24072.13001

jrz371 commented 5 months ago

Hi, I think this is the issue. I plan on looking at it soon.