Author Topic: Lights Converter  (Read 63434 times)

2012-09-13, 12:59:03

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
С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
« Last Edit: 2014-04-24, 20:25:58 by Keymaster »

2012-09-13, 14:41:56
Reply #1

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Very nice! I didn't test it yet but after a quick look on your code I think it's not considering instanced lights. So if you have about 20 instanced lightsources somewhere you will have 20 unique lights later.
Any sufficiently advanced bug is indistinguishable from a feature.

2012-09-13, 15:03:05
Reply #2

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
Yes you are right. I had not thought about this.

2012-09-14, 10:47:21
Reply #3

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
Now considering instanced light for VrayLight and VrayIES.

2012-09-18, 09:30:55
Reply #4

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
New version for last 17.09.2012 build

2012-09-18, 17:42:03
Reply #5

Tom Zamorin

  • Active Users
  • **
  • Posts: 83
    • View Profile
    • my gallery
LightConverter don`t work for me... on legacy CPU version
http://imageshack.us/a/img822/3530/pic20qq.jpg

2012-09-20, 11:30:15
Reply #6

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
New versin for 19.09 build

2012-09-26, 13:54:33
Reply #7

Javadevil

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

Hi Grover,

I ran the script on a scene, it converted the lights, but it made the target at the wrong end, so the light is flipped 180°.

cheers

2012-09-26, 14:21:57
Reply #8

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
i'll figure it out tomorrow

2012-09-27, 09:30:46
Reply #9

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
I tested script again, and didn't find any issue. So if you have this problem, just delete code:
Code: [Select]
tmpcorlight.dir = -tmpcorlight.dir

2012-09-27, 10:09:06
Reply #10

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Keymaster changed the way CoronaLights are created. Before, they were created pointing towards the camera/view. I made a request to do it the other way around (which is much more logical if you create them in a top view or from the side).
Any sufficiently advanced bug is indistinguishable from a feature.

2012-09-27, 10:22:06
Reply #11

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
Witch build are you using? And where can i get it?

2012-09-27, 11:14:13
Reply #12

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
I'm using the daily builds. But this change is there for some days already, so you should have it too :)
Any sufficiently advanced bug is indistinguishable from a feature.

2012-10-11, 14:14:14
Reply #13

petoboso

  • Active Users
  • **
  • Posts: 18
    • View Profile
Hi, i have problem, on this line write error:   CorLight.visibleDirectly = not orignLight.invisible
i tried switch off "invisible" in all lights but this same problem. what is wrong?
« Last Edit: 2012-10-11, 15:52:46 by petoboso »

2012-10-12, 13:35:26
Reply #14

petoboso

  • Active Users
  • **
  • Posts: 18
    • View Profile
it seems that does´t work with sphere lights

2012-10-12, 15:19:36
Reply #15

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
i'll figure it out soon

2012-10-12, 15:36:06
Reply #16

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
you know, I haven't got any problems with that. Could you send me a link on max file or make screenshot.

2012-10-15, 14:35:37
Reply #17

Paul Jones

  • Active Users
  • **
  • Posts: 168
    • View Profile
This problem in max 2013 with vray lights, can provide scene if required

2012-10-16, 13:44:37
Reply #18

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
Try this new version.

2012-10-18, 09:33:10
Reply #19

lamar_ray

  • Active Users
  • **
  • Posts: 15
    • View Profile
Hi everyone and thank you for this fantastic render engine, come to us, I have a problem as you see attached nelal string of the sun, I'm not a programmer so I can not help you but I can test the various scripts with scenes of my daily work, converting etc. attached you find the stamp screen, ah forgot I use 3dsmax 2012/13 vray 2.03. and cornona alpha legacy bye.

2012-10-18, 09:49:48
Reply #20

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
Hi, lamar_ray, please use last 0.05 version.

2012-10-18, 12:28:35
Reply #21

lamar_ray

  • Active Users
  • **
  • Posts: 15
    • View Profile
Hi GroveR_Gol you're right i never saw the second page of the blog.......thx

2012-10-18, 13:09:39
Reply #22

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
Hi Grover,

I suggest you update the first post of this thread by using modify feature every time you release an updated version of the script. If it's on the first page in the first post, users will find it faster :)

2012-12-10, 06:53:58
Reply #23

Javadevil

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

Any chance or adding Mental ray photo metric lights ? I realise the intensities will be a problem, but even just converting the lights to corona saves me time, having to place each light and I can manually adjust the intensity.  So maybe just default corona light intensity to 10 ?

cheers

2012-12-10, 09:24:12
Reply #24

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
which kind of lights do you mean?

2012-12-10, 11:32:44
Reply #25

Javadevil

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

Photometric, the top screen grab.

cheers

2012-12-11, 08:11:14
Reply #26

GroveR_GoL

  • Active Users
  • **
  • Posts: 28
    • View Profile
    • www.gg3dcg.ru
Photometric lights added.

2012-12-12, 04:15:03
Reply #27

Javadevil

  • Active Users
  • **
  • Posts: 399
    • View Profile
Photometric lights added.

Thanks, I'll tested it tonight.

cheers

2013-09-15, 21:37:50
Reply #28

nehale

  • Active Users
  • **
  • Posts: 283
    • View Profile
this script seems to not work with the new daily builds. always gives an error
I had a girlfriend once.....her name was Vray

2013-09-16, 01:29:12
Reply #29

Ahmednibo

  • Active Users
  • **
  • Posts: 37
    • View Profile
This is awesome ....running test ....thanks

2013-09-25, 12:09:24
Reply #30

xt13r

  • Active Users
  • **
  • Posts: 157
  • Viva la Corona!
    • View Profile
    • my portfolio
Yeah, converter doesn't work with latest builds. always shows mistake.

2013-10-14, 17:53:12
Reply #31

Ilija

  • Active Users
  • **
  • Posts: 17
    • View Profile
Agree, not working with latest build

2013-10-15, 11:39:55
Reply #32

Booker

  • Active Users
  • **
  • Posts: 13
    • View Profile
Hello,

I have changed something in the script, it works with the Daily's now

Thomas

2013-11-04, 11:21:42
Reply #33

poko

  • Active Users
  • **
  • Posts: 73
    • View Profile
Hi thanks for the script.
I see some problem.
When I change lights lets say from Vray the lights visibility is strange.
Please take look example.

2014-01-08, 21:13:47
Reply #34

T.Kick

  • Active Users
  • **
  • Posts: 10
    • View Profile
nice.

2014-03-10, 07:55:16
Reply #35

Ice_Juice

  • Active Users
  • **
  • Posts: 27
    • View Profile
What about Mental ray lights converting? Very needed feature

2014-03-19, 20:58:44
Reply #36

Vado

  • Active Users
  • **
  • Posts: 11
    • View Profile
lights converter doesnt work for A6 for me, do you know any solution?

2014-03-21, 13:34:20
Reply #37

Zzaba

  • Active Users
  • **
  • Posts: 24
    • View Profile
    • 3d-projekt.ru
An for me too :(

2014-03-23, 12:49:52
Reply #38

coldworld

  • Users
  • *
  • Posts: 3
    • View Profile
plz Fix

Unknown property -  sphereRadius       

eror - "CorLight.sphereRadius = orignLight.size0"

2014-03-24, 04:14:21
Reply #39

rafa85

  • Users
  • *
  • Posts: 3
    • View Profile
Same for me ...

2014-03-26, 21:03:39
Reply #40

tayebmax

  • Active Users
  • **
  • Posts: 22
    • View Profile
light converter for alpha v6 does not work ... Urgent to update .... 

2014-03-31, 21:13:39
Reply #41

Vado

  • Active Users
  • **
  • Posts: 11
    • View Profile
It looks like nobody care
:(

2014-03-31, 21:17:02
Reply #42

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
Look at the first page, Keymaster added a link to the fixed version by booker ;)
Any sufficiently advanced bug is indistinguishable from a feature.

2014-04-16, 21:22:42
Reply #43

Bigguns

  • Active Users
  • **
  • Posts: 114
    • View Profile
me it's not working, everytime I try to convert it (and I have the latest version.. and i'm in max 2013  and alpha v6 ) it says :

-- Unkown property: "sphereRadius"in SCoronaLight:CoronaLight001 @ 0.00000 etc ...

any one know the problem ?

2014-04-24, 20:18:26
Reply #44

Cyanhide

  • Active Users
  • **
  • Posts: 137
    • View Profile
The link that Keymaster added doesn't download anything, it takes me to the forum main page.

2014-04-24, 20:26:08
Reply #45

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
fixed link
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-04-24, 20:27:07
Reply #46

Cyanhide

  • Active Users
  • **
  • Posts: 137
    • View Profile
Awesome response time Keymaster, kudos to you!

2014-04-28, 10:49:36
Reply #47

higgledyhiggles

  • Active Users
  • **
  • Posts: 63
    • View Profile
v7 script still has unknown property sphere radius thingy, am I stoopid ?

2014-04-29, 11:23:58
Reply #48

Player22

  • Active Users
  • **
  • Posts: 12
    • View Profile
Hi Can someone please provide  Vray Light converter that works....
I have coronaLightsConverter_v0.06.ms which gives error when ran in CORONA A6 on 3DS Max2014

Thanks

2014-04-29, 11:48:47
Reply #49

Player22

  • Active Users
  • **
  • Posts: 12
    • View Profile
Nice work & many thanks  Keymaster found your link.

2014-05-15, 21:07:18
Reply #50

Vado

  • Active Users
  • **
  • Posts: 11
    • View Profile
thanks for the update but it still doesnt work, the same error came up ;spheare radius;
« Last Edit: 2014-05-15, 21:12:29 by Vado »

2014-05-23, 22:31:25
Reply #51

tiagodmed

  • Active Users
  • **
  • Posts: 44
    • View Profile
In the corona A6 the script did not work, it gave an error at line 226 (CorLight.sphereRadius = orignLight.size0).
I tried to check the problem and I believe that has changed the nomenclature of the sphere light to CorLight.rectangleWidth

Is that right?

2014-05-23, 22:42:25
Reply #52

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
yes, names of the parameters for all light types were unified into 2 variables
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-07-09, 17:00:03
Reply #53

ZDi

  • Users
  • *
  • Posts: 2
  • www.zdi.it
    • View Profile
Hi! When I convert a scene from vray, it works just fine. Only when I save and reopen the file, I get an unrecoverable error (can't open the file again).

I think the culprit *might* be with IES lights, but cannot confirm. Here's my scene (only lights). After conversion, I can't reopen the saved file.

http://www.zdi.it/var/error_vraylights.zip

Any ideas?

[edit]
Upon further testing; yes: the problem is IES lights. Also, VRaySun isn't deleted post-conversion.

[edit 2]
Maybe targeted IES only?
« Last Edit: 2014-07-09, 17:33:29 by ZDi »

2014-08-04, 19:08:26
Reply #54

cgiout

  • Active Users
  • **
  • Posts: 158
    • View Profile
Same problem here with max2014 x64



2014-08-20, 14:26:33
Reply #55

naeq

  • Active Users
  • **
  • Posts: 17
  • Corona lover
    • View Profile
    • Portfolio
Works flawlessly! :)

2014-09-02, 11:09:25
Reply #56

Dollmaker

  • Active Users
  • **
  • Posts: 164
    • View Profile
Same problem here with max2014 x64

Same issue with Max 2013 64 Bit..

2014-12-02, 19:35:04
Reply #57

archimi

  • Active Users
  • **
  • Posts: 37
    • View Profile
Hello,

I have changed this part of the code (V0.06):
Code: [Select]
     CorLight.colorMode = orignLight.color_mode
CorLight.blackbodyTemperature = orignLight.color_temperature
CorLight.sphereRadius = orignLight.size0
CorLight.rectangleHeight = 2*orignLight.size1
CorLight.rectangleWidth = 2*orignLight.size0
CorLight.rectangleDirectionality = orignLight.lightDistribution

 for it:
Code: [Select]
CorLight.colorMode = orignLight.color_mode
CorLight.blackbodyTemperature = orignLight.color_temperature
--CorLight.sphereRadius = orignLight.size0     
CorLight.rectangleHeight = 2*orignLight.size1
if CorLight.type==0 then
CorLight.rectangleWidth = orignLight.size0
else
CorLight.rectangleWidth = 2*orignLight.size0
CorLight.rectangleDirectionality = orignLight.lightDistribution

and now it works...

EDIT: I did not see that there was a version 0.007 that existed. So my message is no longer needed ! There are still just the problem with the diameter of the spheres...
« Last Edit: 2014-12-03, 11:23:35 by archimi »

2015-02-11, 13:33:23
Reply #58

vinbarg

  • Active Users
  • **
  • Posts: 129
    • View Profile
Hi have the same problem with sphere radius, but with v0.07.ms any help:?

2015-02-26, 08:06:38
Reply #59

tip01

  • Active Users
  • **
  • Posts: 37
    • View Profile
Stopped working. Corona_v.1.0

2015-02-26, 10:08:29
Reply #60

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
The (previous Material only) Converter now also converts lights, have a look here: https://forum.corona-renderer.com/index.php/topic,126.0.html

So this script is obsolete.
Any sufficiently advanced bug is indistinguishable from a feature.