Page 1 of 1
Baking texture to Unity
Posted:
Sun Sep 01, 2019 9:13 pm
by vesta
hello
I'm using Cinema 4D and I did a project in Octane and client asked me to send them the project with baked textures (and light of course, I used an hdri) that they'll use in Unity, is there a workaround to do that? thanks
Re: Baking texture to Unity
Posted:
Mon Sep 02, 2019 5:59 am
by bepeg4d
Hi,
you need to use the Baking Camera:
http://www.aoktar.com/octane/Baking.htmlwith Beauty, and Materials passes + Texture Tangent Info pass for Normal maps:
http://www.aoktar.com/octane/MaterialPasses.htmlThen recreate the scene with standard c4d materials and baked maps.
When the scene works in c4d OpenGL, it is ready to be exported to Unity.
ciao Beppe
Re: Baking texture to Unity
Posted:
Mon Sep 02, 2019 7:42 am
by vesta
thanks a lot Beppe!
I'll give it a try and let's see what happens
thanks
Giuseppe
Re: Baking texture to Unity
Posted:
Fri Sep 06, 2019 3:32 pm
by vesta
hello Beppe
sorry, I have the scene as you can see the one attached, I don't used texture images, only parametric shaders.
To do correct texture baking I should do? UV UNWRAP for every single object? Or can I connect a whole piece of structure for example and do UV UNWRAP the whole piece?
thanks a lot
Peppe
Re: Baking texture to Unity
Posted:
Fri Sep 06, 2019 6:41 pm
by vesta
I'm testing the export workflow of a baked texture object.
I test a simple cube, I UV uwrapped it and exported the texture map with camera baking tag selected but the material quality doesn't match, when I render the cube in standard mode looks awful. I attached the two cubes (octane one and standard result) for comparison.
thanks a lot!
Re: Baking texture to Unity
Posted:
Fri Sep 06, 2019 8:27 pm
by frankmci
As I mentioned in the other thread, and to simplify the idea: if you are baking both the color and illumination into your textures, you do not want any other illumination of the surfaces. The baked material itself provides the luminance. Adding other light sources will just make it look flat/over exposed/generally odd. And that's really the point; things render a whole lot faster when you don't have to calculate all those extra, pesky, bouncing rays.
viewtopic.php?f=30&t=72561
Re: Baking texture to Unity
Posted:
Sat Sep 07, 2019 6:47 am
by vesta
thanks a for the reply, it's the first time I'm doing this thing, clearing my mind now.
I did a test and seems working like shading/shadow and quality overall but there are some strange black things, I attached the octane and standard render screeenshot.
Maybe I'm doing something wrong with UV unwrapping?
thanks a lot
Giuseppe
Re: Baking texture to Unity
Posted:
Sat Sep 07, 2019 4:27 pm
by frankmci
Yes, that does look like a UV problem. Try looking at your baked textures overlaid on the UVs in the UV Edit window in C4D. It should show a nice, orderly, non-overlapping surface with the texture corresponding to the geometry in a logical way. With complex geometry it can get a bit tricky, but for your scene, it should be very obvious if your layout has a problem. For example, here are the textures and corresponding UV spaces from that little sample I made yesterday. The fuzzy bits around the sides of the cube texture are padding to help hide the seams where different UV patches meet, and are supposed to be there.