1

hi i am trying to bake everything to than import in Threejs, my initial goal was to have the same looks as i have in Evee render, but Evee doesn't support baking , so i have to go with cycles, tree material doesn't even render in cycles and when i try to bake it i just get black texture. can anyone help me out with the whole baking thing? here is link to project enter image description here

note: black are leaves of tree, and other baked parts are branches.

enter image description here

Hawasaki7
  • 23
  • 3

1 Answers1

1

Baked Blacks

By opening your "project" file (you share with us), you use Color Ramp node set Pink(left side) > Black(right side) that works just fine for me.

On other hand in your screen the Color Ramp node is set Black-Pink ... this setup generates black in all bake.

The problem lies in your Layer Weight node. This node can't be handled by bake as intended, because the factor is considering face normal direction (angle) pointed to camera view. For baker all faces are calculated as front view. When ColorRamp is set from Pink to Black. First color(Pink) is taken as color assigned to normal pointed to camera (front). So if you want bake pink emission, keep Pink at Left.

Just to be clear, you can't bake the gradient (pink centre with black border) since by observing a scene you'r changing dynamically point of view, it means what is black border fro one point of view are not the same black faces from another point of view.

You can set node-tree with pink at centre of object and black border to be baked, but it would be correctly seen only from specific point of view, and that is not what you are looking for.

WebGL

I don't have experience with Three.js but it use WebGL so probably it works like Sketchfab ... in this example ground and tree trunks are baked (you already know how to).Tree leaves (spheres) are just simple Principled BSDF node with Base Color Pink, Metallic 1, Roughness 0.05, Emission Pink

enter image description here

Sketchfab is able to import and translate into its ecosystem. Textures should be packed and use naming convensions to be assign automatically (but can be uploaded and assign also manually. Bloom is set on Sketchfab site ...

enter image description here

https://skfb.ly/ovyw8

enter image description here

Light Strength

The light difference between Cycles and Eevee is that - Eevee doesn't support mesh light (directly), so in Eevee is your scene light just by light objects, but Cycles render is light by emissive tree material plus by light objects ... that is why cycles looks lit by light more than in Eevee.

Note: Some of your tree normals are orientated inside ... it can generate some issues. To fix the orientation, select your objects, go to edit mode, and press Shift + N to Recalculate Normals.

enter image description here

vklidu
  • 36,165
  • 1
  • 61
  • 135
  • could you explain to me what i am supposed to do? change color ramp from black to pink to pink to black? – Hawasaki7 Jun 18 '22 at 13:55
  • @YousufChaudhry ... thanks for edit (it was rejected by Bot due my work on edit at the same time, so I added you extension now. Thanks again for enhancing :) – vklidu Jun 18 '22 at 14:27
  • @Hawasaki7 I tried to explain with more details .. see if it is clear now :) – vklidu Jun 18 '22 at 14:28
  • makes sense, thats what i thought about tree leaves that they were changing dynamically, but without it i was getting weird emission, too bright without showing the structure. i will try now to change settings hopefully everything works properly. thanks again – Hawasaki7 Jun 19 '22 at 07:25
  • @Hawasaki7 I don't have experience with Three.js but it use WebGL so probably can be something set out of blender ... like in Sketchfab something like this with Metallic-Emission-Bloom https://skfb.ly/ovyw8 – vklidu Jun 19 '22 at 10:07
  • that is what i am looking for exactly. could you walk me through it? – Hawasaki7 Jun 20 '22 at 11:19
  • I don't think, there is too much say ... WebGL part extended about some info, I'm not sure how much useful :) – vklidu Jun 20 '22 at 20:40
  • thanks i will try it out – Hawasaki7 Jun 21 '22 at 06:18