Comments (4)
Hey nathaneltitane, could you upload the MPD file ? So I can see if I get the same result.
from leocad.
Hey nathaneltitane, could you upload the MPD file ? So I can see if I get the same result.
any complex mpd would do. have you tried replicating it? what is your result?
from leocad.
Have tried with the same settings as you specified and with MPD file for Lego set 7740 (complex) and the result had no issues.
Have found the code for generating the HTML, but nothing is sticking out, as far i can see on Leocad version is 23.03
from leocad.
Hey nathaneltitane, I also found that some of my Thumbnails where not cropped correctly.
It looks like there is an error, in the code where each Thumbnail is generated and cropped. The function lcProjectPoint
, is using a different coordinate system, so each point has to be modified before being projected, which made the Thumbnails to be cropped correctly.
for (lcVector3& Point : Points)
{
lcVector3 mod_point(-Point.y, -Point.x, -Point.z);
Point = lcProjectPoint(mod_point, ViewMatrix, ProjectionMatrix, Viewport);
ExtraPixels = qMax(ExtraPixels, -Point.x);
ExtraPixels = qMax(ExtraPixels, Point.x - ThumbnailSize);
ExtraPixels = qMax(ExtraPixels, -Point.y);
ExtraPixels = qMax(ExtraPixels, Point.y - ThumbnailSize);
}
So if you have the possibility, could you try modify code in model.cpp, with the above code.
The code is located in leocad/common/lc_model.cpp
around line 1466 in the latest version.
from leocad.
Related Issues (20)
- LeoCAD consistently crashes when trying to use Replace HOT 1
- Add a portable version HOT 3
- Save as image creates strange images that are totally wrong HOT 4
- Is there any way to pose minifigs besides through Minifig window?
- Scroll Wheel function HOT 2
- Fails to build against Qt6 on Windows HOT 1
- Missing file extension on export
- App won't open on Macs with case-sensitive filesystems HOT 1
- CLI to Export LDR File through different format HOT 1
- The asterisk indicating project modification is not updated until after some additional user activity
- Blender Lights Export Review HOT 3
- Flathub Verification
- Using a solid color as a background color doesn't work HOT 6
- Integration with CADdrive?
- Make REUSE-compliant
- Create URDF-File for EV3 HOT 2
- Submodels not detected - render as missing
- Mouse move around model to orbit stutter
- Impossible d'ouvrir une ressource sous Ubuntu
- Replace QMake with CMake
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leocad.