YafaRay4tS v1.0.0

LightWorks, VRay, Dribble, YafaRay and more..
Post Reply
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

YafaRay4tS v1.0.0

Post by clintonman »

YafaRay_3D_Texture_Test.gif
Image is animated maybe click to see it?
bottom is uv and top is global texture coordinates


Small update that adds support for 3D texture renders for the wood, marble, cloud and voronoi procedural textures. It also fixes a bug where animations cannot be rendered from the Unofficial Updates Standalone version.

There are 2 installers, one for the Unofficial Updates and another that requires many more steps to install all the prerequisites. The only prerequisite for the UU is that the rsx plugin Clintons3dPlugin is at or above v163850.

http://clintons3d.com/plugins/truespace ... faray.html

Other changes:

opens the procedural texture panels in a floating window instead of the stack
Texture Coordinates options - UV, Global, Generated
Negative option - The effect of the Texture is negated
Blend Mode options - mix, add, muliply, substract, screen, difference, darken, lighten, overlay
wood, marble, cloud and voronoi nodes only exist in the Components - Compositing library, removed from the YafaRay Materials library
updates all the status messages to use the plugin based status message
fix broken blend material to export colors properly
fix broken clouds color export
scene utilities will update blend materials
fix bug when try to render compound non-yafaray materials from older tS sample file
Clinton Reese

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

Re: YafaRay4tS v1.0.0

Post by trueBlue »

YafaRay Spotlights

Edit: Changing ThresholdAttenuation to 0.000 looks like a better option too

Currently, AttQuadratic is set to 0.000
Before.png
.
If I change AttQuadratic to 0.050, I do not get the Ughly results
After.png
Render Before
GlassBefore.png
.
Render After
GlassAfter.png
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: YafaRay4tS v1.0.0

Post by trueBlue »

Here is the updated YafaRay Lights library
Let me know if you approve
Removed due to update
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: YafaRay4tS v1.0.0

Post by clintonman »

YafLightsFalloff01.jpg

Not there yet. Image has 3 spotlights all with the default values but at different heights.
The falloff needs work, only the lowest spot on the right matches the render.
Maybe I can apply some of the glTF falloff lessons to it. There's nothing I could find in the YafaRay docs that mentions what the falloff should be, so hopefully it's similar. I think I have a YafaRay slide presentation, maybe it will give a clue, I'll check there first.

Found it in the wayback machine,

https://web.archive.org/web/20120929122 ... nglish.pdf

Its from a crash course by one of the authors or users of YafaRay.

"Fast and good results, thanks to
raytracing and YafaRay physically
based rendering
techniques."

This makes me think the lights need inverse square falloff, so I think you're on the right track focusing on AttQuadratic
Clinton Reese

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

Re: YafaRay4tS v1.0.0

Post by clintonman »

YafLightsFalloff03.jpg
top original glass render, bottom background power set to 0


Still experimenting but here's an important note for the glass scene. The background light needs to be turned off to even begin matching the trueSpace spotlight with the rendered result.
Background panel > Power = 0

Edit: another note is that the ground plane is a single face so it needs to be subdivided to look proper inside tS
Clinton Reese

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

Re: YafaRay4tS v1.0.0

Post by clintonman »

YafLightsFalloff04.jpg
Getting much closer now.

Ground plane divided to 289 vertices
Background Power=0
3 lights from my test scene added to the glass scene
Helper script for testing to set all the lights attquadratic and power division values

AttConstant=0, AttLinear=0.05, AttQuadratic=0.0001
inside ../YafaRay Spot/Color Picker/Yafaray Helper changed from Power = Power * 50 to Power = Power / 35

Next is converting the 3 test lights to different yafaray light types to check their attenuation values and power math.
Clinton Reese

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

Re: YafaRay4tS v1.0.0

Post by trueBlue »

I also changed ThresholdAttenuation to 0.000 in the Spotlights that I uploaded

This is the from the YafaRay Scenes library
Glass
Same settings as the original with the new (1/3/2024) YafaRay4tS panel, Materials, and modified Spotlight
Original Plane is not sub divided
Screenshot (112).png
You might want to try a new Workspace Scene and use the YafaRay4tS Utilities to convert the lights
The YafaRay4tS Utilities does not alter the Attenuation values
This is what lead me to experiment with the Attenuation values
Berfore.png
.
AttQuadratic = 0.050
ThresholdAttenuation = 0.050
AttQuadratic 0.050.png
.
AttQuadratic = 0.050
ThresholdAttenuation = 0.000
ThresholdAttenuation 0.000.png
.
Here is new purposed scene from the YafaRay4tS Setup library
(1/3/2024) YafaRay4tS panel
Note: This will need to be updated to the latest release
Attachments
YafaRay4tS.RsScn
(2.05 MiB) Downloaded 31 times
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: YafaRay4tS v1.0.0

Post by clintonman »

Here's the updated lights library.

Area Light - AttConstant=0, AttLinear=0.05, AttQuadratic=0.0001, helper has Power / 30
IES Light - AttConstant=0, AttLinear=0.05, AttQuadratic=0.0001, helper has Power / 22
Point Light - AttConstant=0, AttLinear=0.05, AttQuadratic=0.0001, helper has Power / 30
Spot Light - AttConstant=0, AttLinear=0.05, AttQuadratic=0.0001, helper has Power / 30

Sphere Light - AttConstant=0, AttLinear=0.05, AttQuadratic=0.0001, helper has Power / 50
Sphere Light needs a fix to the YafaRay4tS LightsFnSet, it exports at double the size
Added Longitude and Latitude inputs for use with the sphere light Render option
Exported the ORA
Attachments
YafaRay Lights.zip
(4.78 MiB) Downloaded 30 times
Clinton Reese

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

Re: YafaRay4tS v1.0.0

Post by trueBlue »

clintonman wrote: 05 Jan 2024, 19:29 Here's the updated lights library.

Area Light - AttConstant=0, AttLinear=0.05, AttQuadratic=0.0001, helper has Power / 30
IES Light - AttConstant=0, AttLinear=0.05, AttQuadratic=0.0001, helper has Power / 22
Point Light - AttConstant=0, AttLinear=0.05, AttQuadratic=0.0001, helper has Power / 30
Spot Light - AttConstant=0, AttLinear=0.05, AttQuadratic=0.0001, helper has Power / 30

Sphere Light - AttConstant=0, AttLinear=0.05, AttQuadratic=0.0001, helper has Power / 50
Sphere Light needs a fix to the YafaRay4tS LightsFnSet, it exports at double the size
Added Longitude and Latitude inputs for use with the sphere light Render option
Exported the ORA
Most likely, a big Ask?
Any chance the YafaRa4tS Scene Utilities can adjust to the above values?
Even bigger Ask?
Can you do the same as you did with the Convert Light Types?

Code: Select all

if( (connector[3] & CONFLG_HIDDEN) != 0 && connector[0] != "LE2Data") continue;
if((connector[3] & CONFLG_IN) == 0 && connector[0] != "LE2Data") continue;
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: YafaRay4tS v1.0.0

Post by trueBlue »

Ugh, you removed the YafaRay Light(s) Color inputs from the ORA panel
No 3D View indication to what the Color is

Here is a working YafaRay4tS Help.chm file for your installer
Date created 12/24/2019 1:11 PM
For whatever reason the pages are not showing in yours
Attachments
YafaRay4tS Help.zip
(721.41 KiB) Downloaded 27 times
Post Reply