Skip to content
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

Lightmap (raytrace) not working? #16820

Closed
abgenullt opened this issue Feb 19, 2018 · 8 comments
Closed

Lightmap (raytrace) not working? #16820

abgenullt opened this issue Feb 19, 2018 · 8 comments

Comments

@abgenullt
Copy link

abgenullt commented Feb 19, 2018

Godot version:
Godot 3

Hello,

I've created a simple room in blender and exported it with the better collada exporter.
Now, I'm trying to create a lightmap. With ConeTrace mode, everything looks ok but in RayTrace mode it looks very strange...

ConeTrace:
conetrace

RayTrace:
raytrace

You can have a look at the project.

Is it a bug or have I done something wrong?
house_viewer.zip

@ghost
Copy link

ghost commented Feb 19, 2018

ConeTrace:
screenshot_2018-02-19_20-57-47

RayTrace:
screenshot_2018-02-19_20-52-48

Mine's not as weird. What are the parameters used? Video driver? (not sure if related)

@ghost ghost added this to the 3.1 milestone Feb 19, 2018
@abgenullt
Copy link
Author

I've used NVIDIA NVS 310 (driver v. 382.16) but I could test on AMD Rx480, if it is graphics card related.

I used the default parameters for the baked lightmap node and a import texel size of 0.01

@reduz
Copy link
Member

reduz commented Sep 6, 2018

I will be changing code related to baking in 3.2, so this is on hold.

@reduz reduz modified the milestones: 3.1, 3.2 Sep 6, 2018
@akien-mga akien-mga modified the milestones: 3.2, 4.0 Dec 13, 2019
@NovemberDev
Copy link

NovemberDev commented Dec 27, 2019

I have the same issue on 3.2.4, here is my setup:

i5, GTX1050m
(Force open it despite the missing textures)
Lightmap_Test.zip

@Calinou
Copy link
Member

Calinou commented Dec 27, 2019

The lightmapper will be rewritten for 4.0, but it's unlikely this will be fixed before as few contributors are knowledgeable in this area.

Edit: The new CPU lightmapper should fix this in 3.2.x once it's merged.

@KoBeWi
Copy link
Member

KoBeWi commented Nov 22, 2020

Looks still valid in 3.2.4 beta2 (but might be fixed soon, see linked PR above)

Here's the result from 4.0-dev:
image
Looks fixed, but not sure if I configured it properly.

@Arnklit
Copy link
Contributor

Arnklit commented Dec 14, 2020

I'm pretty sure the issue simply is that direct lighting doesn't work on the raytraced version. There is no difference in the result of baking with lights set to bake mode indirect and bake mode all when using the raytracing option.

Conetraced indirect:
image

Conetraced all:
image

Raytraced indirect:
image

Raytraced all:
image

@akien-mga akien-mga modified the milestones: 4.0, 3.3 Apr 28, 2021
@akien-mga
Copy link
Member

Fixed by #44628.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants