Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - GroveR_GoL

Pages: 1 [2]
16
Converts Multiscatter into coronaScatter.

17
[Max] General Discussion / Re: Material Converter
« on: 2012-09-20, 10:48:58 »
And this is about Vray2Sided material:
r=origMtl.frontMtl   
      try
      (
         trcolor = origMtl.translucency
         r.levelTranslucency = (trcolor.r+trcolor.g+trcolor.b)/765.
         r.colorTranslucency = origMtl.Translucency  -- translucency color
         r.texmapTranslucency = origMtl.texmap_translucency  -- translucency map
         r.texmapOnTranslucency = true
         r.texmapAmountTranslucency = origMtl.texmap_translucency_multiplier/100.
         if   (origMtl.backMtl == undefined)then
         (
            r.texmapTranslucency = origMtl.frontMtl.texmapDiffuse
            r.texmapAmountTranslucency = 0.5
         )
         
         
         r.GlassMode = 1
         
      )
      catch()

18
[Max] General Discussion / Re: Material Converter
« on: 2012-09-20, 10:35:16 »
DeadClown what about translucency in vray material? I have not found any conversion of it.
maybe do something like this:
Code: [Select]
if vrmat.translucency_on != 0 then
(
cormat.TODOGlassMode = 1
cormat.TODOtranslucencyMult = amin #(1,vrmat.translucency_thickness/100.)
)
else
(
cormat.TODOGlassMode = 0
)

19
[Max] General Discussion / VrayCompTex update
« on: 2012-09-18, 11:52:44 »
Hi. I often use VrayCompTex. So here is little code to convert it right to CompositeTexturemap.
Please replace old code

Code: [Select]
try(
for mp in (getClassInstances VRayCompTex) do(
replaceInstances mp mp.sourceA
)
)catch()

by this new one

Code: [Select]
for mp in (getClassInstances VRayCompTex) do
(
temp_CompositeTexturemap = CompositeTexturemap name:#(mp.name) mapList: #(mp.sourceA,mp.sourceB)
temp_CompositeTexturemap.mapList = #(mp.sourceA,mp.sourceB)
--temp_CompositeTexturemap.mapEnabled = #(true,true)
temp_CompositeTexturemap.blendMode = case mp.operator of
(
0:#(0, 2)
1:#(0, 3)
2:#(0, 19)
3:#(0, 5)
4:
(
temp_CompositeTexturemap.mapList[2] = Color_Correction map:mp.sourceB rewireMode:2
#(0, 10)
)
5:#(0, 4)
6:#(0, 8)
default:#(0, 2)
)
replaceInstances mp temp_CompositeTexturemap
)

Thanks.

20
New version for last 17.09.2012 build

21
Now considering instanced light for VrayLight and VrayIES.

22
Yes you are right. I had not thought about this.

23
[Max] Corona Goodies - User Contributions / Lights Converter
« on: 2012-09-13, 12:59:03 »
Сorona lights converter from Vray and photometric lights.
converts:
VraySun to corona sun
VrayLight to corona light
VrayIES to corona light
Photometric target to corona light (very rough)
Photometric free to corona light (very rough)

Vray Suns are not deleted but hidden.
Latest build is in attachment.

edit by keymaster: updated script version: https://forum.corona-renderer.com/index.php?action=dlattach;topic=79.0;attach=6596

24
[Max] General Discussion / Re: Material Converter
« on: 2012-09-12, 11:52:18 »
One more question. How about Blend, Shellac, DoubleSided materials? Why you create empty corona material instead of them? Blend material works fine in corona, doesn't it? What if convert Vray blend to simple blend with multi nesting.

25
[Max] General Discussion / Re: Material Converter
« on: 2012-09-12, 11:34:05 »
Only one thing. Plaese put brackets like this

rollout CoronaConverter "Convert Materials to Corona" width:200 height:160
   (
      groupBox grp1 "standard Materials" pos:[8,8] width:184 height:40
      checkbox chkReflstandardMat "convert specular to reflection" pos:[16,24] width:168 height:16 checked:standardMatSpecToRefl
      groupBox grp2 "Vray Materials" pos:[8,56] width:184 height:56
      checkbox chkConvVrayGloss "convert glossy values (experimental)" pos:[16,72] width:168 height:32 checked:VrayConvertGlossyValues
      button btnStartConverting "Convert Mats + Maps" pos:[8,120] width:184 height:32
      
      on chkReflstandardMat changed state do
      (
         standardMatSpecToRefl = state
      )
         
      on chkConvVrayGloss changed state do
      (
         VrayConvertGlossyValues = state
      )
      
      on btnStartConverting pressed do
      (
         mtlsToCorona()
         format "Converting unsupported maps...\n"
         ReplaceUnsupportedMaps()
         format "Done.\n"
      )
   )

and not like this

rollout CoronaConverter "Convert Materials to Corona" width:200 height:160 (
      groupBox grp1 "standard Materials" pos:[8,8] width:184 height:40
      checkbox chkReflstandardMat "convert specular to reflection" pos:[16,24] width:168 height:16 checked:standardMatSpecToRefl
      groupBox grp2 "Vray Materials" pos:[8,56] width:184 height:56
      checkbox chkConvVrayGloss "convert glossy values (experimental)" pos:[16,72] width:168 height:32 checked:VrayConvertGlossyValues
      button btnStartConverting "Convert Mats + Maps" pos:[8,120] width:184 height:32
      
      on chkReflstandardMat changed state do(
         standardMatSpecToRefl = state
      )
      
      on chkConvVrayGloss changed state do(
         VrayConvertGlossyValues = state
      )
      
      on btnStartConverting pressed do(
         mtlsToCorona()
         format "Converting unsupported maps...\n"
         ReplaceUnsupportedMaps()
         format "Done.\n"
      )
   )

otherwise "toggle all folds" function does not work. Thanks.

26
[Max] General Discussion / Re: Material Converter
« on: 2012-09-12, 11:22:11 »
Dead clown, your code is so cool, I've learned some new features from it. Thanks for sharing.

27
[Max] General Discussion / Re: Material Converter
« on: 2012-09-11, 13:45:08 »
Ok, here is unencrypted code:

28
[Max] General Discussion / [DEPRECATED] Material Converter
« on: 2012-09-11, 13:20:16 »
This thread is for archive purposes only, use the convertor here: http://forum.corona-renderer.com/index.php/topic,126.0.html

Hi everyone. I decided to create material converter from Vray materials to corona.
So here is the first version.
Script converts all scene materials which are:
VrayMtl
VrayLightMtl
Vray2SidedMtl
MultiMaterial
Be carefull and save your scene before converting script may crash max.

Pages: 1 [2]