I have Blender 2.77 installed on 2 vms, xubuntu 15.04 and win7. (Parallels 10). In the linux vm there are no problems with exporting -- everything works okay. In the win vm I can only export .ply or .stl files in Ascii. If I try to export .obj or .fbx, the output files do not have carriage returns. (All options unchecked, z-axis up). Can someone tell me why this happens? (Zip version of Blender).

thanks, Whiffee

  • $\begingroup$ Could you give some more details? What is the problem? $\endgroup$
    – JakeD
    Aug 29 '16 at 15:51
  • 2
    $\begingroup$ As an addition to the answer by @metaphor_set, here's a longer explanation of the newline/carriage return problem, and why there are different conventions. $\endgroup$
    – user27640
    Aug 29 '16 at 18:15
  • $\begingroup$ really, downvoting this is inappropriate - how do you expect the op to know that the cr/lf differences between windows and linux (unix) wasn't due to blender? Although this is ancient history, you'd not know this unless you've worked with ascii-based files across systems. So perhaps the op's work with blender IS the first time he's encountered this. Can we be nicer please? $\endgroup$ Aug 29 '16 at 19:33
  • $\begingroup$ @HowardPautz - it's ongoing history and common knowledge among most programmers, especially web developers. Please read Duane Dibbley's comment. Also, I don't understand either why it got DV'd. $\endgroup$ Aug 29 '16 at 19:39
  • $\begingroup$ @metaphor_set - not just web developer's ... every programmer will encounter this at some point ... I learned about it when unix programmers were chuckling over this thing called "DOS" :-P $\endgroup$ Aug 29 '16 at 19:46

The answer to this is older than Blender itself and therefore not Blender-related. There's nothing wrong with your files, Windows and Unix/Linux based operating systems handle CR/LF differently.

Windows still uses the old MS-DOS "\r\n" while Unix/Linux uses "\n". You need either an editor that is capable of auto-detect the used format or (on GNU/Linux) try dos2unix to convert your files.

[Edit] Under the hood the Carriage Return + Linefeed ("\r\n") is actually 0D0A in ascii hexadecimal ... if you looked at the windows/dos created file with a hex editor. A linux (unix) file would show just 0A.

  • $\begingroup$ I can't comment because I don't have any points. Just to say thanks for all the nice answers so quickly provided. The one thing I don't understand is why the .ply and .stl files look okay (in Wordpad) without any doctoring? $\endgroup$
    – user29988
    Aug 30 '16 at 3:22
  • $\begingroup$ It all depends on how much effort and thought the developer of the exporters put into them. They might have used \r\n instead of just \n. Many Unix/Linux text editors are capable of detecting the line endings and adjust their settings accordingly. Basic MS stuff like Wordpad or Notepad doesn't take care of other formats. You might want to try advanced Windows editors like EditPad lite or similar.... $\endgroup$ Aug 30 '16 at 7:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.