LDraw.org Discussion Forums

Full Version: ldr to pov export error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hi,

thanks to Travis' help my batch pov generation script works fine.

But, I encountered several issues when rendering some parts.

for exemple :
Code:
"d:\lego\python\data\renders\0\14639p01.pov" line 1117: Parse Error: Expected 'object', undeclared identifier 'LDX_1_dash_16ring9_dot_dat_in_part' found instead

Render failed
So I investigate a bit about 1-16ring9.dat.

First of all, and obviously, the primitive is in my "ldraw\p\" directory, andthe 14639p01dat part opens without errors in LDview.

Then, I thought that some config file like LGEO.xml or LGDefs.inc were involved, but they do not have anything to do with that (if I'm right).

So I took a look at the buggy files and the integration of primitives in pov files.

If I understand the error message correctly, LDX_1_dash_16ring9_dot_dat_in_part has not been defined before, not like the other primitives involved in that part.

So, at some point, some lines like those for 1-16ri60.dat :

Code:
#declare LDX_48_slash_1_dash_16ri60_dot_dat_in_part = disc // Ring 0.0625
{
    <0,0,0>,<0,1,0>,61,60
    clipped_by
    {
        plane
        {
            <0,0,-1>,0
        }
        plane
        {
            <-0.38268343236508972627,0,0.92387953251128673848>,0
        }
    }
}

#declare LDX_48_slash_1_dash_16ri60_dot_dat = disc // Ring 0.0625
{
    <0,0,0>,<0,1,0>,61,60
    clipped_by
    {
        plane
        {
            <0,0,-1>,0
        }
        plane
        {
            <-0.38268343236508972627,0,0.92387953251128673848>,0
        }
    }
}


should have been written in the pov file but aren't. And I suppose that I can't choose randoms coordinates to solve the problem.

So my question is : do the problem come from a config file I didn't think about, or is it a export bug ?

I've the problem with other primitives on other parts.
Can you test with LDView 4.4 Beta 3 and let me know if the problem still occurs?

Note: I know I made fixes that are related, I just don't know if those fixes fix this specific issue.
(2021-03-17, 19:51)Travis Cobbs Wrote: [ -> ]Can you test with LDView 4.4 Beta 3 and let me know if the problem still occurs?

Note: I know I made fixes that are related, I just don't know if those fixes fix this specific issue.

I'm allready using it.

But, I tried ldview64(4.3) and no problem occured with the part I gave as an exemple.
(2021-03-17, 21:08)Bertrand Lequy Wrote: [ -> ]I'm allready using it.

But, I tried ldview64(4.3) and no problem occured with the part I gave as an exemple.

Thanks. I'll investigate.
Hello again,

this part makes LDView freeze/crash when exporting  : 41671p01.dat
(2021-03-25, 12:17)Bertrand Lequy Wrote: [ -> ]Hello again,

this part makes LDView freeze/crash when exporting  : 41671p01.dat

Thanks. For some reason, LDView's smoothing algorithm used for POV exports is not happy with some of the geometry in that part. I'm not sure why, but I discovered that my error handling that was supposed to handle that wasn't doing what it was supposed to, and it was triggering a divide by 0 error. I'll PM you a test build with a fix.
(2021-03-26, 2:06)Travis Cobbs Wrote: [ -> ]it was triggering a divide by 0 error

Oh, could have wait a long time.

So that's why I had to kill the process in task manager.
Hello again,

the parts 685p03.dat and 685p05.dat

don't render properly, the printed color doesn't show, the part is plain.

edit : same for 3622p06
All three parts have the pattern created using texmap images.
(2021-03-29, 14:56)Magnus Forsberg Wrote: [ -> ]All three parts have the pattern created using texmap images.

Erf.... thanks.
Pages: 1 2 3