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

2014-12-11, 23:21:49
Reply #375

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
I'm a bit surprised no one has reported any bugs yet :D I'm currently doing a sh*tload of rewriting and found a couple of bugs that should have crashed the script in at least some scenes :D
Any sufficiently advanced bug is indistinguishable from a feature.

2014-12-12, 12:42:38
Reply #376

Gilgamesh

  • Active Users
  • **
  • Posts: 6
    • View Profile
Here comes....

-- Max Script Rollout Handler Exception:

-- Unknown property: "texmapReflectAnistropy"in Acer_campestre_lf_04au_co_fr:coronaMTl   so it is clear that this is due to forestpack...

2014-12-12, 12:46:34
Reply #377

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Yes, you found one :D
I'm currently finishing the new Script version. If all goes well I'll release it today :)
Any sufficiently advanced bug is indistinguishable from a feature.

2014-12-12, 15:07:50
Reply #378

tahir1983

  • Active Users
  • **
  • Posts: 8
    • View Profile
Hi Everyone! I would like apply to our script developer to solve the issue of correct  converting Vray materials which covered with VrayUnwrapMtl  and Advanced Lighting Override....  Thanks in advance!

2014-12-12, 16:38:25
Reply #379

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
I would like apply to our script developer to solve the issue of correct  converting Vray materials which covered with VrayUnwrapMtl  and Advanced Lighting Override....  Thanks in advance!
I'm sorry but I really have no idea at all what you are asking for :-/
« Last Edit: 2014-12-12, 17:01:39 by DeadClown »
Any sufficiently advanced bug is indistinguishable from a feature.

2014-12-12, 16:57:24
Reply #380

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
FOLLOWING SCRIPT IS ONLY WORKING WITH DAILY BUILDS!
Script is attached to this post.

Phew, ok, I made a massive rewrite/restructuring in the last couple of days. Conversion modes are back, this time with texturemap conversion. Be aware - in case you use a selection mode - that instanced texturemaps on some other objects or materials will be converted too, I'm not breaking any instances.
I also made some important changes which affect the conversion speed in bigger scenes dramatically. There shouldn't be any differences in the conversion results but please report if there are (e.g. some materials or maps have not been converted at all)

One of the reasons for the rewrite was to make it possible to use the converter via maxscript commands. I've made a documentation with Code examples here: Maxscript Documentation

To all daily build users, please test the converter thoroughly. It may be the one shipping with 1.0 ;)

changelog:
*v0.24_dailyBuilds
  • core rewrite to enable maxscript access to conversion functionality
  • reimplemented selection modes: now supporting texturemap conversion
  • massive speed improvements in bigger scenes
  • fixed: clamping of bitmap blurs and displacement levels are not affecting the whole scene anymore

Any sufficiently advanced bug is indistinguishable from a feature.

2014-12-12, 19:08:36
Reply #381

tahir1983

  • Active Users
  • **
  • Posts: 8
    • View Profile
I'm sorry but I really have no idea at all what you are asking for :-/


I mean ... that when converting materials like VrayUnwrapMtl or Lighting override Mtl   which includes any materials (vray or standart)  materials themselves converted correctly but they remain in VrayUnwrapMtl (Lighting override Mtl) as result they are not recognized by  Corona ... so then one has to get rid of these "covered" materials one by one .... Let yourself try to convert VrayUnwrapMtl ... so it will be clear for you....!

2014-12-12, 19:41:58
Reply #382

antanas

  • Active Users
  • **
  • Posts: 269
  • Hmm ...
    • View Profile
•core rewrite to enable maxscript access to conversion functionality
•reimplemented selection modes: now supporting texturemap conversion
•massive speed improvements in bigger scenes
•fixed: clamping of bitmap blurs and displacement levels are not affecting the whole scene anymore

Am I glad to hear that :)

2014-12-12, 23:39:00
Reply #383

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
I mean ... that when converting materials like VrayUnwrapMtl or Lighting override Mtl   which includes any materials (vray or standart)  materials themselves converted correctly but they remain in VrayUnwrapMtl (Lighting override Mtl) as result they are not recognized by  Corona ... so then one has to get rid of these "covered" materials one by one .... Let yourself try to convert VrayUnwrapMtl ... so it will be clear for you....!

I took a while for me to understand that you meant the VRayMtlWrapper and VRayOverrideMtl materials (right?). VRayOverrideMtl has been in there for a while but I did an update. I also added VrayMtlWrapper conversion now, it will be available in the next version. Thanks for the suggestion :)
Any sufficiently advanced bug is indistinguishable from a feature.

2014-12-15, 22:40:53
Reply #384

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
FOLLOWING SCRIPT IS ONLY WORKING WITH DAILY BUILDS!
Script is attached to this post.

Since GroveR_GoL's light converter does not seem to get updated I decided to implement a new one from scratch. So please test it hard, many different light types and configurations :)
DaylightSystem assemblies are currently not supported, I'll have to check how I get around some little problems.

supported lights:
  • VRayLight
  • VRayIES
  • VRaySun
  • miAreaLight
  • miAreaLightomni
  • fR RectLight
  • Free_Light
  • Target_Light
  • TargetDirectionallight
  • freeSpot
  • Directionallight
  • Omnilight
  • targetSpot


changelog:
*v0.26_dailyBuilds
  • added light converter
  • updated Mxs documentation: new methods for light conversion, "CoronaMtlConverter" -> "CoronaConverter"
*v0.25_dailyBuilds
  • added VRayMtlWrapper conversion
  • updated VRayOverrideMtl conversion

Any sufficiently advanced bug is indistinguishable from a feature.


2014-12-16, 00:23:40
Reply #386

Stan_But

  • Active Users
  • **
  • Posts: 526
    • View Profile
    • https://www.behance.net/archdizs

2014-12-16, 22:44:27
Reply #387

johan belmans

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 761
    • View Profile
    • belly.be

2014-12-17, 13:30:37
Reply #388

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
cecofuli, headoff, belly: You're welcome guys ;)

FOLLOWING SCRIPT IS ONLY WORKING WITH DAILY BUILDS!
I've updated the download page (Link), the daily builds are now hosted there too :)

changelog:
*v0.27_dailyBuilds
  • added support for daylight assemblies
  • added conversion of mr_Sky_Portals and VrayLight portals
  • fixed: some lights were created on the wrong layer
  • added warning when Portals have been converted

Any sufficiently advanced bug is indistinguishable from a feature.

2014-12-17, 18:23:42
Reply #389

cecofuli

  • Active Users
  • **
  • Posts: 1577
    • View Profile
    • www.francescolegrenzi.com
DeadClown, your script is under "Corona Render" category. But the official Corona proxy exporter is under "Corona".