Print at Jun 6, 2020, 5:06:31 AM
Posts: 103   Pages: 11   [ 1 2 3 4 5 6 7 8 9 10 | Next Page ]
View all posts in this thread on one page
Posted by Puybaret at Aug 29, 2019, 12:41:27 AM
YafaRay rendering plug-in
Hi,

I'm happy to present you the YafaRay Rendering plug-in able to render images with Yafaray engine, thanks to the new Tools > Create photo with YafaRay menu item (see the end of this message for download links).



After the rendering engines performance test made last year, YafaRay library looked like a good candidate to improve the rendering speed at two best quality levels in Sweet Home 3D.
Thus, this plug-in mostly replaces SunFlow engine by YafaRay engine, reusing the same features and look as the existing Create photo dialog box at the moment (both dialog boxes even share the same parameters).
It's able to run under Windows 32 / 64 bit, macOS 64 bit and Linux 32 / 64 bit. Spherical lens was missing in the version 1.0. You'll probably notice also that, compared to SunFlow, the default sky produces a slightly bluer color when a sky texture is not used.

From my tests, this new rendering engine runs twice faster. Not as much faster as the performance test let me hoped, but it's still a good improvement.
From a developer point of view, this plug-in is very close to the existing photo creation tool, with its YafarayPhotoPanel and YafarayRenderer classes close to the PhotoPanel and PhotoRenderer existing classes. This should allow developers (enkonyito?) who know these classes to improve this plug-in if they want, and me to factorize some code in a future version. Parameters available in YafaRay can be quite easily guessed from the XML examples provided in YafaRay downloads. Avoid to touch the native YafarayRenderer.cpp file used as a bridge to YafaRay if you don't know JNI (Java Native Interface), but it shouldn't be necessary.

I'm looking forward to read your feedback about this plug-in smile

Many thanks to David Bluecame from YafaRay team for his help to fix some issues.

Download links for YafaRay Rendering plug-in:
YafaRay Rendering plug-in 1.2 (21 MB) was released on 5/18/2020 with fisheye lens projection fixed and faster rendering launch delay
YafaRay Rendering plug-in 1.1 (24 MB) was released on 5/8/2020 with additional support for spherical lens
YafaRay Rendering plug-in 1.0 (24 MB) was released on 31/01/2020 after a beta test of a few months
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer

Posted by waleedfahmy at Aug 29, 2019, 12:52:44 AM
Re: YafaRay rendering plug-in
Thank you Puybaret for great effort ,
downloading and going to try :)

Posted by waleedfahmy at Aug 29, 2019, 5:51:03 AM
Re: YafaRay rendering plug-in
SH3d crashes when I try to render using this plugin , ordinary rendering and photo-video rendering plug-ins are working ok .
my system is windows10 64 bit , processor intel core-I5 @1.7 GHz , 4GB ram ,Intel HD Graphics 4400

Posted by Ceciliabr at Aug 29, 2019, 9:35:05 AM
Re: YafaRay rendering plug-in
I might be doing something wrong, but it seems the YafaRay does not work properly on a Mac 6.1 running OS High Sierra.

Pressing the Create-button, it just changes colour for a second. Nothing else happens.

Cecilia

Posted by GnU at Aug 29, 2019, 10:55:21 AM
Re: YafaRay rendering plug-in
The same for me:

SH3d crashes when I try to render using this plugin, ordinary rendering and photo-video rendering plug-ins are working ok. My system is Windows10 64 bit, Ryzen 1700, 16GB ram, RX580

Posted by ndorigatti at Aug 29, 2019, 11:21:43 AM
Re: YafaRay rendering plug-in
@Ceciliabr: Here works on a MacBook Pro 13 (2017, the one with usb-c) with Mojave

It seems also quite fast.

@Pubayet
I made a test with PVR 1.7 (SweetHome 6.2) Q4 (ambient occlusion)
And one with YafaRay plugin

PVR 1.7
:



YafaRay Plugin
:


I like a lot how Yafaray light goes to the "left" side of the picture, it is really close to what happens in real life, and ambient light is very nice.
On the other side lights allaround seem way better with enkyo plugin, I don't know if it depends with the usage of PVR light panels or it is something other.
In top right the cube light is very nice with enkyo plugin, but behaves bad on YafaRay.

It's very exciting as a new plugin and maybe enkyo can make a PVR-YafaRay plugin that is fast and nice!!!

Posted by hansmex at Aug 29, 2019, 2:20:22 PM
Re: YafaRay rendering plug-in
Great idea!! Thank you very much.

Unfortunately the plug-in crashes on every file I tried.
- - System: Windows Pro 10 64 bits, SH3D 6.2 with 8 GB memory allowance

I'm happy t o report that under Ubuntu the plugin rune just fine.
- - System: Ubuntu 18.04 64 bits, SH3D 6.2 with 2 GB memory allowance (installed from app store)

Does anyone know how I can change the memory allowance under Ubuntu?


Hans
----------------------------------------
Dual boot - AMD FX6300 6-core, 16GB ram
Windows 10 Pro, SH3D 6.2 with 8 GB memory allowance
Ubuntu 18.04, SH3D 6.2 with 2 GB memory allowance

Posted by bdfd at Aug 29, 2019, 5:52:16 PM
angry   Re: YafaRay rendering plug-in
Hi,

Even on my new PC, this plug-in crashes down sh3d software ???

Sh3D disappears when I execute the plug-in… biggrin :
in Q3 or Q4,
with old or new file !
=> except in Q1 and Q2. confused

Not ready yet for everybody. crying
.
----------------------------------------
Back to 6.1.2 (6.2 & 6.3 too heavy) and nothing else - W10 64b
Asus TUF Z390 , Intel Core i9-9900K (3.6 GHz) , Chipset Z390 Exp, RAM 32 Go DDR4 3000 Mhz, SSD M.2 512 Go + HDD 3 To,
MSI GeForce RTX 2080 8Go

Posted by UbuntuBirdy at Aug 29, 2019, 6:19:07 PM
Re: YafaRay rendering plug-in
PVR 1.7


PVR 1.8 Beta


YafaRay


Not what I expected, but yes, it's fast!
...and it safes some serious disk space... laughing
----------------------------------------
Pascal

SH3D 6.3 / Ubuntu 18.04 (Mainline-Kernel) / Radeon RX580 / Ryzen 7 1800x

Posted by Puybaret at Aug 29, 2019, 7:32:00 PM
Re: YafaRay rendering plug-in
Many thanks for your feedback, even if I hoped it would work better under Windows after all the energy I spent on resolving issues. On my side, the plug-in works with the installer of the free version of Sweet Home 3D under Windows 10, but not with the JAR executable version, the Microsoft Store version or under Windows 8.1. I fear that I pushed too far the ability to load DLLs on the fly under that system. I'll study possible other solutions.
Anyway, I fixed the issue encountered by Cecilia (just a missing DLLs for older macOS versions) and released a Beta 2 available here.

About images posted by UbuntuBirdy and ndorigatti, I'm happy you succeeded to run the plug-in but comparing your results with the ones generated with enkonyito plug-in isn't really fair, since I just tried to adjust YafaRay settings to reproduce images generated by the default Photo creation tool of Sweet Home 3D! But surely, even on that side, there must be some remaining bugs.

To Windows users, could you check if the program fails even with an empty home or some available from the File > New from demo menu item? Thanks smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer

Posts: 103   Pages: 11   [ 1 2 3 4 5 6 7 8 9 10 | Next Page ]