1
$\begingroup$

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

$\endgroup$
6
  • 1
    $\begingroup$ Does this answer your question? How can solve fogs,lights problem with Cycles? $\endgroup$ Jun 18, 2022 at 12:40
  • $\begingroup$ bloom is only one aspect of the problem and ill be honest i dont know how its possible to bake it so probably i don't even need that, got to solve more important problems $\endgroup$
    – Hawasaki7
    Jun 18, 2022 at 12:50
  • $\begingroup$ You could bake the "Emission" in cycles and do some post processing to make it glow. Cycles doesn't glow by default. $\endgroup$ Jun 18, 2022 at 13:00
  • $\begingroup$ i udnerstand that but i have problem baking emission aswell as you can see in first image left bottom side\ $\endgroup$
    – Hawasaki7
    Jun 18, 2022 at 13:14
  • $\begingroup$ Maybe don't do "combined", do emission only? That way you will get a separate emission map. $\endgroup$ Jun 18, 2022 at 13:21

1 Answer 1

1
$\begingroup$

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

$\endgroup$
8
  • $\begingroup$ could you explain to me what i am supposed to do? change color ramp from black to pink to pink to black? $\endgroup$
    – Hawasaki7
    Jun 18, 2022 at 13:55
  • $\begingroup$ @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 :) $\endgroup$
    – vklidu
    Jun 18, 2022 at 14:27
  • $\begingroup$ @Hawasaki7 I tried to explain with more details .. see if it is clear now :) $\endgroup$
    – vklidu
    Jun 18, 2022 at 14:28
  • $\begingroup$ 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 $\endgroup$
    – Hawasaki7
    Jun 19, 2022 at 7:25
  • $\begingroup$ @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 skfb.ly/ovyw8 $\endgroup$
    – vklidu
    Jun 19, 2022 at 10:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .