YafaRay for trueSpace 2019

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

Re: YafaRay for trueSpace 2019

Post by trueBlue »

I have the Internal Viewer enabled and the iOptiDetector Viewer disabled. iOptiDetector plugin not installed.
The Internal Display is not updating for me when using the tif file format in an animation.
Render Scene is working but not Render Animation
I checked the DisplayFrame/PanelEditorNode attribute in Windows Manager Space and confirm that it is not being set to the Tiff Loader.

Also tested a previous (December 09, 2019) YafaRay4tS panel and it does not work either.

The above is true if you do not have the iOptiDetector plugin installed.
When I load it, it works even though I have the iOptiDetector Viewer disabled.

Okay this is strange, further testing after uninstalling the iOptiDetector plugin, the above is now working.

Further testing this, I can repeat this issue with the Internal Viewer not updating when rendering an animation in the tif format.
If I change this path, I can get it to work
Set Display Node Values script

Code: Select all

//	FileName = Node.Value(Space.CurrentScene() + "/YafaRay4tS/tSDisplay", "Yaf_RenderFilename");
	FileName = Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Yaf_RenderFilename");
User avatar
bitkar
Captain
Posts: 2089
Joined: 16 Mar 2010, 07:14
Type the number ten into the box: 0
Location: Czech Republic

Re: YafaRay for trueSpace 2019

Post by bitkar »

guys, you will need to rename this to 2020 :D or start a new thread ;)

you are totally amazing, you put yourselves into this project big time! Thank you!
Michal aka bitkar
tS freak since tS2 (1998) and forever (tS7.61 modeler)
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: YafaRay for trueSpace 2019

Post by clintonman »

It's done. :bananamouse:

Final standalone installer for YafaRay4tS v0.9.9 can be found here:
http://clintons3d.com/plugins/truespace ... faray.html

I recommend using the Unofficial Updates instead of the multi-step process that goes along with the standalone installer.

I still need to update the page, the sample scene files and the online help.

Any further updates, including bug fixes will only happen for the integrated Unofficial Update version or maybe in the form of some kind of standalone patch.
Clinton Reese

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

Re: YafaRay for trueSpace 2019

Post by trueBlue »

clintonman wrote: 29 Dec 2019, 00:38 It's done. :bananamouse:

Final standalone installer for YafaRay4tS v0.9.9 can be found here:
http://clintons3d.com/plugins/truespace ... faray.html
All I am seeing is YafaRay4tSv097_gamma2.zip which is not YafaRay4tS v0.9.9
The included older YafaRay Cameras will cause errors in tS761Std
YafaRayScripts are version 7
Most likely all of the other objects are older versions too.

Please test your BlendMaterial scene.RsScn by running the older Scene Utilities/ Update YafaRay Lights
Actually the newer Scene Utilities has the same problem.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: YafaRay for trueSpace 2019

Post by clintonman »

trueBlue wrote: 29 Dec 2019, 17:17
clintonman wrote: 29 Dec 2019, 00:38 It's done. :bananamouse:

Final standalone installer for YafaRay4tS v0.9.9 can be found here:
http://clintons3d.com/plugins/truespace ... faray.html
All I am seeing is YafaRay4tSv097_gamma2.zip which is not YafaRay4tS v0.9.9
The included older YafaRay Cameras will cause errors in tS761Std
YafaRayScripts are version 7
Most likely all of the other objects are older versions too.

Please test your BlendMaterial scene.RsScn by running the older Scene Utilities/ Update YafaRay Lights
Actually the newer Scene Utilities has the same problem.
I download and get the new one. Try clearing your browser cache.
Clinton Reese

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

Re: YafaRay for trueSpace 2019

Post by trueBlue »

clintonman wrote: 29 Dec 2019, 18:40
I download and get the new one. Try clearing your browser cache.
That did the trick, thanks!
Converting yafaray lights is not working for me. I am not seeing any System.Trace errors and it seems that the attributes are being copied over. But there is definitely something wrong.
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: YafaRay for trueSpace 2019

Post by trueBlue »

Okie Dokie, I found the problem.
Infinite Light on the left is the light that gets replaced with the Scene Utilities.
Infinite Light on the right is from the library and or preferences.
Notice Samples get changed to Size?
Capture.PNG
Also the Yafaray Helper has the YafaRay Directional script that does not have Sample

Edit: Fixed by changing the LightType from Node.Exist to Node.ConExists for the Infinite and Directional

Code: Select all

function GetLightType(CurrentNode)
{
	LightType = "none";
	// Figure out what the light type is
	if (Node.Exists(CurrentNode + "/LocalLight"))
		LightType = "Point";
	else if (Node.Exists(CurrentNode + "/AreaLight"))
		LightType = "Area";
	else if (Node.Exists(CurrentNode + "/SpotlightShader"))
		LightType = "Spot";
	else if (Node.Exists(CurrentNode + "/Spot Preferences"))
		LightType = "Spot";
	else if (Node.ConExists(CurrentNode, "Size"))
		LightType = "Directional"
	else if (Node.Exists(CurrentNode + "/SunLightShader"))
		LightType = "Sun";
	else if (Node.Exists(CurrentNode + "/SphereLight"))
		LightType = "Sphere";
	else if (Node.Exists(CurrentNode + "/IES Spot Preferences"))
		LightType = "IES Spot";
	else if (Node.ConExists(CurrentNode, "Samples"))
		LightType = "Infinite";

	if (LightType == "none" && Node.IsLight(CurrentNode)) {
		if (Node.Exists(CurrentNode + "/Omni Preferences"))
			LightType = "Point";
		else if (Node.Exists(CurrentNode + "/Area Preferences"))
			LightType = "Area";
		else if (Node.Exists(CurrentNode + "/Spot Preferences"))
			LightType = "Spot";
		else if (Node.Exists(CurrentNode + "/Directional Preferences"))
			LightType = "Directional";
		else if (Node.Exists(CurrentNode + "/DirlightShader/ShadowMap"))
			LightType = "Directional";
		else if (Node.Exists(CurrentNode + "/Projector Preferences"))
			LightType = "Spot";
		else if (Node.Exists(CurrentNode + "/Infinite Preferences"))
			LightType = "Infinite";
		else {
			System.Trace("No truespace or yafaray light found - skipping...");
			return "";
		}
	}
	return LightType;

}
Damit! Now there is a problem with tS761 Spot and Projector Lights but that looks like it existed before.
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: YafaRay for trueSpace 2019

Post by clintonman »

I don't think yafaray infinite and directional lights use samples.
Clinton Reese

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

Re: YafaRay for trueSpace 2019

Post by trueBlue »

In the YafaRayInfinite/Color Picker/Yafaray Helper
Capture.PNG
Capture.PNG (5.46 KiB) Viewed 6842 times
The YafaRay Directional does not have Samples
User avatar
clintonman
Captain
Posts: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

Re: YafaRay for trueSpace 2019

Post by clintonman »

NoSamplesInfDirLights.jpg
Yellow shows infinite and directional yafaray lights in blender
Blender doesn't show samples for infinite or directional lights, so I dont think samples are used for those lights.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5548
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: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

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: 5548
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: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

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: 5548
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: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

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: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

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 Lightsd21a.RsObj
(12.58 KiB) Downloaded 319 times
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5548
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: 5548
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: 5659
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California

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
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: YafaRay for trueSpace 2019

Post by trueBlue »

Fixed some issues with the YafaRay4tS and c3dPersistenceAutoload installers.
The c3dPersistenceAutoload is included in the YafaRay4tS folder.
The Toolbar prototypes and Recent Files were added and updated.
It was saving recent files in the toolbars permanately to disk.
Added modal questions, for the Uninstall, C3D Reset, and the c3dPersistenceAutoload.
Added the missing YafaRay4tS.png, EntryPoint.RsObj, and Tiff Loader.RsObj
Tested in tS761B8, tS761B8Std, tS761B8.5, and tS761B8Std.5

Getting a Access File Denied (File in use) error when running the Install and Uninstall during the same trueSpace session. So you should Exit trueSpace before running one or the other.
Attachments
YafaRay4tS_Installer.zip
(16.13 MiB) Downloaded 305 times
Saul
Senior Chief Petty Officer
Posts: 308
Joined: 22 May 2009, 16:50

Re: YafaRay for trueSpace 2019

Post by Saul »

'tS761B8.5'

?????
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: YafaRay for trueSpace 2019

Post by trueBlue »

Saul wrote: 10 Jan 2020, 16:40 'tS761B8.5'

?????
trueSpace 7.61 Beta 8 Unofficial Update
viewtopic.php?t=3732
SylviaWhite
Marine
Posts: 1
Joined: 23 Feb 2022, 09:40
Type the number ten into the box: 10

Re: YafaRay for trueSpace 2019

Post by SylviaWhite »

Been looking for this, but now we are in the the 2022, is there the grand update?

Return to “Rendering”