-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bake lighting? #95
Comments
The problem with this is that MeshInstance3Ds that are generated in the editor can't have lightmaps baked unless their 'owner' property is set. But if the owner property is set, it will cause extra copies of it to be created every time you save and load the scene. I think there was some discussion of having the owner requirement removed to allow for baking, but this is something in Godot itself and I don't know if they're going to change this. If you're using the 1.0.2 dev version, you can export your scene to a gltf file and then use that for lighting. |
uh.... is the ``latest version``` is 1.0.2? |
The block nodes create a MeshInstance3D for displaying the geometry, a collision shape for the collision and also an occlusion node and they are all added as children to the block node. However, this is done by a script running in the editor so they do not appear in the scene. I believe they would appear in the scene if I set the owner property, but then this is going to cause issues during loading and saving since Godot will create and manage a separate copy of them rather than letting me create them in the _ready method of the block node. I'd also rather not have the user manually changing and possibly deleting these nodes if they have direct access to them. |
And yes, I meant 1.0.2. |
I can understand why you wouldn't like people to mess around generated meshes, however it looks like the only way to make Cyclops data bake'ble. Personally,can't quite see why setting the owner of a node is such a big deal, the coppies issue isn't clear for me. P.S. also if LightmapGI Thanks. |
I'm thinking of adding a command that lets you convert your scene to a regular mesh, which could side set this issue. It might also be possible to rework the plugin so that it works with setting the owner, although I would expect this would have a lot of unintended sideeffects. I don't know how soon I can get to this - finding time to work on this has been tough the last few months. |
godot's default scene export function works great with cyclops, it even saves collision nodes. But it also saves the wireframe model of blocks in file, which you have to delete manually. Its an easy fix, just let user turn off the wireframe models to export and thats it. P.S. it looks like ot also creates a copy of blocks? one collection of blocks in in |
Note that exporting to the Godot mesh format has been implemented as of 1.0.2, so you can do that then bake lightmaps afterwards. Converting to mesh is a destructive operation, so you'll want to keep a copy of your source CyclopsBlocks around. |
I didnt find any way to bake lights on cyclops-made geometry. It would be really handy to know how to do that, or at least where to start with my own implementation. Thanks.
The text was updated successfully, but these errors were encountered: