Octane exporter for C4D version 0.03

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

User avatar
abstrax
OctaneRender Team
Posts: 5508
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

Hi all,

as already announced, this is version 0.03 of the exporter to Octane. It adds a material conversion to MTL materials, which will be imported by Octane :)

As OBJ/MTL materials are a very old standard there is only a few things that can be stored in those materials. That means, many parameters of the C4D materials don't get exported. It's just not possible. Octane has also a lot more material parameters than OBJ/MTL materials. That means, to get really nice results you will probably end up tuning most of your materials in Octane. But this shouldn't be a big problem as relinking allows you to change your C4D scene and then update your Octane scene.

So we have two conversion processes here: One from C4D to MTL and one from MTL to Octane which will result in these rules:

- If the C4D material has no reflection, no specular channel and no transparency, it will become a diffuse Octane material.
- If the C4D material has a reflection or specular channel, but no transparency, it will become a glossy Octane materials.
- If the C4D material has transparency, it will become a specular Octane material.

- If a bitmap texture is selected in a C4D material channel, it will be exported using relative image paths. If not, the color of the channel gets exported, if available.

- The color channel of a C4D material becomes the diffuse channel in the Octane material.
- If the reflection channel is enabled, it will be exported as specular channel in the Octane material. If no reflection channel is enabled, the specular channel is used as a fallback, if available.
- OBJ materials can only store a transmissive filter. The transparency color of the C4D material will be stored there. No bitmaps are possible here.
- The refraction index of the transparency channel of the C4D material gets exported, too.
- Alpha channel bitmap and bump channel bitmap will exported, if available.

The plugin does also a reverse gamma correction to compensate color desaturation in Octane due to gamma correction during tone mapping.

There is more to write, but I guess, give it a try. If you have Riptide Pro, I would be very interested in a comparison of the exported materials of the two plugins. The reason is, that the MTL specification is very crude and "unprecise", which made me guess a lot of things. As everyone seems to be happy with the Riptide Pro material export, I would like to use it as a reference.

These are the PC builds of the plugin:

CINEMA 4D R9.6 (32/64bit):
OctaneExport_0.03_win_r9.6_release.zip
(155.69 KiB) Downloaded 414 times
CINEMA 4D R10.1 - 11.0 (32/64bit):
OctaneExport_0.03_win_r10.1_release.zip
(156.08 KiB) Downloaded 419 times
CINEMA 4D R11.5 (32/64bit):
OctaneExport_0.03_win_r11.5_release.zip
(236.29 KiB) Downloaded 461 times
These are the Mac builds of the plugin:

CINEMA 4D R9.6 (32bit):
OctaneExport_0.03_mac_r9.6_release.zip
(102.73 KiB) Downloaded 432 times
CINEMA 4D R10.1 - 10.5 (32bit):
OctaneExport_0.03_mac_r10.1_release.zip
(139.76 KiB) Downloaded 416 times
CINEMA 4D R11.0 (32/64bit):
OctaneExport_0.03_mac_r11.0_release.zip
(285.84 KiB) Downloaded 452 times
CINEMA 4D R11.5 (32/64bit):
OctaneExport_0.03_mac_r11.5_release.zip
(315.24 KiB) Downloaded 427 times
Tomorrow I will do no coding, but after tomorrow I plan to fix any material export problems that have popped up and then start with the animation export.
EDIT: As a lot of people still need support for polygon selections of texture tags and an automatic conversion of non-UVW mapping types to UV mapping, I will focus on this, before I start with animation export.

Happy rendering,
Marcus
Last edited by abstrax on Mon Jun 07, 2010 3:32 am, edited 1 time in total.
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
User avatar
mantra
Licensed Customer
Posts: 263
Joined: Thu Jan 28, 2010 11:51 am
Contact:

so fast)
MY WORKS
Cinema 4d | Win7x64 | 450gts

russian octane community
http://vk.com/octanerender
User avatar
iacx
Licensed Customer
Posts: 8
Joined: Fri Jan 15, 2010 12:48 am
Location: Italy
Contact:

Great! :)
User avatar
mantra
Licensed Customer
Posts: 263
Joined: Thu Jan 28, 2010 11:51 am
Contact:

If you have Riptide Pro, I would be very interested in a comparison of the exported materials of the two plugins. The reason is, that the MTL specification is very crude and "unprecise", which made me guess a lot of things. As everyone seems to be happy with the Riptide Pro material export, I would like to use it as a reference.
I do, but after a few hours.
& send you mtl files for comparison
MY WORKS
Cinema 4d | Win7x64 | 450gts

russian octane community
http://vk.com/octanerender
User avatar
abstrax
OctaneRender Team
Posts: 5508
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

mantra wrote:
If you have Riptide Pro, I would be very interested in a comparison of the exported materials of the two plugins. The reason is, that the MTL specification is very crude and "unprecise", which made me guess a lot of things. As everyone seems to be happy with the Riptide Pro material export, I would like to use it as a reference.
I do, but after a few hours.
& send you mtl files for comparison
Do that and please send me also the C4D files so that I know, what the source data was.

Thanks a lot for the help. Much appreciated,
Marcus
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
User avatar
mantra
Licensed Customer
Posts: 263
Joined: Thu Jan 28, 2010 11:51 am
Contact:

ok
MY WORKS
Cinema 4d | Win7x64 | 450gts

russian octane community
http://vk.com/octanerender
Lemonnado
Licensed Customer
Posts: 13
Joined: Sun Jan 17, 2010 6:53 pm

Thanks! There goes the Sunday ;)
mat536
Licensed Customer
Posts: 11
Joined: Wed May 26, 2010 11:47 pm

Thank you.
Take a break you deserve it.
Good stuff.
Mark
Core i7 920 - 2.67 GHz | Win 7 Pro 64Bit - 12 GB RAM | GTX275-896MB - driver v.197.45 | 150 GB Raptor 10K HD | Octane 1.022 beta 2.2 |
Lemonnado
Licensed Customer
Posts: 13
Joined: Sun Jan 17, 2010 6:53 pm

I cannot seem to shake off those artifacts.... Any ideas?
I looked that a similar thread, but that does not contain a hint on how to get that under control in C4D...
I deleted all phong tags and normal tags, optimized the mesh and did ten push ups for no avail...
Cheers
Rainer
Attachments
artifacts.png
ribrahomedesign
Licensed Customer
Posts: 415
Joined: Fri Mar 05, 2010 9:32 am

hi There
something is wrong here ,i think.
some of my texture maps get exported , some not
in octane the texture witch are not exported from C4d are only displayed as a color,but if i try to reload them again
from inside of octane, nothing happend ,they stay in the color they have been exported from C4d
they seemed to be blocked. i hope this makes sence
Rico
Attachments
screenshot 3.jpg
scr.shot 2.jpg
Windows 7 , 64 b / GTX 590 / Archicad 15 , 64 b / Cinema 4D R 13 studio , 64b /Intel(R)Core(TM)Extreme3,20Ghz /always latest Octane.
Post Reply

Return to “Maxon Cinema 4D”