Download

Online

Gallery

Blog

  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 | 2 3 4 5 6 7 8 9 10 11 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 410858 times and has 172 replies Next Thread
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

Still not what I expected, but it's getting better (Beta 4):


Screenshot of the 3D-view:

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

SH3D 6.6 / Ubuntu 22.04 (Mainline-Kernel) / Radeon RX580 / Ryzen 7 5800x
[Jan 13, 2020, 7:32:14 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: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: YafaRay rendering plug-in

Thank you all for your feedback smile

Tonight, the version 1.0 Beta 5 of the plug-in now shows borders around rendered tiles and brings a bug fix that could give weird results with lines (UbuntuBirdy, I hope it will resolve your issue). I also removed double faces to avoid bad results shown on the chairs in Cecilia's test file.



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
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jan 14, 2020, 6:44:08 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 3948
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: 619
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: 9141
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 developer
[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
Member's Avatar


Joined: May 28, 2015
Post Count: 601
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: 9141
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 developer
[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: 619
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 
Posts: 173   Pages: 18   [ Previous Page | 2 3 4 5 6 7 8 9 10 11 | 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 2006-2024 eTeks - All rights reserved