Tomi Pieviläinen | 6 Mar 2012 07:56
Picon
Picon
Favicon

Problems with leocad + povray in linux

Hi all!

I can't seem to get povray export working. It just keeps complaining
about not finding the LGEO, though I have downloaded it via ldraw.org,
and have tried giving it the lgeo paths, and also lg and ar folders'
path. Nothing seems to help, any hints?

--

-- 
Tomi Pieviläinen, +358 400 487 504
A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?
_______________________________________________
Leocad mailing list
Leocad@...
https://list.gerf.org/listinfo/leocad
Tomi Pieviläinen | 6 Mar 2012 11:17
Picon
Picon
Favicon

Re: Problems with leocad + povray in linux

> What's your Linux "flavor"?  Where did you install the lgeo files?

Ubuntu oneiric, and to ~/lgeo. I actually have the same problem on
windows 7 too.

> It might not all apply to you, but some time ago I wrote something
> about LeoCAD and PovRay on my blog:
> http://blog.nielshorn.net/2009/12/lego-pov-ray-on-linux/

Hm, seems like it doesn't use the leocad's povray export at all. I'll
try via l3p too. Thanks for the hint.

> Are you using the beta version of PovRay? It's *much* faster on
> newer machines, as it uses parallel processing on multi-core
> processors.

I just took the stable available on the distribution repos; 3.6.1.
I'll think about betas etc. once I get even a single render to work.

--

-- 
Tomi Pieviläinen, +358 400 487 504
A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?
_______________________________________________
Leocad mailing list
Leocad@...
https://list.gerf.org/listinfo/leocad
(Continue reading)

Niels Horn | 6 Mar 2012 11:22
Picon
Gravatar

Re: Problems with leocad + povray in linux

On Tue, Mar 6, 2012 at 7:17 AM, Tomi Pieviläinen
<tomi.pievilainen+leocad@...> wrote:
>> What's your Linux "flavor"?  Where did you install the lgeo files?
>
> Ubuntu oneiric, and to ~/lgeo. I actually have the same problem on
> windows 7 too.
>
>> It might not all apply to you, but some time ago I wrote something
>> about LeoCAD and PovRay on my blog:
>> http://blog.nielshorn.net/2009/12/lego-pov-ray-on-linux/
>
> Hm, seems like it doesn't use the leocad's povray export at all. I'll
> try via l3p too. Thanks for the hint.
>
>> Are you using the beta version of PovRay? It's *much* faster on
>> newer machines, as it uses parallel processing on multi-core
>> processors.
>
> I just took the stable available on the distribution repos; 3.6.1.
> I'll think about betas etc. once I get even a single render to work.
>
> --
> Tomi Pieviläinen, +358 400 487 504

Yes, I use l3p, as I have used that for many, many years...

The "stable" version of PovRay is more like a "stale" version - it has
been out since 2004 I think :)
The "betas" receive an update about once a year.

(Continue reading)

Tomi Pieviläinen | 6 Mar 2012 11:30
Picon
Picon
Favicon

Re: Problems with leocad + povray in linux

> Keep me updated on your progress!

I tried a really simple scene with just three 5 long beams with two long pins, but l3p doesn't like it:

./l3p -o leocad/Untitled.ldr 
SKIPPING "/home/hukka/lego/ldraw/LDConfig.ldr" Line 276: Illegal color code: 0 !COLOUR Main_Colour                                          
CODE  16   VALUE #7F7F7F   EDGE #333333
SKIPPING "/home/hukka/lego/ldraw/LDConfig.ldr" Line 277: Illegal color code: 0 !COLOUR Edge_Colour                                          
CODE  24   VALUE #7F7F7F   EDGE #333333
Processing leocad/Untitled.ldr
Could not find 32316.dat Referenced by Untitled.ldr
Could not find 32556.dat Referenced by Untitled.ldr
Empty model.
L3P v1.4 BETA 20080930 (Linux i386)  (C) 1998-2008 Lars C. Hassing SP.lars <at> AM.hassings.dk
*** Abnormal termination.

--

-- 
Tomi Pieviläinen, +358 400 487 504
A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?
_______________________________________________
Leocad mailing list
Leocad@...
https://list.gerf.org/listinfo/leocad
Niels Horn | 6 Mar 2012 11:33
Picon
Gravatar

Re: Problems with leocad + povray in linux

On Tue, Mar 6, 2012 at 7:30 AM, Tomi Pieviläinen
<tomi.pievilainen+leocad@...> wrote:
>> Keep me updated on your progress!
>
> I tried a really simple scene with just three 5 long beams with two long pins, but l3p doesn't like it:
>
> ./l3p -o leocad/Untitled.ldr
> SKIPPING "/home/hukka/lego/ldraw/LDConfig.ldr" Line 276: Illegal color code: 0 !COLOUR Main_Colour
                                          CODE  16   VALUE #7F7F7F   EDGE #333333
> SKIPPING "/home/hukka/lego/ldraw/LDConfig.ldr" Line 277: Illegal color code: 0 !COLOUR Edge_Colour
                                          CODE  24   VALUE #7F7F7F   EDGE #333333
> Processing leocad/Untitled.ldr
> Could not find 32316.dat Referenced by Untitled.ldr
> Could not find 32556.dat Referenced by Untitled.ldr
> Empty model.
> L3P v1.4 BETA 20080930 (Linux i386)  (C) 1998-2008 Lars C. Hassing SP.lars@...
> *** Abnormal termination.
>
>
> --
> Tomi Pieviläinen, +358 400 487 504

hmmm... Did you install the LDRAW data files?
If so, where?

--
Niels Horn
Tomi Pieviläinen | 6 Mar 2012 11:36
Picon
Picon
Favicon

Re: Problems with leocad + povray in linux

> hmmm... Did you install the LDRAW data files?  If so, where?

$ find . -iname 32316.dat
./lego/ldraw/parts/32316.dat

$ echo $LDRAWDIR
/home/hukka/lego/ldraw/

I also tried setting the DIR to ldraw/parts, but that didn't help much. I still get:

$ ./l3p -o leocad/Untitled.ldr 
Processing leocad/Untitled.ldr
Could not find 32316.dat Referenced by Untitled.ldr
Could not find 32556.dat Referenced by Untitled.ldr
Empty model.
L3P v1.4 BETA 20080930 (Linux i386)  (C) 1998-2008 Lars C. Hassing SP.lars <at> AM.hassings.dk
*** Abnormal termination.

--

-- 
Tomi Pieviläinen, +358 400 487 504
A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?
_______________________________________________
Leocad mailing list
Leocad@...
https://list.gerf.org/listinfo/leocad
Tomi Pieviläinen | 6 Mar 2012 12:03
Picon
Picon
Favicon

Re: Problems with leocad + povray in linux

> OK, I remember something (a leftover from Windows) about directories
> with lowercase and uppercase names.  I still have a symlink PARTS to
> parts and antoher P to p
> 
> $ cd  ~/lego/ldraw
> $ ln -s parts PARTS
> $ ln -s p P
> 
> That might help l3p to find the parts...

That was it, now working. Thanks!

But ugh... what a bug! The l3p I downloaded was from 2008 or something
like that. Is it closed source, so that nobody can fix that bug?

--

-- 
Tomi Pieviläinen, +358 400 487 504
A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?
_______________________________________________
Leocad mailing list
Leocad@...
https://list.gerf.org/listinfo/leocad
Tomi Pieviläinen | 6 Mar 2012 12:16
Picon
Picon
Favicon

Re: Problems with leocad + povray in linux

> yes, closed source... :(

A big shame. Can't really see the benefit of that, since it's freeware
anyway. I'd be happy to fix that one bug, and make a 64bit version

> I actually exchanged a few e-mails with Lars in the past about this,
> as it also does not run on newer x86-64 machines. (It's a 32-bits
> binary).  I managed to get it working with some ugly tricks, but it
> would be so much simpler to recompile it :)

Fortunately Ubuntu has working multiarch, so I could just install all
the libraries it needed side by side to my usual amd64 libs.

> Did this also do the trick for LeoCAD? I guess not, as it has its
> own data files...

No, the problem was with LGEO, not with ldraw. And anyway the problem
is the same on Windows.

--

-- 
Tomi Pieviläinen, +358 400 487 504
A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?
_______________________________________________
Leocad mailing list
Leocad@...
https://list.gerf.org/listinfo/leocad
(Continue reading)

Niels Horn | 6 Mar 2012 12:29
Picon
Gravatar

Re: Problems with leocad + povray in linux

On Tue, Mar 6, 2012 at 8:16 AM, Tomi Pieviläinen
<tomi.pievilainen+leocad@...> wrote:
>> yes, closed source... :(
>
> A big shame. Can't really see the benefit of that, since it's freeware
> anyway. I'd be happy to fix that one bug, and make a 64bit version
>
>> I actually exchanged a few e-mails with Lars in the past about this,
>> as it also does not run on newer x86-64 machines. (It's a 32-bits
>> binary).  I managed to get it working with some ugly tricks, but it
>> would be so much simpler to recompile it :)
>
> Fortunately Ubuntu has working multiarch, so I could just install all
> the libraries it needed side by side to my usual amd64 libs.
>
>> Did this also do the trick for LeoCAD? I guess not, as it has its
>> own data files...
>
> No, the problem was with LGEO, not with ldraw. And anyway the problem
> is the same on Windows.
>
> --
> Tomi Pieviläinen, +358 400 487 504

But did you get the LGEO parts to work using l3p?
I use them without problems, setting the right flags with l3p.

About l3p not being open-source, well - it's his brainchild, so I
guess he can decide what he wants to do with it.

(Continue reading)

Tomi Pieviläinen | 6 Mar 2012 14:31
Picon
Picon
Favicon

Re: Problems with leocad + povray in linux

> But did you get the LGEO parts to work using l3p?  I use them
> without problems, setting the right flags with l3p.

Yes, with l3p it works just fine.

Do the unofficial parts from
http://www.philohome.com/leoupd/leoupd.htm work for you? I'd need to
do instructions for Mindstorms, so I really need them, but it seems
like importing the file does nothing. I did restart leocad, but it's
no good.

--

-- 
Tomi Pieviläinen, +358 400 487 504
A: Because it disrupts the natural way of thinking.
Q: Why is top posting frowned upon?
_______________________________________________
Leocad mailing list
Leocad@...
https://list.gerf.org/listinfo/leocad

Gmane