Giter Site home page Giter Site logo

Comments (4)

Scellow avatar Scellow commented on September 26, 2024

image

Traceback (most recent call last):
  File "C:\Users\Scellow\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_g3d\g3d_exporter.py", line 116, in execute
    return self.startExport(context)
  File "C:\Users\Scellow\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_g3d\profile.py", line 33, in profile_fun
    return fun(*args, **kwargs)
  File "C:\Users\Scellow\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_g3d\g3d_exporter.py", line 140, in startExport
    materials = self.generateMaterials(context)
  File "C:\Users\Scellow\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_g3d\profile.py", line 33, in profile_fun
    return fun(*args, **kwargs)
  File "C:\Users\Scellow\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_g3d\g3d_exporter.py", line 543, in generateMaterials
    raise RuntimeError("Can't have a model without materials, use at least one material in your mesh objects.")
RuntimeError: Can't have a model without materials, use at least one material in your mesh objects.

location: <unknown location>:-1


from libgdx_blender_g3d_exporter.

Scellow avatar Scellow commented on September 26, 2024

Here is a FBX that only contains the animation
I tried to add a mesh with a material so i can strip the animation data, but there was nothing, looks like it didn't recognize it at all

test.zip

from libgdx_blender_g3d_exporter.

Scellow avatar Scellow commented on September 26, 2024

I can't seems to figure out why it doesn't recognize the animation from my FBX :/

from libgdx_blender_g3d_exporter.

Dancovich avatar Dancovich commented on September 26, 2024

I'm on my phone now but I'll take a look into this (and into your pull request) as soon as I can.

From what I remember the G3D format represents animations as a series of transforms to bones, represented in the file as meshless nodes, and then the actual model nodes are linked to these bones with a weight ratio.

So in the G3D file you need at least the bones to be exported. I took a quick look into your code and it seems if I check the "only animation" option then armatures aren't exported? If that's the case I don't think it will work. I'll have to take a look into this.

from libgdx_blender_g3d_exporter.

Related Issues (18)

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.