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

2015-02-27, 14:46:40
Reply #480

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
That's unfortunately something I cannot fix ,sorry. Slate seems not to be re-reading the class name when the material class has changed underneath via script =/
Any sufficiently advanced bug is indistinguishable from a feature.

2015-02-28, 11:03:56
Reply #481

lextorlex

  • Active Users
  • **
  • Posts: 9
    • View Profile
error report on convertion.

2015-02-28, 11:50:54
Reply #482

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Thanks for the report. Having a look on the file I assume you are using Vray 1.5?
Unfortunately I did not ever test the converter with vray 1.5. There may be several other things where the script will fail (e.g. self illumination in VrayMtls) and so on. I will see what I can do for future script releases.
Any sufficiently advanced bug is indistinguishable from a feature.

2015-03-02, 12:38:31
Reply #483

blank...

  • Active Users
  • **
  • Posts: 209
    • View Profile
When I've run the scene converter script. My existing VrayMtl in the slate editor are all converted correctly. But they still have the title of VrayMtl rather than changing to saying CoronaMtl

Same thing happens with A&D.

2015-03-02, 12:42:04
Reply #484

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
I'm sure it happens with all maps and all materials ;) Blame Autodesk :D
Any sufficiently advanced bug is indistinguishable from a feature.

2015-03-02, 19:49:35
Reply #485

blank...

  • Active Users
  • **
  • Posts: 209
    • View Profile

2015-03-02, 20:52:51
Reply #486

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
1. Should we also blame AD for material editor switching from slate to compact and then back to slate again, during conversion?
2. If material doesn't has reflection and or refraction, it converts like this <level -1, color - black> while default CoronaMtl looks like this <level - 0, color - white>. Is there specific reason for this? Personally, i prefer CoronaMtl default approach.
« Last Edit: 2015-03-02, 21:00:47 by romullus »
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-03-02, 21:25:38
Reply #487

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
1) no, that's on purpose. But it happens only 1 time, so that shouldn't be much of a problem. I need to temporarily place an output map there to use it for glossiness map conversions. It's a hack that involves virtual button clicking (caused by the fact that max does not allow direct manipulation of output map curves via script - don't ask... -_- )
2) It's the safest and most direct way to do it without having to check multiple conditions (you could also say lazy ;) ). Vray (per default) has a black reflection color, so the script simply converts the values that are there. To change it I'll have to check if there is no reflection map assigned and that the reflection color is black (and probably something else I forgot right now). It didn't seem important to me, plus I would not introduce possible logic errors. But you may be right, I'll make a note about changing that in a new version.
Any sufficiently advanced bug is indistinguishable from a feature.

2015-03-03, 00:17:42
Reply #488

Alexp

  • Active Users
  • **
  • Posts: 153
    • View Profile
Hi, the converter dont work with Xref's. Maybe you know this.

Best regards

2015-03-03, 00:22:08
Reply #489

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Yes, but I doubt that any script doing modifications works with xrefs ;) . It would have to open the files one by one, do the changes and save them again afterwards (and I seriously doubt most users would want that, apart from very special occasions).

Btw, if someone really needs this, the converter is accessible by maxscript. It would need just a few lines of code to make such a tool.
« Last Edit: 2015-03-03, 00:25:44 by DeadClown »
Any sufficiently advanced bug is indistinguishable from a feature.

2015-03-03, 20:17:06
Reply #490

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Some minor updates

Get it here: http://www.racoon-artworks.de/CoronaConverter/CoronaConverter.html

changelog:
v1.02 - [2015/03/03]
  • VrayMtls without reflection or refraction will now convert to default CoronaMtl refl/refr settings instead of black
  • removed bitmap blur clamping
  • added "only scene lights" conversion selection
  • updated info section
« Last Edit: 2015-03-03, 20:20:46 by DeadClown »
Any sufficiently advanced bug is indistinguishable from a feature.

2015-03-04, 17:07:07
Reply #491

shadowman

  • Active Users
  • **
  • Posts: 105
    • View Profile
above awesomeness of this tool a small request if it possible in the future:
button to save/reset default window checkboxes and window position

thx!

2015-03-04, 23:38:50
Reply #492

ikercito

  • Active Users
  • **
  • Posts: 111
    • View Profile
Great work! But... why did you remove the bitmap blur clamping tool? It was quite convenient IMHO.

Thanks anyway

2015-03-05, 00:33:48
Reply #493

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
above awesomeness of this tool a small request if it possible in the future:
button to save/reset default window checkboxes and window position
I wondered when anyone would finally ask for it :D I planned to do it, but forgot about it in the meantime. Will be implemented in the next version ;)

Great work! But... why did you remove the bitmap blur clamping tool? It was quite convenient IMHO.
It was meant as a temporary fix back in the days when Corona hat some bitmap blur issues (which have been fixed long time ago). I removed it because I didn't find it useful anymore and I didn't see why it should be part of a strictly conversion oriented tool.

I think there are a couple of scripts on scriptspot that can do mass property changes for maps/materials. You can also use this code snippet to do the same thing the converter did:
Code: [Select]
(
threshold = 0.3

bitmaps = getClassInstances Bitmaptexture
for i in bitmaps do (
if i.coords.blur > threshold then i.coords.blur = threshold
)
)
Any sufficiently advanced bug is indistinguishable from a feature.

2015-03-05, 14:05:48
Reply #494

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Some more minor updates
Get it here: http://www.racoon-artworks.de/CoronaConverter/CoronaConverter.html

changelog:
v1.03 - [2015/03/05]
  • updated VrayFastSSS2 material (diffuse, refl, opacity, bump, displacement)
  • updated Architectural material (diffuse, bump, opacity)
  • state of ui elements and dialog position will now be saved and recalled on each usage
Any sufficiently advanced bug is indistinguishable from a feature.