To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.macOpen lugnet.cad.dev.mac in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Macintosh / 282
  L3P v1.3 for Mac OSX
 
It's the good old v1.3 from 20010120, but you get i before the Linux people :-) Since I don't have much experience in the Mac and only limited access, I'll leave the testing to you guys. Please test every feature of L3P you can. If things work out (...) (22 years ago, 29-Nov-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Whoo Hooo! Thanks Lars I gave it a quick try (URL) I noticed something strange. I don't know if the problem is with POV-Ray 3.1g.r2 for Mac OS 9 and POV-Ray 3.5 for Mac OS X or with l3p, but those two programs do not like the file that l3p (...) (22 years ago, 29-Nov-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
and I noticed something strange. I don't know if the problem is with (...) The problem is with POV-Ray 3.5 for Mac OS X. Check out (URL) Can you believe an app will crash every time it opens a new document? Anyway, within POV-Ray I just create a new (...) (22 years ago, 29-Nov-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Ahh... I see. I forgot that the three different ways of openning a file often behave quite differently. 1. Double clicking the mini.pov file 2. Dropping the icon for mini.pov onto the running POV program's icon in the Dock. This is my (...) (22 years ago, 29-Nov-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) (URL) was playing with AppleScipts to do something similar to your lani program. I used l3p in VPC to create a .pov file. Then I used AppleScript and BBEdit to change the camera position in the .pov file. This all worked in OS 9 becuase I had (...) (22 years ago, 29-Nov-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
Lars, I used L3P this weekend. Since this is my first time using it, I tested only very simple uses. No problems found, unless you consider it a bug that it behaves badly with CR line endings. It's hard to tell which input file it is complaining (...) (22 years ago, 4-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Erik, How did you render the POV files produced by l3p. Neither POV-Ray 3.1 (Classic) nor POV-Ray 3.5 (OS X) liked the file that l3p produced. When I dropped the file onto the applications incons in the Dock, the applications just ignored the (...) (22 years ago, 5-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) How does it behave badly? Does it fail to read some lines? L3P uses fgets and then removes trailing \n and \r, but perhaps this fails on "old" mac files, which I believe use the CR ending. On MacOSX, \n is mapped to LF, so how do you read CR (...) (22 years ago, 5-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Sure, if you tell me what exactly what you want... /Lars (22 years ago, 5-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Well, I don't really know. As I said, James said to do this at the command line /Developer/Tools/SetFile -c "POV3" -t "TEXT" /Users/yourname/yourfile.pov and after doing that, the POV-Ray programs processed the files normally. I don't know why (...) (22 years ago, 5-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I wonder if this could be solved with something as simple as doing an fopen() with "wt" instead of just "w"? And... And... I just can't help myself here, sorry Lars... If the code were available you might get better, more helpful or accurate (...) (22 years ago, 5-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Essentially the \r make it one big line. L3P says it has the wrong number of fields. Maybe it reads the buffer limit and tries again because there is a variety of error messages per file. Now that you ask I don't know how one can use fgets for (...) (22 years ago, 5-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
This is more of an issue with POV-Ray. It has everything to do with Macintosh Meta data. l3p creates files with no meta data. If you type: /Developer/Tools/GetFileInfo -c /path/to/.pov /Developer/Tools/GetFileInfo -t /path/to/.pov You get: "" Which (...) (22 years ago, 5-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Interesting idea. Unfortunately either way fopen creates a file with no Mac type or creator code at all. Because I told the Finder once to open a .pov file with BBEdit, it knows to do that for me. But I still get a blank icon because it has no (...) (22 years ago, 5-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I think ldglite has this same problem. Remember when we had the discussion about using the linux parts vs. the parts that Erik has for download? I could not get Erik's parts to work with l3p either. (...) You can mix Cocoa and Carbon, can't (...) (22 years ago, 5-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) These might not be the cleanest solution. I want the same binary to launch on OS 8.6 or 9. But I think you can still try to bring in a Cocoa framework at runtime to a CFM process though. CFM is required on OS 9. Mixing Cocoa and Carbon is (...) (22 years ago, 6-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I found the sample code that loads the System.framework from a CFM carbon app and runs a unix process with popen... (URL) (22 years ago, 6-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I suspected that POV-Ray was just being difficult, especially when simply adding (I didn't know if it was adding or changing the file type) the text file type. (...) Actually, that makes sense. But do you think that they are doing the "text (...) (22 years ago, 6-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I agree. It seems like a step backwards. (...) Ahh.... so it is a 10.2 thing. Thanks, Chris (22 years ago, 6-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I wondered that too. I would think that it wouldn't matter. If it tried to open a binary file, I don't think it would be any worse than openning a SimpleText or some other "TEXT" file. POV-Ray still has to check the file for proper POV-Ray (...) (22 years ago, 6-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) If, IF I get it working. I have no idea what I am doing most of the time, but sometimes get it to work anyway. With OS 9 I could create a drag-and-drop capable scriptlet/applet, but with OS X I cannot figure it out :( (...) It seems that there (...) (22 years ago, 7-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Don't worry, neither do I. ;-) (...) The OS 9 script should compile and work on OS X too. I haven't been paying attention to AppleScript changes for OS X since May, but back then the scripts pretty much did the same thing they did in OS 9. (...) (22 years ago, 7-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
A fun use of L3P: this weekend I made some pretty Mac icons from DAT files using POV-Ray. Two of them became the new "Zoom In" and "Zoom Out" buttons in BrickDraw3D. -Erik (22 years ago, 9-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I do consider it an error. I have now made an L3fgets that can handle any line ending. I have uploaded an update (URL) try it on the original problem files. /Lars PS. Here is L3fgets, You can use it in ldglite if you like. As Paul DiLascia (...) (22 years ago, 11-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) If it is possible for you to identify the problem files, could you let me know the names of the bad files. Steve and I try to make sure that everything in the official library has DOS-style line endings. If there are official parts with (...) (22 years ago, 11-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Hey, thanks Lars. Where should I put it? L3Input.cpp, or a separate file like platform.c? Don (22 years ago, 11-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I have put it in L3Input.cpp because I only used fgets there, but if you can benefit from L3fgets() elsewhere you can put it in L3fgets.c or in platform.c as you wish... /Lars (22 years ago, 11-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I guess what I was trying to say (without actually saying it) was "Can I have the latest version of L3Input.cpp?" Don (22 years ago, 11-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Chris, There are no Mac "official" parts. LDMC ((URL) points people to download the linux parts: www.ldraw.org/refere...ary.tar.gz The parts with mac-style endings are coming from Erik Olson's parts which one downloads when they download (...) (22 years ago, 11-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
Yes, the CR endings are my fault. When you download the LDRAW.sit file from my website you're getting a copy of what I have on my working disk. I've fixed mine since trying L3P but haven't uploaded it. I think I will just point to the Linux (...) (22 years ago, 11-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Umm, fgets already does what 2) says above (unless you mean when end of file is reached and the function returns NULL). I'm not actually sure what goes into the string when fgets returns NULL. If no line ending is found (either due to EOF (...) (22 years ago, 11-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Thanks. I thought we had that under control - just wanted to be sure. Chris (22 years ago, 11-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Right! I must have been sleeping or thinking of strncpy...? Please delete 2) from the comment. (...) According to the CRT source ungetc doesn't use fseek, but with L3fgets the need to open in text mode has gone, so I might as well open in (...) (22 years ago, 12-Dec-02, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) First off, many thanks to Lars for making this tool available for OS X! L3P has been working very well overall, but I'm having an issue with LGEO parts substitution, which I'm curious to know if anyone else has seen. This is with the 20021209 (...) (21 years ago, 29-Jun-03, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I haven't used the LGEO substitution. I haven't seen comments from anyone else on this list that indicated they use them either. Sorry! (21 years ago, 29-Jun-03, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) You're welcome, nice to hear from Mac users. (...) parts (...) with (...) update 14 (...) slope (...) the (...) code (...) dish) (...) (some (...) the (...) Good investigation! An internal datastructure (Lgeo flags) with bit fields was laid (...) (21 years ago, 30-Jun-03, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Lars, Thanks for the quick fix, and thanks again for supporting Mac OS X! Regards, Tom (21 years ago, 30-Jun-03, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I'll try to get the fixed version of L3P Launcher out this or next week. Unfortunately, I got myself hooked on RPG's. So I haven't been too productive lately... WWDC was fun last week. I talked to the guy who wrote a Cocoa ldarw editor but got (...) (21 years ago, 30-Jun-03, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
I am sorry to interrupt your interesting discussion, but I would like to unsubscribe to this mailing list. Unfortunately, I have changed to a new computer so I've lost the info on how to go on with that. Again, sorry to interrupt. / Patrick Fridh - (...) (21 years ago, 30-Jun-03, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Thanks for the update Lars. Tom, I have been playing a bit with L3P, but I have never used the LGEO parts. Are they worth the extra effort? (I have no idea how to use them, but I am sure that I can figure it out from the available info... that (...) (21 years ago, 1-Jul-03, to lugnet.cad.dev.mac)
 
  Re: L3P v1.3 for Mac OSX
 
(...) Chris, I think the LGEO parts are worth the effort, which is now pretty minimal -- downloading the LGEO library (two files: the 'complete' library through update 14, and update 15, at (URL)), setting the LGEODIR environment variable, and (...) (21 years ago, 1-Jul-03, to lugnet.cad.dev.mac, FTX)
 
  Re: L3P v1.3 for Mac OSX
 
(...) I have created another version of the L3P Launcher. Here: (URL) includes the new l3p executable, and you can now set the LGEO folder. The only new option is the floor flag (but you can't set the y value of it yet). The camera and light (...) (21 years ago, 21-Jul-03, to lugnet.cad.dev.mac)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR