Wings 3D Development Forum
POV-Ray [plugin] (updated: 2016/Aug/08) - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Design & Development (https://www.wings3d.com/forum/forumdisplay.php?fid=6)
+--- Thread: POV-Ray [plugin] (updated: 2016/Aug/08) (/showthread.php?tid=75)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


RE: POV-Ray [plugin] (updated: 2013/Jan/08) - micheus - 01-12-2013

Thanks maker.
It works fine for white light. Also, it can be used only with POV-Ray v3.7 which supports emission color in finish session.
But, it's really an option for that version.

In order to answer some oort's questions I was trying to produce this yafaray image (ref. http://www.yafaray.org/documentation/userguide/objects):
[img=250x250 link=http://www.yafaray.org/sites/default/files/images/tutorials/guide/meshlightBI.png]https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSIfiyJydvC-nEw-m_cWMADS1lXjO-RU6P-tA[/img]
By using your changes I could only reach this:
[Image: Blender-scene-meshlight.png]

It was necessary to decrease material pigment color and increase the finish emission color, otherwise the object becomes white.
I tried many settings, but the floor illumination is much better in yafaray.

If someone wants to play around with these scenes they can be found here


Environment Light support - micheus - 08-05-2016

It's still a W.I.P., but I would like to share the options I'm trying to add:

Gradient
[Image: light_environment-gradient.png]
HDRI
[Image: light_environment-hdri.png]
Sky Dome
[Image: light_environment-skydome.png]
Sky Box
[Image: light_environment-skybox.png]

I used these images:
[Image: env-light.png]

The SkyBox and SkyDome needs to be combined with any other kind of light to work.
You can notice there is something strange with the object shadows. I'm still need to figured it out.


RE: POV-Ray [plugin] (updated: 2013/Jan/08) - oort - 08-05-2016

Micheus,
Glad to see you are working on adding the new feature to the Pov-Ray plugin.

Thanks,
oort


RE: POV-Ray [plugin] (updated: 2016/Aug/05) - micheus - 08-05-2016

Ready for test. The file is in the first post in this thread.
- Added environment light option to Ambient light. To use the Sky Box an alternative source of light must be defined (do not need high power value). Radiance in render option should be enabled;
- Added two new properties to material Finish: Iradiance and Phong.


RE: POV-Ray [plugin] (updated: 2016/Aug/05) - oort - 08-05-2016

Thanks! I will try to find time to test sometime this weekend.

Thanks,
oort


RE: POV-Ray [plugin] (updated: 2016/Aug/05) - micheus - 08-08-2016

Direct link to the plugin update: wpc_pov-ertl8.0.tar (you can use the File->Install Plugin option to install it - under Windows you probably will need to run Wings3D as Administrator to get it updated)
The test scene includes all files used: PovRay3.7-Env-Test.zip

Tips related to Finish setup: Textures with POV-Ray

SkyBox: it requires a source light in the scene otherwise we get a black image;
SkyDome and HDRI: it's mandatory to enabled Radiosity ("Final" preset for better result)
* - An light source is required if we want see highlights in glossy objects
* - The background color still is defined in the Render options dialog.


Some pictures showing the results:
[Image: light_environment-background.png]

[Image: light_environment-gradient.png]

[Image: light_environment-_HDRI.png]

[Image: light_environment-skydome.png]

[Image: light_environment-_Sky_Box.png]


RE: POV-Ray [plugin] (updated: 2016/Aug/08) - oort - 08-09-2016

Micheus,
Looking very good. Didn't get to play with it this weekend but today I did some tests with the example scenes you created.

I noticed that Lightprobe (Angular) HDRI files do not reflect as well as they do for YafaRay. Is this a limitation of Pov-Ray or is there some extra setting that is needed to specify the type of HDRI. I see that Spherical HDRI files work perfectly.

Thanks,
oort


RE: POV-Ray [plugin] (updated: 2016/Aug/08) - tkbd - 08-09-2016

Hi Micheus, I tested your PovRay3.7-Env-Test.zip & wpc_pov-ertl8.0.tar
But,I couldn't set the environment map file. Sad
When checked the Ambient light, URI of the image file was as follows.

Quote:F:\Wings3d\Test Files\PovRay3.7\hdri\Arches_E_PineTree_3k.hdr
So I tried to change file-path to... (using file selector)

Quote:/Users/Myhdd/Desktop/PovRay3.7-Env-Test/hdri/Arches_E_PineTree_3k.hdr

but can't change it.
And Wings3D return such error message.
Quote:plugin(s) left garbage
Light editor plugin(s) left garbage:
[]

Also,PovRay rendering is failed(output in Wings log window)

Code:
> /Applications/povcui/povcui light_environment_export.pov +W640 +H480 +FN +olight_environment.png +A1.53 +R5 +J +L/Applications/povcui/include/

Failed to start render: Failed to parse command-line option
Unknown switch 'A1.53' on command-line.
Cannot process command-line due to a parse error.
This is not a valid command-line. Check the command-line for syntax errors, correct them, and try again.
Valid command-line switches are explained in detail in the reference part of the documentation.
Unknown switch 'A1.53' on command-line.
Cannot process command-line due to a parse error.
This is not a valid command-line. Check the command-line for syntax errors, correct them, and try again.
Valid command-line switches are explained in detail in the reference part of the documentation.


Rendering Job returned: 1
Export time:     2.980"
Render time:     0.446"
Total time:      3.425"
Rendering error: 1


I removed all the light object which including the environment map file.
then the rendering was successed.

MY enviroment is
OSX 10.11.5
Wings3D 2.0.5 + install new Pov-Ray plugin

Pov-Ray version(cui version):
Persistence of Vision™ Ray Tracer Version 3.7.0.unofficial4.2.1 Compatible
Apple LLVM 5.1 (clang-503.0.40)
This is an unofficial version compiled by:
Yvo and René Smellenbergh.

Note (Special circumstances in MacOSX ):
Unoffical Povray of the Mac version are available two types.
so,Wings3D can be accessed to CUI version only.

The Unoffical PovRay for OSX CUI version can get from a following URL
http://megapov.inetart.net/povrayunofficial_mac/finalpov.html
----------------------------------------------------------------------------
tkbd


RE: POV-Ray [plugin] (updated: 2016/Aug/08) - oort - 08-09-2016

tkbd,
I am betting that you have an experimental version of the YafaRay plugin installed. You need to go Edit > Plugin-Manager > Render Tab > Turn off YafaRay.

The plugin left garbage error should go away. This seems to be a problem with the YafaRay plugin when either Pov-Ray or TheBounty plugins are turned on. It affects both of them. We are hoping that David will fix this when he has time.

I was going to post a note for those testing to make sure they browse to the image files in the Ambient lights to redefine the path. I forgot...

I think that should solve all your problems...
oort


RE: POV-Ray [plugin] (updated: 2016/Aug/08) - micheus - 08-09-2016

(08-09-2016, 12:42 PM)tkbd Wrote: When checked the Ambient light, URI of the image file was as follows.
Quote:F:\Wings3d\Test Files\PovRay3.7\hdri\Arches_E_PineTree_3k.hdr
So I tried to change file-path to... (using file selector)

Quote:/Users/Myhdd/Desktop/PovRay3.7-Env-Test/hdri/Arches_E_PineTree_3k.hdr
tkbd, the first path error is because the plugin doesn't store the relative path, so it's using the path I saved in my project. You really need to update it.

The second problem not changing the path is cause because of the garbage error. Do what oort suggested and it should be accept and work.

(08-09-2016, 01:10 AM)oort Wrote: I noticed that Lightprobe (Angular) HDRI files do not reflect as well as they do for YafaRay. Is this a limitation of Pov-Ray or is there some extra setting that is needed to specify the type of HDRI. I see that Spherical HDRI files work perfectly.
oort, I noticed that now you pointed it.
I didn't find any note about that in POV-Ray documentation, but by reading about the angular HDRI and testing here it seems we need to add a field to define the type of hdr file and for the angular we need to find a way to rotate it automatically to be "opposed" to the camera view.
I tried to rotate it 180 degrees around Y axis and render it to see what happens, but I'm at work now and I "discover" something strange: all the images rendered in this machine I get the objects back (as I was not enabling Radiosity). :/

To enable more control over the radiosity settings I'm thinking to add a new tab in the Render options for that. By using other then "Final" preset we can notice some undesired spots.
This documentation at Wiki shows us how to do a good radiaosity settup:
- Radiosity with conventional lighting
- Radiosity without conventional lighting