Closed nathaneltitane closed 7 years ago
Have you tried the collada exporter?
I took another look and the 3ds format doesn't support normals, they have smoothing groups but then it's up to the importer what to do with those groups. I'd rather not spend time on this terrible format, it has several issues.
There shouldn't be any duplicate vertices, maybe it's the Blender importer converting from indexed triangles to a triangle list.
My recommendation to use collada still stands, it's a new exporter so there could be some bugs (please report them) but the format supports more features.
Is the collada exporter integrated into the newer leocad?
You need to compile your own
Yeah, will do - I meant latest commit, my bad :)
I just compiled it, models don't parse/render properly... Parts fail to render properly as well... Collada export crashes LeoCAD
Can you try the latest fix?
Model is rendering, parts aren't - see attached.
I've checked in another fix.
Seems to be working fine now, exported collada as well without crash.
So going back to the original request, any way to add pre-export settings to collada (or others) to fine tune the exported file output?
Do you still see the original issues you reported when you load the collada file?
Yes, some edges which should look sharp on some parts seem to render with a rounded aspect (the phong/smoothing values might be off)
See import, look at the arms and shins:
link to model export for you to judge, there are comments on the model where the issues are.
1- I can definitely change the material settings, I picked somewhat arbitrary values for the specular. I can use your material settings if you have something that looks good. The collada file is just xml if you want to look at what I'm using.
2&3 could be LeoCAD's normal calculation, how do they look in the app? What are the part numbers for those parts that don't have edges?
For comparison, an older version of the model, in 3DS that's been optimized using blender post-export and uploaded:
https://sketchfab.com/models/0c2597e3dab64aaeab5c358c444cd1d2
In the app, all the parts render just fine.
currently, parts that are seemingly affected are from the Slopes and Wedges groups: 3300.dat 85984.dat 47759.dat 43713.dat
and similar parts...
They don't display correctly in app, the top edge is flat:
Looking at the mesh in Blender you can see the normals are being merged:
I'm on ubuntu linux and lighting/shading does not work in LEOCAD. My bad.
That screenshot is from Ubuntu, did you enable lighting on the preferences? What error do you get?
I reduced the normal merging angle, now the edges are visible on those parts:
Can you try re-exporting with the latest change?
Oh my, I had no idea it was fixed!! Building now.
Ok, so lighting is enabled :)
Here is what i see in LeoCad
and seems like the edges are much sharper as well with the collada export. you can visit sketchfab model link to assess
Not sure if this is a valid request/issue as I do not know what the 3ds export library permits but:
Could the export feature either benefit from a dialog to enable model smoothing and optimizations or by default, make the model as smooth and as clean as possible?
I currently post-process the 3ds files into blender after exporting from leocad to optimize them, removing double geometries (vertices etc) and smoothing surfaces, sadly forfeiting transparency for certain colors in the process.
see attached for comparison
3DS at https://sketchfab.com/models/a577c00b1a8b4276b59e6bab77ab8e8e Blend at https://sketchfab.com/models/0c2597e3dab64aaeab5c358c444cd1d2
3DS
Blend