Yafaray4tS v0.9.0

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

Re: Yafaray4tS v0.9.0

Post by clintonman »

trueBlue wrote: 18 Jun 2018, 12:15 Hope everything is going good with your update!
I am back to Version 8 and the Offline Render icon's RMB commands works as expected.
Just noticed that the Yafaray Spot light's Shadow does not work in the render.
Did a quick test and the render shadow works here.
Clinton Reese

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

Re: Yafaray4tS v0.9.0

Post by trueBlue »

Are you sure it is not an Infinite light that is giving you the Shadow?

For whatever reason, Infinite lights work but not Spot lights.
Can you share your scene?


On another note, the Render Object script could use a little love.
I did not work on much as it was just a proof of concept.

Few things that would be better.
If no selection, do not render.
If selection is Light, or Camera, do not render.
IE: Only objects.
I hooked up a tS Reset View commad and got an error because the Window was not selected.
This command works though;

Code: Select all

RsTool.ResetView('{2C152F81-45A2-4035-8896-9E49D60C8A7A}')
Other then that it worked good but only in a View that had been reset.
What would be awesome is if you could capture the view before running the Zoom 2 Selection, then restore it.
And also add Camera Views to the Zoom 2 Selection.
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Yafaray4tS v0.9.0

Post by clintonman »

trueBlue wrote: 19 Jun 2018, 01:31 Are you sure it is not an Infinite light that is giving you the Shadow?

For whatever reason, Infinite lights work but not Spot lights.
Can you share your scene?


On another note, the Render Object script could use a little love.
I did not work on much as it was just a proof of concept.

Few things that would be better.
If no selection, do not render.
If selection is Light, or Camera, do not render.
IE: Only objects.
I hooked up a tS Reset View commad and got an error because the Window was not selected.
Other then that it worked good but only in a View that had been reset.
What would be awesome is if you could capture the view before running the Zoom 2 Selection, then restore it.
And also add Camera Views to the Zoom 2 Selection.
Light has an adjustable cone, so yep, it's a spotlight.

Object Render does not zoom or do anything special, but I didn't know about reseting the view to make it work.

attached is my scene file and the new plugin file that's required for render file selection dialog

changes so far:
fixed normalmap export
uses default Image folder in tS folder- don't see easy way to have Animation folder as well except maybe as a special reset button
fixed blank file name error
added bforartists as one of the defaults for yafaray xml
was rendering to the temp path instead of the render file path
one section of code was ignoring the selected custom temp folder
full file path defaults into the render file dialogs on win7 and up, already worked on winxp
Attachments
SpotShadow.RsScn
(2.26 MiB) Downloaded 157 times
Clintons3dPlugin.zip
(1.22 MiB) Downloaded 141 times
Clinton Reese

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

Re: Yafaray4tS v0.9.0

Post by trueBlue »

clintonman wrote: 19 Jun 2018, 04:24 Light has an adjustable cone, so yep, it's a spotlight.

Object Render does not zoom or do anything special, but I didn't know about reseting the view to make it work.

attached is my scene file and the new plugin file that's required for render file selection dialog

changes so far:
fixed normalmap export
uses default Image folder in tS folder- don't see easy way to have Animation folder as well except maybe as a special reset button
fixed blank file name error
added bforartists as one of the defaults for yafaray xml
was rendering to the temp path instead of the render file path
one section of code was ignoring the selected custom temp folder
full file path defaults into the render file dialogs on win7 and up, already worked on winxp
It is not a requirement that you have to Reset your view in order for the Render Object to work.
Question, in those senarios that your modified Zoom 2 Selection script in the RenderObject did not do anything special, does your tS Background Zoom 2 Selection (Ctrl = MMB Double Click) or (Shift + LMB Drag) work any different?
If you are viewing from a Camera when using the Render Object, you will not see anything special, but the render will be different. But only if you have YafaRay4ts set to render from View.
Also it does not work unless the window has focus in typical tS7 fashion.

Are you sure you want the defaults to point to the Image Folder?
Just a thought...
What about a user that does not have the Update 4 ?

I will try your scene after your reply to the following:

Have you made any changes to your YafaRay4tS.RsObj?
Are all the changes related to your Plugin?
Do I need to exchange my YafaRay4tS.RsObj in System with the YafaRay4tS.RsObj in your SpotShadow.RsScn?

These files shown in the screen shot are invisible in my File Explorer, no way to delete them.
First three were created from YafaRay4tS Beta4 last week, the Example.RsObj and InpitBitmap.png were created from tS761B8.
Can you create a script for me that I can use to delete these files. If so you can write it so it deletes one of these files, and I can change that file in your script to delete the others one at a time. Just to make it simple.
Invisible files.PNG
Invisible files.PNG (8.27 KiB) Viewed 3618 times

Updates from me:
tS7.61B8.4_YafaRay4tS9_7 'This is the lastest yafaray update for the Update 4 Beta posted in this thread'
That included your Clintons3dPlugin.rsx v.1638412

YafaRay4tS9_8
'This is not an update for the Update 4 Beta' Deleted from this thread
YafaRay4tS9_9 'This is the latest update and is not an update for the Update 4 Beta posted in this thread'
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Yafaray4tS v0.9.0

Post by clintonman »

I made changes to the YafaRay4tS
Not all the changes are related to the plugin
Exchanges of the YafaRay4tS may be optional. Only thing that will not work will be the render file dialog.

You can try deleting the files from that screen where they are visible. Select and press the delete key. Where are the visible? can't tell from cropped screenshot is it in open or save dialog?
Clinton Reese

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

Re: Yafaray4tS v0.9.0

Post by trueBlue »

clintonman wrote: 19 Jun 2018, 17:18 I made changes to the YafaRay4tS
Not all the changes are related to the plugin
Exchanges of the YafaRay4tS may be optional. Only thing that will not work will be the render file dialog.

You can try deleting the files from that screen where they are visible. Select and press the delete key. Where are the visible? can't tell from cropped screenshot is it in open or save dialog?
Still not sure from your reply. Optional?
Is the YafaRay4tS in your scene the updated one?
If so does the Render File Dialog work with it, if I update your new plugin?

The screen shot was from using the File Dialog button on the Output Render File that runs:

Code: Select all

Activity.Run("%THIS_NAME%" + "/GetRenderFile");
Using my Delete key worked.
Duh, how simple was that?
Thank you.
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Yafaray4tS v0.9.0

Post by clintonman »

trueBlue wrote: 19 Jun 2018, 18:09
clintonman wrote: 19 Jun 2018, 17:18 I made changes to the YafaRay4tS
Not all the changes are related to the plugin
Exchanges of the YafaRay4tS may be optional. Only thing that will not work will be the render file dialog.

You can try deleting the files from that screen where they are visible. Select and press the delete key. Where are the visible? can't tell from cropped screenshot is it in open or save dialog?
Still not sure from your reply. Optional?
Is the YafaRay4tS in your scene the updated one?
If so does the Render File Dialog work with it, if I update your new plugin?

The screen shot was from using the File Dialog button on the Output Render File that runs:

Code: Select all

Activity.Run("%THIS_NAME%" + "/GetRenderFile");
Using me Delete key worked.
Duh, how simple was that?
Thank you.
It's optional in that if you want to you can type in the render filename manually. If you want to use the file dialog you have to use the latest plugin.
You can also share your scene file for me to look at.
Clinton Reese

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

Re: Yafaray4tS v0.9.0

Post by trueBlue »

Check this out and see if you like it.
Condensed the UI by half vertically in the Link Editor.
Color Picker or you can switch to the Color Dialog.
Attachments
YafaRay Spot.RsObj
(136.63 KiB) Downloaded 142 times
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Yafaray4tS v0.9.0

Post by clintonman »

trueBlue wrote: 20 Jun 2018, 00:39 Check this out and see if you like it.
Condensed the UI by half vertically in the Link Editor.
Color Picker or you can switch to the Color Dialog.
New YafaRay Spot light with color picker.PNG
Impressive, but limiting. I think if you can make the color selection 2 dimensional like the regular color picker it would be a good replacement for it. The interactive color change is way better than the built in color picker.
Clinton Reese

http://clintons3d.com
User avatar
bitkar
Captain
Posts: 1967
Joined: 16 Mar 2010, 07:14
Type the number ten into the box: 0
Location: Czech Republic
Contact:

Re: Yafaray4tS v0.9.0

Post by bitkar »

small Q: is it possible to make sliders for some basic number ranges in such panels as they are in model side material editor? Its especially very handy for ranges of 0-1 ... you visually know where you are in the given/usuall range.
Michal aka bitkar
tS freak since tS2 (1998) and forever (tS7.61 modeler)
Post Reply