YafaRay for trueSpace 2019

LightWorks, VRay, Dribble, YafaRay and more..
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: YafaRay for trueSpace 2019

Post by trueBlue »

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.
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: YafaRay for trueSpace 2019

Post by clintonman »

True, when you check the infinite option the radius input disappears.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: YafaRay for trueSpace 2019

Post by trueBlue »

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.
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: YafaRay for trueSpace 2019

Post by clintonman »

trueBlue wrote: 30 Dec 2019, 13:01 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.
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?
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: YafaRay for trueSpace 2019

Post by trueBlue »

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.
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: YafaRay for trueSpace 2019

Post by clintonman »

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.
Ok, I'll check it out.

"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";
which should be

Code: Select all

		
		else if (Node.Exists(CurrentNode + "/DirlightShader"))
			LightType = "Infinite";
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: YafaRay for trueSpace 2019

Post by clintonman »

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"
Attachments
Convert Lights.RsObj
(12.58 KiB) Downloaded 210 times
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: YafaRay for trueSpace 2019

Post by trueBlue »

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:

Code: Select all

	else if (Node.Exists(CurrentNode +  "/DirlightShader") && (Node.ConExists(CurrentNode, "Samples")))
		LightType = "Infinite";
for backwards compatibility.

Uploading the changes to the Unofficial Updates...
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: YafaRay for trueSpace 2019

Post by trueBlue »

Scratch that, it does work. I did not test it with the typo changed
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: YafaRay for trueSpace 2019

Post by clintonman »

All done. :bananamouse:
Just finished updating the online help files and updated the sample scenes to use the new Scene Utilities script.
Clinton Reese

http://clintons3d.com
Post Reply