Commit graph

210 commits

Author SHA1 Message Date
Leonardo Zide
fa06a83704 Add stud logo setting to cache check. 2019-09-23 17:06:16 -07:00
Leonardo Zide
ed5259229e Fixed mesh cache not loading parts. 2019-09-23 16:56:47 -07:00
Leonardo Zide
66bbb8d9de Simpler stud reload. 2019-09-23 16:55:24 -07:00
Trevor SANDY
f91da8a7ce Change stud logo without application restart (#389)
* Change stud logo without application restart

* Refactor change stud logo without application restart
2019-09-23 16:22:11 -07:00
Trevor SANDY
5adcfb4027 Add stud logo preference and command line option (#387)
* Add stud logo preference and command line option

* Support add stud logo when using disk library
2019-09-21 09:47:33 -07:00
Leonardo Zide
1e2f6c208f Moved mesh loading code to a separate file. 2019-07-27 16:31:16 -07:00
Leonardo Zide
a9ff4d265b Replaced PieceInfo flags with enum. 2019-07-21 09:26:36 -07:00
Leonardo Zide
e68ce05b57 Moved mesh flags to the mesh class. 2019-07-21 08:56:37 -07:00
Leonardo Zide
4493c3f6f2 Array cleanup. 2019-07-04 17:06:26 -07:00
Leonardo Zide
5a3abf18e0 Allow custom color and minifig settings files. Fixes #359. 2019-06-20 18:52:33 -07:00
Leonardo Zide
a464606507 Fixed compiler warnings. 2019-06-03 13:23:04 -07:00
Leonardo Zide
7001cdf11d Fixed crash loading textured parts. 2019-06-02 09:39:12 -07:00
Leonardo Zide
b8c2074c93 Fixed primitives under p/8/ not being found by loose file libraries. 2019-06-01 19:54:09 -07:00
Leonardo Zide
7d43f54e6e Fixed normal smoothing between texture and untextured triangles. Fixes #175. 2019-05-27 16:07:20 -07:00
Leonardo Zide
602dfeb8b6 Fixed /w4 warnings. 2019-05-18 11:33:27 -07:00
Leonardo Zide
ec720a6c04 Fixed ldconfig.ldr loading on case sensitive file systems. Fixes #348. 2019-05-18 10:49:52 -07:00
Leonardo Zide
3f7db06fce Improved readability of texture mapping parameters. 2019-03-17 13:17:11 -07:00
Leonardo Zide
5d06035187 Fixed bounding box calculation of parts without triangles. 2019-02-22 17:02:38 -08:00
Leonardo Zide
bcd6ce8791 Use anisotropic for the string cache texture. 2018-09-29 19:45:21 -07:00
Leonardo Zide
671d5fa266 Fixed fallthrough warnings. 2018-09-24 11:29:05 -07:00
Leonardo Zide
8d3b6a1d7a Fixed texmap in files included with an offset. 2018-05-07 12:26:26 -07:00
Leonardo Zide
47b28d06be Use texmap fallback if we fail to load the png file. Fixes #213. 2018-03-17 12:21:38 -07:00
Leonardo Zide
10e538efde Fixed static analysis warnings. 2018-02-21 17:27:24 -08:00
Leonardo Zide
a1dfc7c26c Fixed inverted u texture coordinate on cylindrical projections. 2018-02-19 10:47:10 -08:00
Leonardo Zide
247dc0d7a2 Fixed Windows warning. 2018-02-17 11:34:15 -08:00
Leonardo Zide
f3aba2fea3 Don't lower case texture file names. 2018-02-17 11:32:29 -08:00
Leonardo Zide
a826fd9722 Fixed cylindrical texmap wrapping around the back. 2018-02-13 16:16:22 -08:00
Leonardo Zide
e2fdf6ca03 Match cylindrical texmap to spherical. 2018-02-13 15:54:55 -08:00
Leonardo Zide
945473267f Fixed part description cache not checking file times. 2018-02-01 12:48:31 -08:00
Leonardo Zide
d7928a78ed Fixed spherical texture coordinates around poles. 2018-01-28 10:03:59 -08:00
Leonardo Zide
d3d88ccaf1 Fixed texcoord wrap issue with spherical texmap. 2018-01-27 19:45:06 -08:00
Leonardo Zide
ebc67d2a8b Initial implementation of spherical texture mapping. 2018-01-27 15:57:48 -08:00
Leonardo Zide
5c1cfa4bc9 Only use triangles to calculate the mesh bounding box. 2018-01-20 17:35:21 -08:00
Leonardo Zide
6f940a473e Fixed normal smoothing on texmap vertices. 2018-01-20 12:04:50 -08:00
Leonardo Zide
f79a7f2093 Decreased vertex welding distance. 2018-01-20 11:51:57 -08:00
Leonardo Zide
0112b5385b Support cylindrical texmap. 2018-01-17 15:14:30 -08:00
Leonardo Zide
65ff6a41c6 Fixed parts that use texmap on primitives. 2018-01-12 21:23:43 -08:00
Leonardo
dac8708bb6 Bumped cache version. 2017-12-23 05:26:55 -08:00
Leonardo
880f8f9a47 Only upload textures from the main thread. 2017-12-22 05:42:28 -08:00
Leonardo
a57c6275c0 Fixed texture path inside ldrawunf.zip. 2017-12-22 04:38:47 -08:00
leo
ace53d4a9d Fixed compiling on Qt5.0 to 5.2. 2017-12-10 10:13:58 -08:00
Leonardo Zide
636e013455 Removed lcint types. 2017-12-02 12:22:04 -08:00
Leonardo Zide
c612397b9d Cache part descriptions when using loose files. 2017-11-26 19:21:54 -08:00
Leonardo Zide
6658a03d65 Fixed slow shutdown when there's a piece load pending. 2017-11-25 12:57:41 -08:00
Leonardo Zide
5d1a900683 Don't show library load progress when the running from the command line. 2017-11-24 20:00:16 -08:00
Leonardo Zide
eb674a3704 Fixed unresponsive UI while loading complex primitives. 2017-11-24 19:45:27 -08:00
Leonardo Zide
035da7ce0a Show a progress dialog while scanning parts folders. 2017-11-24 18:19:29 -08:00
Leonardo Zide
e905047179 Disabled update checks on OSX because of bug #62. Fixes #112. 2017-08-27 12:10:52 -07:00
leozide
d7b29d3800 Reduced normal welding angle to 60 degrees. 2017-08-24 16:51:45 -07:00
leozide
6ff8411366 Fixed loading subfile primitives from loose files. 2017-08-24 15:25:59 -07:00
leozide
3ebf97b251 Fixed reading parts.lst. 2017-08-24 14:36:04 -07:00
leozide
08f1e22c79 Fixed bug loading loose library files. 2017-08-22 11:41:26 -07:00
leozide
68d9c28dc2 Fixed loading primitives from loose files. 2017-07-27 16:09:38 -07:00
leozide
c1fe39fb72 Fixed compiler warning. 2017-07-27 12:40:52 -07:00
Leonardo Zide
82528a2c7a Don't uppercase part names when saving. 2017-07-27 09:21:55 -07:00
Leonardo Zide
94eb5b8ae2 Store library pieces in a map. 2017-07-23 19:35:18 -07:00
Leonardo Zide
692604ee50 Use a map for storing primitives. 2017-07-23 16:19:09 -07:00
Leonardo Zide
bca9b205af Support loading textures from the same folder of the model being loaded. 2017-07-01 17:12:09 -07:00
Leonardo Zide
05e3d7846c Update file functions to support multibyte strings. Fixes #46. 2017-05-29 13:32:45 -07:00
leozide
f7d61f33ce Updated code to use nullptr and override. 2017-04-13 17:26:40 -07:00
Leonardo Zide
f99a093c7a Draw edge lines unlit. 2017-03-22 23:35:02 -07:00
leozide
48f5b28b85 Fixed warning. 2017-03-20 13:03:31 -07:00
Leonardo Zide
8023f868cd Support loading parts from the 'unofficial' folder. 2017-03-19 13:12:24 -07:00
Leonardo Zide
4096d4a325 Fixed normal calculation. 2017-03-01 08:36:51 -08:00
leozide
37327277e8 Fixed mesh generation bug. 2017-02-28 17:14:29 -08:00
leozide
7e3f572b8e Added shaders for each material/lighting combination. 2017-02-28 15:20:34 -08:00
leozide
9978230506 Calculate mesh normals. 2017-02-27 16:03:12 -08:00
leozide
e09d9cae3f Fixed warning. 2017-02-21 12:57:25 -08:00
Leonardo Zide
6df1ceb165 Parse BFC statements in parts. 2017-02-21 08:09:13 -08:00
leozide
4b9cd6a038 Removed GetFileList. 2017-02-08 17:41:14 -08:00
Leonardo Zide
acdc14a209 Use QString for categories. 2017-02-08 09:41:48 -08:00
leozide
70fd2c3ce0 Removed old string class. 2017-02-07 18:55:54 -08:00
Leonardo Zide
e766f7892e Added 'All Parts' category. 2017-01-31 21:12:30 -08:00
Leonardo Zide
ca1505f770 Change the locale at startup only. 2017-01-23 20:46:52 -08:00
Leonardo Zide
f4d47d1631 Fixed incorrect piece loading logic. 2017-01-23 20:26:57 -08:00
leo
b03e820e3e More Qt4 fixes. 2017-01-22 22:44:54 -08:00
Leonardo Zide
ff18c042f1 Fix Qt4 error. 2017-01-22 21:22:46 -08:00
Leonardo Zide
76279c6f5c Correct way to include QtConcurrent. 2017-01-22 20:50:43 -08:00
Leonardo Zide
8c318cbdf1 Multithreaded piece loading. 2017-01-22 19:28:05 -08:00
Leonardo
7dbc27a7ce Removed old preview widget. 2016-12-28 13:30:31 -08:00
Leonardo Zide
0f0a55a5df Fixed cache checksum when there's no unofficial library archive. 2016-12-21 16:49:52 -08:00
Leonardo Zide
eb1bc1cd31 First pass of the new parts list widget. 2016-12-16 09:14:19 -08:00
Leonardo Zide
8152f99ec4 Fixed compiler warnings. 2016-12-01 23:09:14 -08:00
Leonardo Zide
dcfccd8eeb Rewrote how loose model files are loaded. 2016-11-25 17:12:19 -08:00
Leonardo
a74e51cd04 Fixed line endings. 2016-10-05 14:28:52 -07:00
Leonardo Zide
5d86d5ac98 Fixed reading loose mpd files referenced by another file. 2016-09-25 17:15:30 -07:00
Leonardo Zide
cde1334e0b Fixed bounding box of models loaded from loose files. 2016-09-25 13:15:43 -07:00
Leonardo
dc2b5db0a7 Fixes to compile with Qt 4.6. 2016-09-22 08:04:51 -07:00
leo
6e602174c0 Experimental conditional line support. 2016-08-22 01:11:32 +00:00
leo
1e8adcd880 Fixed HTML export of models with only 1 step. 2016-05-29 16:42:47 +00:00
leo
7ebcc16c41 Optimizations for loading very large models. 2016-05-29 02:46:34 +00:00
leo
9b2efa6f88 Search for files in the current model folder. 2016-05-28 20:30:23 +00:00
leo
73c7607ca6 Fixed loading pieces with more than 64k verts. 2016-05-28 18:18:00 +00:00
leo
61006184d1 Search the current path for submodels when opening files. 2016-05-28 17:35:13 +00:00
leo
d5ccd6289f Include cleanup. 2016-05-02 19:13:54 +00:00
leo
9c8a602a09 Fixed accessing const arrays as non-const. 2016-04-19 18:37:50 +00:00
leo
a24ebaaab9 Better string mesh generation. 2016-04-11 15:45:08 +00:00
leo
1cd4a8cee0 Added support for flexible technic ribbed hoses. 2016-02-29 20:13:54 +00:00
leo
510d190483 Support dynamic piece meshes. 2016-02-19 17:53:54 +00:00
leo
55e7cd4bab Warning fixes for VS 2015. 2016-02-16 23:11:52 +00:00