Code Monkey home page Code Monkey logo

Comments (6)

Naxela avatar Naxela commented on September 27, 2024 1

Hi, and thanks for using the addon!

That seems strange, although it could be that there's a bug in 3.2+ that I haven't caught. Does it work of you turn off "apply modifiers"? Also, your meshes aren't linked or multi-user by any chance?

Edit: Do you have the option to share the scene?

from the_lightmapper.

jywarren avatar jywarren commented on September 27, 2024

It seems to be failing on this step:

if scene.TLM_SceneProperties.tlm_apply_modifiers:
if bpy.context.scene.TLM_SceneProperties.tlm_verbose:
print("Applying modifiers to: " + obj.name)
bpy.context.view_layer.objects.active = obj
obj.select_set(True)
bpy.ops.object.convert(target='MESH')

from the_lightmapper.

jywarren avatar jywarren commented on September 27, 2024

And I am able to bake on a simple model like a cube and plane, as in the wiki example.

from the_lightmapper.

jywarren avatar jywarren commented on September 27, 2024

I wonder if my model is improperly constructed in some way. It's quite complex, imported from another program:

image

Any advice on how to work with such models, or to convert them in some way? Cycles is able to render lights within Blender, i just get this error when baking.

from the_lightmapper.

jywarren avatar jywarren commented on September 27, 2024

Thank you for writing back so quickly! Turning off that option didn't help; same result.

https://drive.google.com/file/d/1B7FXu2rZnzIh8rbdBFPkHMSPXKyADfNb/view?usp=sharing

Here is the file -- I tried it in Blender 3.0.1 and it runs without an error, although it seems to have some trouble that I can probably follow tutorials to work through:

Screen Shot 2022-09-09 at 10 50 45 AM

Thank you again!

from the_lightmapper.

Naxela avatar Naxela commented on September 27, 2024

@jywarren Sorry about the late reply. Seems like my github replies went into the spam folder. - I testes the file and I couldn't quite reproduce the bug, but I was wondering if you turn on the verbose option in the settings, does it say anything in more detail when it crashes/produces the bug?:

image

By default it shouldn't be too much hassle to ligthmap and scene like that one with a bit of uv adjustment and denoising. One thing I did notice was that there's lot of backfacing normals, which means that the light won't reach the surfaces:

image

Select all the objects and going to Mesh > Normals > Recalculate Outside seems to fix a lot of them:

image

from the_lightmapper.

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.