Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 173
Posts: 173   Pages: 18   [ Previous Page | 3 4 5 6 7 8 9 10 11 12 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 469466 times and has 172 replies Next Thread
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 4014
Status: Offline
Reply to this Post  Reply with Quote 
Re: YafaRay rendering plug-in

After updating my plugins, I did a few test renders. Some results were as expected, others were shocking.

Too many large images, so look here for the comparison between standard SH3D render, Enko's plugin v1.8, and the YafaRay plugin v1b5.

http://www.hansdirkse.info/sh3d/
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
----------------------------------------
[Edit 1 times, last edit by hansmex at Jan 15, 2020, 1:06:21 PM]
[Jan 15, 2020, 1:04:59 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
UbuntuBirdy
Advanced Member
Member's Avatar

Switzerland
Joined: Aug 31, 2017
Post Count: 421
Status: Offline
Reply to this Post  Reply with Quote 
Re: YafaRay rendering plug-in

... (UbuntuBirdy, I hope it will resolve your issue)...


Emmanuel, you are a genius!


----------------------------------------
Pascal

SH3D 6.6 / Ubuntu 22.04 (Mainline-Kernel) / Radeon RX580 / Ryzen 7 5800x
[Jan 15, 2020, 4:00:26 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Ceciliabr
Advanced Member
Member's Avatar

Denmark
Joined: Jul 7, 2013
Post Count: 637
Status: Offline
Reply to this Post  Reply with Quote 
Re: YafaRay rendering plug-in

Seems the YafaRay renderer is still not completely up to speed on the CPU handling.



But I noticed little difference in speed. Maybe YafaRay was a fraction faster.


I also noticed another oddity:





This is a larger image, rendered by YafaRay:




Rendered by Sunflow:




And to make an unjust comparison; here's a rendering made with Enko's SPR v1.8:




___________________

In case you want to have a look at the terrain that YafaRay failed to render:

YafaTestTerrain.sh3d


Cec
[Jan 15, 2020, 9:01:02 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9432
Status: Offline
Reply to this Post  Reply with Quote 
Re: YafaRay rendering plug-in

Many thanks for your tests. It looks like we get closer to a working solution smile

The version 1.0 Beta 6 published today brings support for BMP, WBMP and GIF images (that will fix Cecilia's issue) and improves the cache of texture images to speed up YafaRay launch during subsequent times.

Cecilia, I tried your file and noted a similar CPU usage on my computer, even if it wasn't as low as in your case. As I wondered if it could be because of the very large images you use as textures, I created another version with much smaller images, but this gave the same results! Could you try with some files of the gallery (like the Alps hotel that you seem to like ;-), and report how rendering works with them?

Among the remaining issues, I noted that the default sky used in aerial view still gives some images a little bluer than with SunFlow. After some investigations, I didn't find any solution yet.
Before releasing a version 1.0, I shall add the support for Windows and Linux 32 bit and a Depth of field lens option. As YafaRay doesn't seem to be able to generate some equirectangular images, I fear there won't be any Spherical lens option at the moment. Any other ideas in mind?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jan 16, 2020, 9:50:30 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
enkonyito
Advanced Member




Joined: May 28, 2015
Post Count: 607
Status: Offline
Reply to this Post  Reply with Quote 
Re: YafaRay rendering plug-in

Enkonyito, I made some tests about area and mesh lights, and you can use some working code found in the comments of YafarayRenderer constructor.
In the source code you posted, corner, point1 and point2 must be arrays of 3 floats not Point3f instances (by the way, from parameter isn't used).
You should also take care of the orientation of the triangle built from corner, point1 and point2 (if ever it's wrongly oriented, just swap corner and point1).

About mesh lights, you have to provide the integer id of the mesh used as a light in a parameter named object. This id is returned by startTriMesh method so you'll have to store the ids of the meshes used as lights somewhere.
Good luck! smile


Thank you Puybaret for the advice on area lights! This works for unviewable light panels.



Using
long meshLightId = startTriMesh(-1, vertices.length / 3, verticesIndices.length / 3, false, uvs != null, 0, 0);
and
params.put("object", Integer.parseInt(light.getProperty(this.INT_MESH_LIGHT_ID)));
Sweet Home 3D no longer crashes for mesh lights but the opaque light panel emits light without being luminescent.
----------------------------------------
EnkoNyito
[Jan 23, 2020, 2:52:11 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9432
Status: Offline
Reply to this Post  Reply with Quote 
Re: YafaRay rendering plug-in

It's great you could find out. About the light panel color, maybe you could apply a light_mat material on the mesh (see the end of exportAppearance method)?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jan 23, 2020, 7:59:16 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Ceciliabr
Advanced Member
Member's Avatar

Denmark
Joined: Jul 7, 2013
Post Count: 637
Status: Offline
Reply to this Post  Reply with Quote 
Re: YafaRay rendering plug-in

Could you try with some files of the gallery (like the Alps hotel that you seem to like ;-), and report how rendering works with them?

For what it’s worth:

I have made some more tests with the YafaRay renderer, using an abused version of the Alps Hotel.
The abuse was necessary because I wanted to test how YafaRay responded to lighting. Since YafaRay is not yet ( at least not in the current version) able to handle Enko’s “Other Light Sources”, I had to see what could be done without using them – only using a multitude of the original light sources – like I used to do in the “old days”.

Result: The YafaRay renderer v1.6 beta works surprisingly well.

Here are some YafaRay renderings of the abused Alps Hotelreception and front desk:









The CPU-issues from the last version are gone.
YafaRay is now using all my 24 threads, as well as 92% of my CPU-capacity, and it’s performing quite fast – almost 50% faster than Sunflow.
It’s also producing some nice results – as long as have the patience to work with my light-settings.
And that’s where my ONLY complaint lies… for now:

Checking the lights are alfa and omega.
Enko has showed that programming a resizable render window is possible.
A resizable window will fit on any screen, no matter how stone-age the computer is.
So I ask: Is there a good reason for keeping the “official” render windows of SH3D so tiny?


Why is resizable so important?
As the YafaRay renderer is handling light sources somewhat different than the Sunflow renderer, it’s of no use to test my light-settings by using Enko’s resizable renderer.
So testing the YafaRay renderer becomes a somewhat time-consuming process:
First rendering the entire scene, then saving the test image. Then opening the test image in some graphics editor, and then trying to adjust the lights and do another test render… and then repeat the same process. I must admit that my motivation failed along the way, so my test renders are not what I would have liked them to be.
I know that YafaRay can produce better results – even great results, but I don’t think that will happen until we get more options – plus a resizable rendering window, so we can monitor the effect of our light-settings a lot faster than with the current version.

The bucket size of the YafaRay renderer, is it dynamic?
I'm wondering if that's the reason why it outperforms the Sunflow renderer.


Cec
----------------------------------------
[Edit 1 times, last edit by Ceciliabr at Jan 25, 2020, 9:59:43 PM]
[Jan 25, 2020, 9:47:22 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
UbuntuBirdy
Advanced Member
Member's Avatar

Switzerland
Joined: Aug 31, 2017
Post Count: 421
Status: Offline
Reply to this Post  Reply with Quote 
Re: YafaRay rendering plug-in

Why is resizable so important?
As the YafaRay renderer is handling light sources somewhat different than the Sunflow renderer, it’s of no use to test my light-settings by using Enko’s resizable renderer.
So testing the YafaRay renderer becomes a somewhat time-consuming process:
First rendering the entire scene, then saving the test image. Then opening the test image in some graphics editor, and then trying to adjust the lights and do another test render… and then repeat the same process. I must admit that my motivation failed along the way, so my test renders are not what I would have liked them to be.
I know that YafaRay can produce better results – even great results, but I don’t think that will happen until we get more options – plus a resizable rendering window, so we can monitor the effect of our light-settings a lot faster than with the current version.

Cec


You absolutely nailed it! It's nothing more but all about that point!
----------------------------------------
Pascal

SH3D 6.6 / Ubuntu 22.04 (Mainline-Kernel) / Radeon RX580 / Ryzen 7 5800x
[Jan 25, 2020, 11:41:44 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9432
Status: Offline
Reply to this Post  Reply with Quote 
Re: YafaRay rendering plug-in

Here's the version 1.0 Beta 7, probably the last one before I release a final version.

This version brings support for Windows 32 bit and Linux 32 bit, the reason why it's almost twice larger (24 MB) than previous Beta. From my tests, it requires at least Windows 7 and Ubuntu 16 to run. I wonder though if it's worth supporting 32 bit systems, because when a rendering runs out of memory, the program will crash and this may happen even with some examples of the gallery.

I also added the Depth of field lens (still with focus at 2.5 m) as shown in the screenshot below, and managed the silk effect of colored materials at the best quality level. I wished I could get a nicer effect, but similarly to SunFlow Uber shader, it seems to be complicated to get a good solution.



Finally, I improved the copy of 3D models into YafaRay at rendering launch, added the ability to resize the rendering dialog box and saved its location / size in properties separated from the default photo creation panel ones.

Is there a good reason for keeping the “official” render windows of SH3D so tiny?
It's mostly for aesthetic reasons, because I didn't like the space around the small group of controls at the bottom of a very large dialog box, and managing a minimum size isn't so easy. And not everybody has a large screen...

The bucket size of the YafaRay renderer, is it dynamic?
It looks like, and it's interesting at the end of a rendering because it helps to continue using all the power of the CPU.
I'm wondering if that's the reason why it outperforms the Sunflow renderer.
I don't think so.

Thanks again for helping me testing this new plug-in smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jan 27, 2020, 6:06:46 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9432
Status: Offline
Reply to this Post  Reply with Quote 
Re: YafaRay rendering plug-in

I just released the final version 1.0 of the YafaRay rendering plug-in.
The final version should show some less blue images when the default sky is used in aerial view, thanks to a little more power set on the sunlight source.

Thank your all for your tests and feedback. Hope you'll enjoy this new plug-in smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jan 31, 2020, 3:58:31 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 173   Pages: 18   [ Previous Page | 3 4 5 6 7 8 9 10 11 12 | Next Page ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved