YafaRay for trueSpace 2019
Re: YafaRay for trueSpace 2019
I dunno…
Looks like the directional and infinite are combined (true or false')
http://www.yafaray.org/documentation/us ... 0and%20Sun
The Yafaray Helper is the same since the change with the yafaray lights.
All I know is with the Convert Lights script, the YafaRay Infinite was being replaced with the directional YafaRay Helper. Or maybe the whole directional light.
Looks like the directional and infinite are combined (true or false')
http://www.yafaray.org/documentation/us ... 0and%20Sun
The Yafaray Helper is the same since the change with the yafaray lights.
All I know is with the Convert Lights script, the YafaRay Infinite was being replaced with the directional YafaRay Helper. Or maybe the whole directional light.
- clintonman
- Captain
- Posts: 5432
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: YafaRay for trueSpace 2019
True, when you check the infinite option the radius input disappears.
Re: YafaRay for trueSpace 2019
So remove the Samples from the Infinite light?
What about the Convert Lights script?
It would have to be backwards compatible with the above change.
The Infinite and Directional both have the DirLightShader with the same name.
What about the Convert Lights script?
It would have to be backwards compatible with the above change.
The Infinite and Directional both have the DirLightShader with the same name.
- clintonman
- Captain
- Posts: 5432
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: YafaRay for trueSpace 2019
First post mentions infinite replace with wrong infinite versions and samples, then talks about yafaray helper then says spot and projector has problem.
What is happening now with the Convert Lights script and what should be happening?
Re: YafaRay for trueSpace 2019
Your current Convert Lights script replaces a YafaRay Infinite light with a YafaRay Directional light.
Just noticed that my last modification did not work with the YafaRay Sphere light because it has Samples too.
Currently, I have changed the Preferences/Lights/YafaRay Infinite by removing the Samples attribute.
Also the YafaRay4tS.RsScn, YafaRay4tS.RsSLgts, and the YafaRay Infinite light in the YafaRay Lights library.
Also after experimenting several different ways, I finally have a Convert Lights script that works and is backwards compatible.
Just noticed that my last modification did not work with the YafaRay Sphere light because it has Samples too.
Currently, I have changed the Preferences/Lights/YafaRay Infinite by removing the Samples attribute.
Also the YafaRay4tS.RsScn, YafaRay4tS.RsSLgts, and the YafaRay Infinite light in the YafaRay Lights library.
Also after experimenting several different ways, I finally have a Convert Lights script that works and is backwards compatible.
- clintonman
- Captain
- Posts: 5432
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: YafaRay for trueSpace 2019
Ok, I'll check it out.trueBlue wrote: ↑30 Dec 2019, 17:40 Your current Convert Lights script replaces a YafaRay Infinite light with a YafaRay Directional light.
Just noticed that my last modification did not work with the YafaRay Sphere light because it has Samples too.
Currently, I have changed the Preferences/Lights/YafaRay Infinite by removing the Samples attribute.
Also the YafaRay4tS.RsScn, YafaRay4tS.RsSLgts, and the YafaRay Infinite light in the YafaRay Lights library.
Also after experimenting several different ways, I finally have a Convert Lights script that works and is backwards compatible.
"The Infinite and Directional both have the DirLightShader with the same name."
That's not true, the names are close. but not the same.
Directional has "DirLightShader" and infinite has "DirlightShader" with a lower case L.
My current version has this error:
Code: Select all
else if (Node.Exists(CurrentNode + "/DirlightShader"))
LightType = "Directional";
Code: Select all
else if (Node.Exists(CurrentNode + "/DirlightShader"))
LightType = "Infinite";
- clintonman
- Captain
- Posts: 5432
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: YafaRay for trueSpace 2019
Your version wont update the yafaray directional light because of the lower case L
Attached is original with one word changed as mentioned above. "Directional" -> "Infinite"
Attached is original with one word changed as mentioned above. "Directional" -> "Infinite"
- Attachments
-
- Convert Lights.RsObj
- (12.58 KiB) Downloaded 212 times
Re: YafaRay for trueSpace 2019
Okay I see the difference.
I fixed my typo.
One of the things your last version does not take into account, is the YafaRay Infinite with the Samples attribute.
I have added:
for backwards compatibility.
Uploading the changes to the Unofficial Updates...
I fixed my typo.
One of the things your last version does not take into account, is the YafaRay Infinite with the Samples attribute.
I have added:
Code: Select all
else if (Node.Exists(CurrentNode + "/DirlightShader") && (Node.ConExists(CurrentNode, "Samples")))
LightType = "Infinite";
Uploading the changes to the Unofficial Updates...
Re: YafaRay for trueSpace 2019
Scratch that, it does work. I did not test it with the typo changed
- clintonman
- Captain
- Posts: 5432
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: YafaRay for trueSpace 2019
All done.
Just finished updating the online help files and updated the sample scenes to use the new Scene Utilities script.
Just finished updating the online help files and updated the sample scenes to use the new Scene Utilities script.