LDPE Adding stud.dat seems to corrupt geometry


Adding stud.dat seems to corrupt geometry
#1
I'm working on a custom part that is basically a face with a 1x2 plate stuck on to the back of it. The face is a complex mesh with about 45k triangles (no quads). 
To be sure my studs will have the correct shading in building instructions developed in Studio, I am adding stud.dat in LDPE. However, that step seems to "corrupt" geometry in some way. After adding the stud.dat lines, the resulting part looks ok in Part Designer, but not in Studio. Many faces have disappeared and the remaining ones look distorted.  
I have confirmed that the files are identical except for the `0 Name:` line and the two lines that reference stud.dat like so: 
Code:
1 16 -10 0 0 1 0 0 0 1 0 0 0 1 stud.dat
1 16 10 0 0 1 0 0 0 1 0 0 0 1 stud.dat

I also tried adding the studs in Part Designer, but this had a similar effect.

If I delete the stud.dat refrences, the part works again works as expected in Studio (after a restart). 

Any ideas as to why stud.dat references are causing a problem? 

Apologies for not including images, and thanks in advance.
Reply
RE: Adding stud.dat seems to corrupt geometry
#2
This is a known issue of studio. I'm not sure that the problem is really related to the addition of studs. I had the problem previously with huge meshes. If you can't decimate the mesh to reduce the number of triangles, I successfully used this trick : split the mesh into n subparts, each with 1/n triangles, then make a shortcut that references these subparts.
Reply
RE: Adding stud.dat seems to corrupt geometry
#3
(2025-08-15, 18:27)Philippe Hurbain Wrote: This is a known issue of studio. I'm not sure that the problem is really related to the addition of studs. I had the problem previously with huge meshes. If you can't decimate the mesh to reduce the number of triangles, I successfully used this trick : split the mesh into n subparts, each with 1/n triangles, then make a shortcut that references these subparts.

Thanks Philo. Maybe the studs are just that one bit too much that breaks studio. I'll try splitting the file.  
Lost more than a day trying to sort this out, but the upside is that I'm finally learning my way around LDPE!
I've also come across "Convert to Ldraw" which will import OBJ files with colors and export to DAT with colors. https://github.com/Nexusnui/Convert-To-LDraw/


Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 3 Guest(s)