Chaos Corona Forum

General Category => Porting and API => Corona Standalone => Topic started by: ohsnapitsjoel on 2013-05-31, 23:06:27

Title: Setting in .conf or .scn file for using smoothed mesh?
Post by: ohsnapitsjoel on 2013-05-31, 23:06:27
Hi all, I'm curious whether there's a setting that I've missed in the docs about rendering smoothed meshes.  I was hoping to find something I could work backward from, but since the objects in the /example/export.scn are all faceted, I didn't find the answer I was looking for.

Is there a bool setting somewhere in the .scn or .conf files to enable per-.obj smoothing or something?
Title: Re: Setting in .conf or .scn file for using smoothed mesh?
Post by: Ondra on 2013-05-31, 23:12:29
The example mesh is probably just exported that way (it is needed to get absolutely correct results for example to compare PT vs. BDPT error). The standalone application  just takes the normals in the input file.

There is one parameter, max normal difference, that when set to its minimum value efficiently disables shading normals.
Title: Re: Setting in .conf or .scn file for using smoothed mesh?
Post by: Ondra on 2013-05-31, 23:20:27
Here is the cbox exported with shading normals: https://dl.dropboxusercontent.com/u/5426917/%21Corona.zip

You will probably need new version of the standalone application, get it here in the standalone folder: https://www.dropbox.com/sh/kgzu0cqy903ygmb/08v9Ehdplt
Title: Re: Setting in .conf or .scn file for using smoothed mesh?
Post by: ohsnapitsjoel on 2013-05-31, 23:53:54
Oh, fantastic, that new cornell box scene works.  So this was just an issue with the .obj's shading normals not being exported?  I'll have to remember that when writing an exporter! :)
Title: Re: Setting in .conf or .scn file for using smoothed mesh?
Post by: Ondra on 2013-06-01, 00:01:13
No, it was deliberately set to not export shading normals in 3dsmax Corona mesh export. I have my test scenes set up this way so that bidirectional and unidirectional methods converge to the same solution. It is nothing you have to deal with.
Title: Re: Setting in .conf or .scn file for using smoothed mesh?
Post by: ohsnapitsjoel on 2013-06-01, 01:43:50
Cool.  By 'issue' I meant 'situation.' Misleading wording, my bad :)