Page 1 of 2

Ply ASCII

Posted: Mon Mar 18, 2019 7:12 pm
by nigec
Is it possible to load ASCII Ply files?

Re: Ply ASCII

Posted: Mon Mar 18, 2019 9:43 pm
by Dade
nigec wrote: Mon Mar 18, 2019 7:12 pm Is it possible to load ASCII Ply files?
Yes, LuxCore supports both binary and text format.

Re: Ply ASCII

Posted: Tue Mar 19, 2019 7:20 am
by nigec
Morning Dade, it complains of a

Code: Select all

Ply: Not a PLY file. Expected magic number 'ply\n'
error, the same file loads into LuxRender
If I convert the Ply to binary with meshlab it'll then load into luxcore, but that's not practical on a proper scene :)
here's the file its an export from su2lx

Re: Ply ASCII

Posted: Tue Mar 19, 2019 8:34 am
by acasta69
nigec wrote: Tue Mar 19, 2019 7:20 am it complains of a

Code: Select all

Ply: Not a PLY file. Expected magic number 'ply\n'
I think I've already met this problem time ago, it's because your ASCII file has Windows-style line breaks (CR+LF) instead of Unix-style (LF only). Our ply import code is probably an old version that understands only the latter.

Has your file been exported directly in that way, or have you manipulated it with a text editor? That could have corrupted it.

As another workaround, you could open it with a text editor able to handle both end-of-line formats (e.g. Notepad++) and convert to the Unix format.

Re: Ply ASCII

Posted: Tue Mar 19, 2019 8:50 am
by nigec
The Ply file is what the plugin exported, I haven't opened it with anything else
So basically I've got to get the plugin to save LF only

Re: Ply ASCII

Posted: Tue Mar 19, 2019 9:40 am
by nigec
Fixed it :D
I just had to change a write option in the exporter script..
Next to figure out why its exported scene is insanely bright, I've noticed the classroom example in the SDK does the same

Re: Ply ASCII

Posted: Tue Mar 19, 2019 10:02 am
by Dade
nigec wrote: Tue Mar 19, 2019 9:40 am Fixed it :D
I just had to change a write option in the exporter script..
Next to figure out why its exported scene is insanely bright, I've noticed the classroom example in the SDK does the same
Check tone mapping, the script may assume auto-linear tone mapping or, if you are using LXS parser, some setting may be not translated :idea:

Re: Ply ASCII

Posted: Tue Mar 19, 2019 12:22 pm
by nigec
The ISO, shutter speed, F Number settings aren't exporting from the plugin, for some reason the settings dialogs aren't updating..
But anyway, I can set those manually so its not a massive issue, I need to find a Ruby guru lol

Re: Ply ASCII

Posted: Tue Mar 19, 2019 2:42 pm
by nigec
The camera location/direction isn't translating either..

Re: Ply ASCII

Posted: Tue Mar 19, 2019 3:19 pm
by Dade
nigec wrote: Tue Mar 19, 2019 2:42 pm The camera location/direction isn't translating either..
But it is a LuxCore LXS parser problem or an export script problem ?