Coder Social home page Coder Social logo

gltf's People

Contributors

fire avatar lyuma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gltf's Issues

blender 2.82 import fails and Yup2Zup is not parented properly

While exporting from the govox sample project from https://github.com/jamie-pate/govox
(see attached zip for a canned version)

Exporting the 'main.tscn' -> 'main.gltf2' works fine, but when importing there are errors in blender.

The platform should be a horizontal plane, but it's vertical
image

blender GLTF2 import:

Traceback (most recent call last):
  File "/usr/share/blender/scripts/addons/io_scene_gltf2/__init__.py", line 850, in execute
    return self.import_gltf2(context)
  File "/usr/share/blender/scripts/addons/io_scene_gltf2/__init__.py", line 864, in import_gltf2
    if self.unit_import(path, import_settings) == {'FINISHED'}:
  File "/usr/share/blender/scripts/addons/io_scene_gltf2/__init__.py", line 887, in unit_import
    BlenderGlTF.create(self.gltf_importer)
  File "/usr/share/blender/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py", line 41, in create
    BlenderScene.create(gltf, scene_idx)
  File "/usr/share/blender/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_scene.py", line 80, in create
    BlenderNode.create(gltf, node_idx, None)  # None => No parent
  File "/usr/share/blender/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_node.py", line 174, in create
    BlenderNode.create(gltf, child_idx, node_idx)
  File "/usr/share/blender/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_node.py", line 64, in create
    mesh = BlenderMesh.create(gltf, pynode.mesh, node_idx, parent)
  File "/usr/share/blender/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py", line 67, in create
    BlenderPrimitive.add_primitive_to_bmesh(gltf, bme, pymesh, prim, material_idx)
  File "/usr/share/blender/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_primitive.py", line 136, in add_primitive_to_bmesh
    blender_num_components = len(bme_verts[0].link_loops[0][layer])
IndexError: BMElemSeq[index]: index 0 out of range

location: <unknown location>:-1

govox-yup2zup-gltf2.zip

system-info.txt

Restore CSG export support

HungryProton

if csg.is_root_shape():
  csg._update_shape()
  var mesh_instance = MeshInstance.new()
  mesh_instance.transform = csg.get_meshes()[0]
  mesh_instance.mesh = csg.get_meshes()[1]

oh btw, make sure the csg node is inside the node tree when calling update_shape(), it doesn't work otherwise. I'm not sure it's the proper way to do it though, _update_shape is named like a private method so it's weird to have to call it manually but I haven't found another way.

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.