Baking texture to Unity

Forums: Baking texture to Unity
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Baking texture to Unity

Postby vesta » Sun Sep 01, 2019 9:13 pm

vesta Sun Sep 01, 2019 9:13 pm
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
vesta
Licensed Customer
Licensed Customer
 
Posts: 35
Joined: Sun Feb 19, 2017 7:33 am

Re: Baking texture to Unity

Postby bepeg4d » Mon Sep 02, 2019 5:59 am

bepeg4d Mon Sep 02, 2019 5:59 am
Hi,
you need to use the Baking Camera:
http://www.aoktar.com/octane/Baking.html
with Beauty, and Materials passes + Texture Tangent Info pass for Normal maps:
http://www.aoktar.com/octane/MaterialPasses.html
Then 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
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9953
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Baking texture to Unity

Postby vesta » Mon Sep 02, 2019 7:42 am

vesta Mon Sep 02, 2019 7:42 am
thanks a lot Beppe!
I'll give it a try and let's see what happens
thanks
Giuseppe
vesta
Licensed Customer
Licensed Customer
 
Posts: 35
Joined: Sun Feb 19, 2017 7:33 am

Re: Baking texture to Unity

Postby vesta » Fri Sep 06, 2019 3:32 pm

vesta Fri Sep 06, 2019 3:32 pm
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
vesta
Licensed Customer
Licensed Customer
 
Posts: 35
Joined: Sun Feb 19, 2017 7:33 am

Re: Baking texture to Unity

Postby vesta » Fri Sep 06, 2019 6:41 pm

vesta Fri Sep 06, 2019 6:41 pm
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!
Attachments
cube_octane.png
cube_standard.png
vesta
Licensed Customer
Licensed Customer
 
Posts: 35
Joined: Sun Feb 19, 2017 7:33 am

Re: Baking texture to Unity

Postby frankmci » Fri Sep 06, 2019 8:27 pm

frankmci Fri Sep 06, 2019 8:27 pm
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
Technical Director - C4D, Maya, AE, - Washington DC
frankmci
Licensed Customer
Licensed Customer
 
Posts: 821
Joined: Fri May 26, 2017 2:00 pm

Re: Baking texture to Unity

Postby vesta » Sat Sep 07, 2019 6:47 am

vesta Sat Sep 07, 2019 6:47 am
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
Attachments
openGL_render.png
octane_render.png
vesta
Licensed Customer
Licensed Customer
 
Posts: 35
Joined: Sun Feb 19, 2017 7:33 am

Re: Baking texture to Unity

Postby frankmci » Sat Sep 07, 2019 4:27 pm

frankmci Sat Sep 07, 2019 4:27 pm
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.
Attachments
Screen Shot 2019-09-07 at 12.07.21 PM.png
Basic UVs and Baked Textures
Technical Director - C4D, Maya, AE, - Washington DC
frankmci
Licensed Customer
Licensed Customer
 
Posts: 821
Joined: Fri May 26, 2017 2:00 pm

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: elegant_jewellery and 27 guests

Thu Apr 18, 2024 3:42 pm [ UTC ]