Author Topic: Corona Material/Lights Converter (legacy)  (Read 1088329 times)

2015-09-17, 14:31:07
Reply #720

dubcat

  • Active Users
  • **
  • Posts: 425
  • ฅ^•ﻌ•^ฅ meow
    • View Profile
but I'm open for suggestions =/
Did a quick test with Multiply in Composite. Seems to match, but I haven't done any testing with textures, only solid colors.
             ___
    _] [__|OO|
   (____|___|     https://www.twitch.tv/dubca7 / https://soundcloud.com/dubca7 ( ͡° ͜ʖ ͡°) choo choo

2015-09-18, 13:22:07
Reply #721

oompaloompa

  • Users
  • *
  • Posts: 3
    • View Profile
perhaps as there is no "overall color"  in corona mlt.  it could just go in the diffuse slot.   I know technically this doesn't make perfect sense but it's the closest option.  Maybe your script could have some options for wiring texture slots, to corresponding slots, to help give the user input for when there is no direct conversion.

i.e.

Vray Fasst SSS 2
Diffuse > Diffuse (x)
Overall Color > Diffuse (y)

anyway we use the "overall color" slot very often so a solution would be great.

Jeremy

2015-09-22, 03:49:24
Reply #722

Javadevil

  • Active Users
  • **
  • Posts: 399
    • View Profile
Error occured in Arch___Design__mi : barkcolor:Arch___Design
-- Unknown property: "roundedCornersRadius" in barkcolor:CoronaMtl

Hi Deadclown,

Theres an error occurring, converting an Arch & Design material.
Its odd the rounded corners feature isn't turned on.

V1.16

cheers

Here's the log.


Error occured in Arch___Design__mi : leafcol:Arch___Design
-- Unknown property: "roundedCornersRadius" in leafcol:CoronaMtl

Error occured in Arch___Design__mi : leafcol_leaftip2:Arch___Design
-- Unknown property: "roundedCornersRadius" in leafcol_leaftip2:CoronaMtl

Error occured in Arch___Design__mi : leafcol_leaftip1:Arch___Design
-- Unknown property: "roundedCornersRadius" in leafcol_leaftip1:CoronaMtl

Error occured in Arch___Design__mi : leafcol_leaf:Arch___Design
-- Unknown property: "roundedCornersRadius" in leafcol_leaf:CoronaMtl

2015-09-22, 09:56:52
Reply #723

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Theres an error occurring, converting an Arch & Design material.
Its odd the rounded corners feature isn't turned on.

I guess you're using a daily build (can't say for sure since you removed the log header ;) ). You need a newer version of the script (v1.18) for that which has an updated rounded corners conversion. The property in the material was removed and a new map type with more options is now being used for round corners - that's why it's complaining about a missing property even though you're not using it.
Any sufficiently advanced bug is indistinguishable from a feature.

2015-09-22, 11:08:43
Reply #724

Javadevil

  • Active Users
  • **
  • Posts: 399
    • View Profile
Thanks I'll grab the latest script.

2015-10-09, 08:25:51
Reply #725

sshanth

  • Active Users
  • **
  • Posts: 10
    • View Profile
Hi,

Here the m installing corona Basic Free Version and m trying to convert vray to corona Getting Attached Error.

2015-10-09, 09:24:04
Reply #726

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8778
  • Let's move this topic, shall we?
    • View Profile
    • My Models
You're using wrong converter version. Corona A6.1 (free) should install right converter version in 3ds max scrpit folder. Use that script and you will not get errors.

Merged with main converter topic.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-10-09, 09:37:51
Reply #727

sshanth

  • Active Users
  • **
  • Posts: 10
    • View Profile
HI Thanks for u r replay shall i get that script link.

2015-10-09, 11:13:27
Reply #728

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8778
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Sure, look for it in: your_3dsmax_root_folder\scripts\CoronaRenderer
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-10-15, 17:02:29
Reply #729

diogovb

  • Active Users
  • **
  • Posts: 44
    • View Profile
>>> SCENE Info: <<<
Corona version: 1.3 DailyBuild Oct 14 2015, build timestamp: Oct 14 2015 20:16:55
Converter version: 1.16
Installed Vray plugins: V_Ray_RT_3_20_02  V_Ray_Adv_3_20_02 
# Material conversion took 0.352 seconds
# Iterations: 21, converted: 4
# Map conversion took 0.005 seconds
# Iterations: 16, converted: 1
# Light conversion took 0.01 seconds
# Iterations: 1

Error occured in Arch___Design__mi : 04 - Default:Arch___Design
-- Unknown property: "roundedCornersRadius" in 04 - Default:CoronaMtl

Error occured in Arch___Design__mi : 05 - Default:Arch___Design
-- Unknown property: "roundedCornersRadius" in 05 - Default:CoronaMtl

Error occured in Arch___Design__mi : 06 - Default:Arch___Design
-- Unknown property: "roundedCornersRadius" in 06 - Default:CoronaMtl

Error occured in Arch___Design__mi : 11 - Default:Arch___Design
-- Unknown property: "roundedCornersRadius" in 11 - Default:CoronaMtl

Error occured in Arch___Design__mi : 12 - Default:Arch___Design
-- Unknown property: "roundedCornersRadius" in 12 - Default:CoronaMtl

Error occured in Arch___Design__mi : 13 - Default:Arch___Design
-- Unknown property: "roundedCornersRadius" in 13 - Default:CoronaMtl

2015-10-15, 17:06:58
Reply #730

PROH

  • Active Users
  • **
  • Posts: 1219
    • View Profile
Hi diogovb. You need to use converter version 1.8 with Corona 1.3 daily builds.

2015-10-22, 11:57:37
Reply #731

peterguthrie

  • Active Users
  • **
  • Posts: 250
    • View Profile
    • Peter Guthrie Visualisation
First of all, many many thanks for this amazing script. It saves so much time, and means transitioning to corona is really easy.

One thing I have noticed is that in the conversion process, the script makes materials more glossy than they should be.

see attached jpg that hopefully explains our findings. I should stress we take a purely results based approach here (non scientific). We do find that materials are consistently too glossy though, and once we have run the converter we need to manually adjust the glossiness value down the way. (i just guesstimated what the new glossiness values should be and they worked out OK)

I hear that you want to hold off on changing things until a new corona release, but in the meantime if we try to edit the script ourselves could you give us any pointers?

Peter


2015-10-22, 12:40:18
Reply #732

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Glad you find the script helpful :)
I also had a short talk with Rawalanche a couple of minutes ago and he mentioned that you were having some glossiness issues. Yes, the Glossiness conversion is currently flawed. It was made back when Vray had it's default Phong and Corona it's ashikhmin-shirley brdf. Now things have changed with Vray and Corona using different GGX curves (with Corona clamped at the lower end). I intended to wait until Ondra had implemented an updated curve but it seems that this could take a while. Testing out what maps to what (2 times, for vray phong -> corona ggx, and vray ggx -> corona ggx) will require a bit of work and I currently cannot say when I'll be able to get to it.

Quote
I hear that you want to hold off on changing things until a new corona release, but in the meantime if we try to edit the script ourselves could you give us any pointers?
Modifying the glossiness value itself is kinda simple, but it won't correct any textures (that is a whole different story and a lot more complicated to do (that's also a reason why I don't want to do it twice :D ) ). But if you want to you can take the latest script version ( v1.18 ) and modify line 1031:
Code: [Select]
r.reflectGlossiness = (if owner.converterSettings.vrayConvertGlossyValues then(1.0 - sqrt(1.0 - origMtl.reflection_glossiness)) else(origMtl.reflection_glossiness) )
The important part is this:
Code: [Select]
1.0 - sqrt(1.0 - origMtl.reflection_glossiness)
If you come up with a good temporary conversion, let me know and I'll see what I can do for the glossiness maps :)

Any sufficiently advanced bug is indistinguishable from a feature.

2015-10-22, 13:16:32
Reply #733

peterguthrie

  • Active Users
  • **
  • Posts: 250
    • View Profile
    • Peter Guthrie Visualisation
hadn't thought about maps, which sounds a lot more involved..

We found those lines already and Luke is trying out some ideas, do you want us to just reply here with what we came up with?

2015-10-22, 13:43:23
Reply #734

Luke Cottle

  • Users
  • *
  • Posts: 1
    • View Profile
Hi guys,

so after having a chat with Peter this morning and tinkering a little, I think I have come up with a solution that will work temporarily.

Original:
Code: [Select]
1.0 - sqrt(1.0 - origMtl.reflection_glossiness)
Modified:
Code: [Select]
1.0 - sqrt(1.0 - origMtl.reflection_glossiness) - (1.0 - sqrt(1.0 - origMtl.reflection_glossiness)) * (1.0 - origMtl.reflection_glossiness)
The thinking is that if I subtract (1.0 - Vray Glossies) as a percentage from the 'corona' glossies, this seems to work close enough.

Like Peter said, this is completely unscientific and probably a bit of a hack - but it does bring the results a bit more in line with the test renders he included above.

If anyone can improve on this then let me know!

We will test this further today and update if there is any issues with this.
« Last Edit: 2015-10-22, 13:59:00 by LukeC »