Commit graph

1045 commits

Author SHA1 Message Date
Leonardo Zide
0112b5385b Support cylindrical texmap. 2018-01-17 15:14:30 -08:00
Leonardo Zide
ce8ea6a92e Fixed static analysis warnings. 2018-01-15 17:03:08 -08:00
Leonardo Zide
93c147eeed Make sure there's always a tab open after loading a file. 2018-01-15 16:36:50 -08:00
Leonardo Zide
7ca156b3a7 Added commands for moving the camera relative to its current orientation. 2018-01-15 11:35:15 -08:00
Leonardo Zide
74faeef382 Added POV-Ray exe. 2018-01-14 15:37:07 -08:00
Leonardo Zide
ce8a830d40 Fixed alpha of the opaque parts of texmap translucent parts. 2018-01-12 21:44:49 -08:00
Leonardo Zide
65ff6a41c6 Fixed parts that use texmap on primitives. 2018-01-12 21:23:43 -08:00
leo
425e68d2a0 Removed tab context menu from Qt4 since it conflicts with the view menu. 2018-01-12 09:10:05 -08:00
leo
f776ef4ea2 Fixed Qt4. 2018-01-07 08:59:05 -08:00
Leonardo Zide
5b172b6cf8 Added context menu to model tab widget. 2018-01-06 15:22:40 -08:00
Leonardo Zide
dff8aac29b Restore last tab layout when loading a file. 2018-01-06 15:01:04 -08:00
Leonardo Zide
601401fa1b Fixed reloading model references. 2018-01-06 10:15:24 -08:00
Leonardo
e097ad630b Fixed tiled render math. Fixes #156. 2018-01-04 10:22:57 -08:00
Leonardo
1e99d7050a Fixed compile error. Fixes #155. 2018-01-03 14:24:42 -08:00
Leonardo
d242fa7ea5 Don't reset tab layout when reloading a model. 2018-01-02 19:46:50 -08:00
Leonardo
0259be0099 Fixed Qt4 compile error. 2018-01-02 16:22:16 -08:00
Leonardo
6f83db7ba2 Prompt to reload if file changes on disk. 2018-01-02 06:10:58 -08:00
Leonardo
caceae9b91 Updated version number. 2018-01-01 08:00:39 -08:00
Leonardo
e4b759009f Use smaller tiles when saving images with MSAA. Fixes #154. 2018-01-01 07:56:25 -08:00
leo
c5a232b8c9 Fixed missing depth buffer when AA is disabled. 2017-12-30 13:03:47 -08:00
leo
f3b392b4fb Fixed compile errors. 2017-12-30 12:49:50 -08:00
Leonardo Zide
5d637b1cad macOS fixes. 2017-12-30 12:12:27 -08:00
Leonardo Zide
3ef029d6d2 Fixed GLES. 2017-12-30 12:04:12 -08:00
Leonardo
50b3e95215 Reuse the same FBO when creating new preview images. 2017-12-29 06:50:18 -08:00
Leonardo
1541d05c31 Added POV-Ray quality and save image. 2017-12-27 13:55:37 -08:00
Leonardo
804e0f6f53 Save MSAA images. Fixes #101. 2017-12-26 10:19:20 -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
Leonardo
8060c30ba2 Don't show parent models in the All Parts category. 2017-12-21 14:12:01 -08:00
Leonardo
104f5c843e Auto calculate the far plane when generating preview images. 2017-12-21 14:02:16 -08:00
leozide
50bb299095 Fixed grammar. 2017-12-15 12:02:37 -08:00
leozide
2d538390d3 Added --camera-angles command line option. Closes #147. 2017-12-13 17:36:35 -08:00
Leonardo Zide
7dd36a4d0e Added --html-parts-width/height to the command line. 2017-12-12 22:47:03 -08:00
Leonardo Zide
a2b9549ce8 Fixed bad links when exporting some HTML files. 2017-12-12 22:39:11 -08:00
Leonardo Zide
521fa57592 Fixed parts list image being the same for all models when exporting to HTML. 2017-12-12 22:23:26 -08:00
Leonardo Zide
58219c946c Fixed compiler warnings. 2017-12-12 22:17:14 -08:00
leozide
25b5d3e618 Added -html to CLI help. 2017-12-11 14:00:25 -08:00
leozide
bc02c04272 Added -html command line option. Closes #145. 2017-12-11 11:14:37 -08:00
Leonardo Zide
be3c96006f Removed old DoDialog function. 2017-12-10 18:12:31 -08:00
Leonardo Zide
5f582f7fd1 Renamed user facing strings "project" -> "model" and "model" -> "submodel" to be consistent. 2017-12-10 15:01:12 -08:00
leo
a339a62a97 Fixed crash on startup on some configs. Fixes #146. 2017-12-10 10:20:31 -08:00
leo
ace53d4a9d Fixed compiling on Qt5.0 to 5.2. 2017-12-10 10:13:58 -08:00
Leonardo Zide
8e5cd4a0f4 Fixed LDD importer not matching the transform table. 2017-12-09 16:47:47 -08:00
Leonardo Zide
2de32b91af Adjust home viewpoint. Closes #143. 2017-12-09 16:35:00 -08:00
Leonardo Zide
76d11fe474 Better default POV-Ray lights. 2017-12-09 14:28:11 -08:00
Leonardo Zide
33f33af0aa iOS fixes. 2017-12-06 22:08:56 -08:00
Leonardo Zide
db1bccfee0 Handle unicode characters on the command line. 2017-12-02 19:42:42 -08:00
Leonardo Zide
d6ba0262af Removed LC_POINTER_TO_INT 2017-12-02 12:33:28 -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
f11d33044c Only draw lines when in wireframe mode instead of actually drawing the wireframe meshes. Closes #133. 2017-11-25 15:47:37 -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
9c5709feea Default save image location to the project folder. 2017-11-24 11:53:04 -08:00
Leonardo Zide
2071d6810a Don't require a known extension when saving images from the command line. 2017-11-24 11:48:46 -08:00
Leonardo Zide
f51f8d205c Added selection mode button to toolbar. 2017-11-23 18:31:55 -08:00
Leonardo Zide
6878d0157f Support selection mode on all selection tools. 2017-11-21 22:54:49 -08:00
leozide
848cdd9daf Added piece selection modes. 2017-11-21 17:58:36 -08:00
leozide
b1527356a2 Replaced 10 degrees snap with 22.5 degrees. Closes #139. 2017-11-20 16:16:41 -08:00
leozide
696189e171 Added Shift+LMB shortcut to remove selection. 2017-11-20 15:12:00 -08:00
Leonardo Zide
3d5587cbd0 Fixed adding pieces when icons are disabled. 2017-11-19 17:58:32 -08:00
Leonardo Zide
3a055a4724 Only show used parts in search dialog. 2017-11-19 14:12:27 -08:00
Leonardo Zide
80c226db56 Fixed multiple selection. 2017-11-19 13:27:42 -08:00
leozide
2b14b67eb1 Added Tools submenu. 2017-11-14 14:56:37 -08:00
leozide
57bad9ceba Smaller transform edits. 2017-11-13 17:24:36 -08:00
leozide
fe6f1a67dc Simplified default toolbars. 2017-11-13 16:54:14 -08:00
leozide
846a2ac610 Fixed new move tool. 2017-11-13 12:47:35 -08:00
leozide
2e6fbd0679 Fixed crash using the old move tool. 2017-11-13 11:16:29 -08:00
Leonardo Zide
470be6b7a9 New piece free movement mode. 2017-11-12 19:38:07 -08:00
Leonardo Zide
6ca7934681 Removed axis lock option. 2017-11-11 12:46:56 -08:00
Leonardo Zide
f2fc6b3a8d Fixed POV-Ray warnings. 2017-11-04 14:32:21 -07:00
Leonardo Zide
1436037f7b Fixed POV-Ray camera not matching LeoCAD. 2017-11-04 14:21:50 -07:00
leozide
01cfcf1e13 Added POV render resolution. 2017-11-03 16:01:30 -07:00
leozide
fd19af8e73 Preserve focus when duplicating pieces. Fixes #130. 2017-11-03 11:38:47 -07:00
leozide
657fdc0f2b POV render working on Linux. 2017-11-02 17:35:12 -07:00
leozide
755b9caddf Removed old POV-Ray Dialog. 2017-11-01 16:33:58 -07:00
leozide
fb62beb933 Added Shading and Projection to context menu. Closes #128. 2017-10-31 12:33:35 -07:00
Leonardo Zide
733969913e Windows fix. 2017-09-23 09:21:58 -07:00
leozide
5dd0a9a203 Fixed compiler error in some gcc versions. 2017-09-22 16:42:22 -07:00
Leonardo Zide
d7ce050561 Added new render dialog. 2017-09-22 10:08:02 -07:00
leozide
ecdcd50239 Updated inventory import to use the newly added LDraw ID. 2017-09-15 14:52:05 -07:00
leozide
39241c8aad Refresh parts list after preferences changed. 2017-09-13 14:21:53 -07:00
leozide
be388d167b Fixed parts filter not being applied after settings are changed. 2017-09-11 18:26:50 -07:00
Leonardo Zide
f6e4c054a7 Export normals to pov and obj. Fixes #117 . 2017-09-09 11:33:46 -07:00
leozide
bc327a3b00 Fixed relative snap when adding pieces with the mouse. 2017-09-08 14:11:48 -07:00
Johannes Sixt
7d37913b7b Fix error messages of command line argument parsers. (#119)
The two error messages about missing arguments access an argument with an
incorrect index because at these points in the code the *CurArg is not yet
incremented.

Also append line breaks to separate the messages from other notices and
warnings that could occur.
2017-09-03 10:51:46 -07:00
Leonardo Zide
bc4ba07a42 Fixed minifig hand accessories orientation. 2017-09-02 17:43:28 -07:00
leozide
f35a9ff1b6 Set GL_TEXTURE_MAX_LEVEL. 2017-09-01 17:30:02 -07:00
leozide
9e12f52bcd Load submodels inside mpd files before loading files from disk. 2017-08-29 11:11:29 -07:00
leozide
1725d0cf0e Rewrote library search code. 2017-08-28 19:13:17 -07:00
Leonardo Zide
e905047179 Disabled update checks on OSX because of bug #62. Fixes #112. 2017-08-27 12:10:52 -07:00
Leonardo Zide
8486295a02 Move parts after importing inventory. 2017-08-26 15:49:46 -07:00
Leonardo Zide
81c70f9daa Update preview when changing shading mode. Fixes #113. 2017-08-26 08:37:52 -07:00
leozide
d263ce812c Fixed loading mouse shortcuts. Fixes #107. 2017-08-25 18:21:34 -07:00
leozide
f2560c18e0 Fixed parts being considered hidden in some cases. Fixes #108. 2017-08-25 16:17:22 -07:00
leozide
4db7423f7d Added command line option to export collada. Closes #106. 2017-08-25 16:10:06 -07:00
leozide
3fc53d9d5f Added shading options. Closes #104. 2017-08-25 12:57:14 -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
leo
d39ec689a5 Fixed Qt4. 2017-08-20 14:06:13 -07:00
Leonardo Zide
138ebdacda Import set inventories. 2017-08-20 13:47:53 -07:00
Leonardo Zide
7bf4a63e3d Fixed exporting parts with multiple colors in collada. 2017-08-12 08:56:56 -07:00
leozide
c6872df027 Added collada colors. 2017-08-11 19:02:26 -07:00
leozide
299f44c061 First pass COLLADA exporter. 2017-08-10 18:40:43 -07:00
Leonardo Zide
4bf4f14d4e Fixed zfar during tiled render. 2017-08-05 12:12:42 -07:00
Leonardo Zide
51afa3acde Merged TiledRender into the View class. 2017-08-05 12:02:45 -07:00
Leonardo Zide
02231b363b Support saving images larger than 2048. 2017-07-30 14:18:57 -07:00
leozide
68d9c28dc2 Fixed loading primitives from loose files. 2017-07-27 16:09:38 -07:00
leozide
b0afa61028 Removed show earlier/later from toolbar. 2017-07-27 12:41:56 -07:00
leozide
c1fe39fb72 Fixed compiler warning. 2017-07-27 12:40:52 -07:00
Leonardo Zide
cc4dbb1fc8 Linux fixes. 2017-07-27 10:02:07 -07:00
Leonardo Zide
82528a2c7a Don't uppercase part names when saving. 2017-07-27 09:21:55 -07:00
leozide
506c5ef67a Fixed gcc 4.7 error. 2017-07-26 17:56:02 -07:00
leozide
5de0644c7b Save positions with 4 digits and rotations with 6. 2017-07-26 17:34:25 -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
5cd85a1584 Preserve case of part names in files. 2017-07-22 20:54:33 -07:00
Leonardo Zide
aff1f1a69f Fixed compiler warnings. 2017-07-22 17:23:11 -07:00
leozide
b2c739dc5a Increased precision of angle constants. 2017-07-20 17:15:49 -07:00
leozide
ca755a2fba Added QDebug operators to math classes. 2017-07-19 15:31:47 -07:00
leozide
68111cad98 Fixed Linux warnings. 2017-07-19 14:37:03 -07:00
leozide
c924b90955 Converted include guards to pragma once. 2017-07-19 14:20:32 -07:00
Leonardo Zide
1cae41162c Removed lcPartSelectionFilterModel. 2017-07-11 18:09:15 -07:00
Leonardo Zide
f5f98994bb Added option for alternate mouse shortcuts with defaults that match LDD. 2017-07-11 14:25:06 -07:00
Leonardo Zide
50256d5378 Fixed unlit textures not drawing. 2017-07-08 09:44:53 -07:00
Leonardo Zide
3d7bfdafb0 New LDD importer. 2017-07-08 09:29:35 -07:00
Leonardo Zide
91fa2ec9dd Temporarily removed LDD importer. 2017-07-04 22:32:29 -07:00
Leonardo Zide
77a70758f8 Fixed static analysis warnings. 2017-07-02 20:12:17 -07:00
Leonardo Zide
bb5a703f51 Replaced HTML parts list table with image. 2017-07-02 16:10:30 -07:00
Leonardo Zide
0784cbc857 Updated version number to 17.07. 2017-07-01 17:47:40 -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
81e260a6f9 PLI improvements. 2017-06-30 08:22:42 -07:00
leozide
bd33085ca3 Fixed Qt4. 2017-06-29 11:12:37 -07:00
Leonardo Zide
de37b8abf9 Initial parts list image implementation. 2017-06-29 10:02:00 -07:00
leo
476182a1f8 Fixes for Qt4. 2017-06-26 07:30:36 -07:00
Leonardo Zide
f0eb8bde96 Added LDD importer. Closes #29. 2017-06-25 18:20:34 -07:00
leozide
b615cf669b Fixed conditional lines. 2017-06-22 18:45:45 -07:00
Leonardo Zide
9c996579f2 Updated pch location. 2017-06-22 08:03:23 -07:00
Leonardo Zide
4de9600a98 Disable parts list icon mode if FBOs are not supported. 2017-06-21 21:40:26 -07:00
Alistair Buxton
82204944ab When copying the camera position, also copy the ortho state. 2017-06-21 18:51:43 +01:00
Alistair Buxton
9aea871fe0 Add --viewpoint and --orthographic.
Use to set up the view using the built-in defaults. Note that they are
mutually exclusive with --camera.
2017-06-21 07:55:48 +01:00
Alistair Buxton
aac367ecfd Document version and help options. 2017-06-21 06:54:24 +01:00
Alistair Buxton
b4e55d1b49 Remove accidental duplicated help line. 2017-06-21 06:33:21 +01:00
Leonardo Zide
f024007157 Keep camera name as a c string for now. 2017-06-20 21:43:39 -07:00
Alistair Buxton
d7275358d6 Don't zoom extents when using a named camera. 2017-06-20 21:33:59 -07:00
Alistair Buxton
b2e4d85324 Add help for new command line options. 2017-06-20 21:31:39 -07:00
Alistair Buxton
240c8f68a5 Add command line options to set submodel and camera. 2017-06-20 21:25:27 -07:00
leozide
164031ffa4 Re-enabled --highlight command line option. 2017-06-20 11:32:48 -07:00
Leonardo Zide
05104162e9 Only highlight new pieces when the option is enabled. 2017-06-20 08:20:59 -07:00
Alistair Buxton
2de2e2c187 Highlight parts added in the current step. 2017-06-20 07:47:31 -07:00
leozide
7daf13b51e Fixed loading camera positions. Fixes #50. 2017-06-19 14:08:54 -07:00
Leonardo Zide
e872ec4a63 Added List Mode option to the parts list. Closes #43. 2017-05-29 14:03:46 -07:00
Leonardo Zide
05e3d7846c Update file functions to support multibyte strings. Fixes #46. 2017-05-29 13:32:45 -07:00
Leonardo Zide
82a4afb7a9 OpenGL ES cleanup. 2017-04-26 22:24:54 -07:00
leozide
8da318037d Removed fog options. 2017-04-21 14:17:03 -07:00
leozide
a219c281f2 Qt4 fix. 2017-04-20 18:56:35 -07:00
leozide
0381a0c74f Static analysis fixes. 2017-04-20 17:53:42 -07:00
Leonardo Zide
16bf9c7502 Merge pull request #44 from j6t/master
Fortify against random control points in imported files.
2017-04-16 19:03:19 -07:00
leo
f03ddb634e Compile fix. 2017-04-15 16:25:47 -07:00
Leonardo Zide
f2be79e4ed Changes to get older gcc versions working. 2017-04-15 15:54:17 -07:00
Johannes Sixt
2448a47071 Fortify against random control points in imported files.
It can happen (accidentally or maliciously) that control points are
imported from a file for pieces that cannot be synthesized. In such a case,
a click on the control point indicator leads to a NULL pointer access.
Insert checks so that the click is effectively ignored.
2017-04-15 16:41:32 +02:00
leozide
d0de0fbf65 Removed deprecated header. 2017-04-14 18:14:16 -07:00
leozide
07bdf56a2b Static assert compiler test. 2017-04-14 16:45:55 -07:00
leozide
dc7f640bc9 Enum compiler test. 2017-04-13 18:12:10 -07:00
leozide
f7d61f33ce Updated code to use nullptr and override. 2017-04-13 17:26:40 -07:00
leozide
35050efe3a Compiler feature test. 2017-04-13 17:07:29 -07:00
Leonardo Zide
c34810c084 Static analysis fixes. 2017-04-02 17:15:09 -07:00
Leonardo Zide
b9726a2a99 Reorganized scene and context classes. 2017-04-01 16:53:54 -07:00
leozide
a77a8e1485 Fixed main window icon. 2017-03-29 11:04:04 -07:00
Leonardo Zide
8990d04782 Increased default far plane. Fixes #40. 2017-03-28 22:51:28 -07:00
leozide
e1e0a0b812 Fixed warning. 2017-03-27 12:16:44 -07:00
Leonardo Zide
6491d15bb3 Fixed AA setting not being applied to the first view. 2017-03-26 23:12:05 -07:00
Leonardo Zide
49a88e1ab4 Fixed synth parts adding the wrong mesh to the scene when in a submodel. Fixes #42. 2017-03-26 18:28:31 -07:00
Leonardo Zide
ba9a2532a0 Avoid deleting all GL contexts. Fixes #41 and maybe fixes #33. 2017-03-26 18:14:08 -07:00
Leonardo Zide
7bd3abf6b4 Fixed issues splitting views. 2017-03-26 10:28:58 -07:00
Leonardo Zide
57b8732ed6 Context state cleanup. 2017-03-25 12:29:28 -07:00
Leonardo Zide
155fa7cdc2 Removed redundant glBlendFunc calls. 2017-03-25 00:03:17 -07:00
leozide
eb7a8a86de Removed SetTextureMode. 2017-03-24 18:36:58 -07:00
leozide
6eb252f531 Removed unused debug code. 2017-03-24 16:36:48 -07:00
Leonardo Zide
c85f0f7eea Disable normals for unlit passes. 2017-03-24 09:34:53 -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
50b9ab1984 Faster mesh sorting. 2017-03-19 22:59:55 -07:00
Leonardo Zide
8023f868cd Support loading parts from the 'unofficial' folder. 2017-03-19 13:12:24 -07:00
Johannes Sixt
64cae0b849 Fix regular file check again.
The previous Windows fix accidentally reverted the logic of the check for
a regular file. As a consequence, ZIP files are not recognized anymore.
2017-03-19 11:38:35 +01:00
Leonardo Zide
5ddd5b4e86 Dynamically resize rows and columns in the color list. Closes #21. 2017-03-18 18:31:04 -07:00
Leonardo Zide
9b933b6c57 Fixed comments in saved files being moved in some cases. Fixes #35, #36. 2017-03-18 17:42:34 -07:00
Leonardo Zide
29aae2b6be Merge pull request #38 from j6t/master
Synthesize power functions linear actuators.
2017-03-18 10:19:04 -07:00
Leonardo Zide
657df22db7 Fixed Windows build. 2017-03-18 10:17:32 -07:00
Johannes Sixt
8ee94ac310 Synthesize power functions linear actuators.
Power function linear actuators can be treated almost the same as shock
absorbers. The only difference is the orientation of the part: The parts
are extended is along the Y axis instead of the Z axis.
2017-03-18 14:58:11 +01:00
leozide
d6efc97089 Removed SetLightingMode. 2017-03-17 15:53:26 -07:00
Johannes Sixt
ba280bc1a7 Determine file size only of regular files.
lcDiskfile::Open() uses fopen() to open a file. On Linux, this can open
a directory just fine (at least for reading). This is slightly problematic
when it is attempted to open the parts library $(sharedir)/library.bin
and the library is an unzipped directory hierarchy. It is first attempted
to open the path as a ZIP file. While opening the directory as a file is
successful, subsequent navigation in the open "file" fails.

Pretend that a directory is an empty file so that the ZIP file reader is
not tempted to navigate around in the "file" and so reports failure in a
deterministic manner.

We could have inserted the check for regular files in lcDiskFile::Open(),
but this burdens every file open request, which can happen thousands of
times when the parts library is extracted instead of in a ZIP file.
2017-03-17 08:15:05 +01:00
Leonardo Zide
acd5a485f0 Added a decal material to fix the texmap extension. 2017-03-12 13:51:14 -07:00
Leonardo Zide
e645228128 Fixed stud grid color. 2017-03-12 12:40:59 -07:00
Leonardo Zide
61e803c161 Added fake lighting shader. 2017-03-11 16:47:21 -08:00
leozide
0677dcfd02 Moved Duplicate to the Piece Menu. 2017-03-08 15:57:24 -08:00
leozide
8125ee8f74 Moved Duplicate to the Piece Menu. 2017-03-08 15:55:38 -08:00
leozide
cf65201095 Added Duplicate Piece action. 2017-03-08 15:49:57 -08:00
Leonardo Zide
043246fbe6 Changed normal format for compatibility. 2017-03-05 22:14:50 -08:00
leozide
4d844dd90a Added normals to cube mesh. 2017-03-03 18:04:52 -08:00
Leonardo Zide
c833912f78 Merge pull request #31 from j6t/master
Draw a dark gray border around color indicators in the time line.
2017-03-03 16:11:04 -08:00
leozide
3e4063f962 Set lighting for minifigs. Fixes #32. 2017-03-03 16:08:39 -08:00
Johannes Sixt
d393cf83b3 Draw a dark gray border around color indicators in the time line.
This makes white, yellow and other colors more visible. In particular,
white entries do not look like absent against a white window background.

Due to the border, the circle must now be smaller by one pixel.
2017-03-04 00:06:01 +01:00
leozide
f7aa4890ee Remove empty steps when moving pieces to a new model. 2017-03-03 12:14:32 -08:00
leozide
1794e8c9c2 Fixed invalid bounding box when no pieces are visible. 2017-03-03 12:07:04 -08: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
Leonardo Zide
3d1efcabec Added room in the meshes for normals. 2017-02-18 11:12:35 -08:00
Leonardo Zide
641f4803e2 Added select by color dialog. Closes #18. 2017-02-16 22:57:11 -08:00
Leonardo Zide
dd223856c9 Use alpha from color when exporting obj. 2017-02-15 09:01:38 -08:00
doyousketch2
d7a21c6265 Update project.cpp
Oh yeah, I didn't end up needing to use string compare, because I found the (Color->Translucent) property.
2017-02-14 19:57:41 -05:00
doyousketch2
199b56d5ac Include transparency values 2017-02-14 19:48:19 -05:00
Leonardo Zide
6094899dc2 Fixed clang analyzer warnings. 2017-02-12 18:05:20 -08:00
Leonardo Zide
5875284d5d Updated version number. 2017-02-11 17:51:57 -08:00
Leonardo Zide
b2cb923e28 Fixed shaders on desktop GL. 2017-02-11 12:43:47 -08:00
Leonardo Zide
6b3869ce90 Fixes for iOS. 2017-02-11 12:41:00 -08:00
Leonardo Zide
0f2e808477 Fixed printing. 2017-02-11 09:46:21 -08:00
Leonardo Zide
cfdfe30b40 Replaced GL_QUAD calls. 2017-02-11 08:30:57 -08:00
leozide
506e91a16c Added extra large icons option. Fixes #17. 2017-02-08 17:47:30 -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
e22d127660 String cleanup. 2017-02-07 09:35:11 -08:00
Leonardo Zide
93ef02919a Prevent shortcuts from overriding key events in the parts widget. 2017-02-06 20:46:25 -08:00
leozide
87a8201d2c Fixed Qt4 errors. 2017-02-06 14:20:09 -08:00
Leonardo Zide
77f4cf8de4 Better default window layout. 2017-02-06 09:06:52 -08:00
Leonardo Zide
48d252bfb3 Set categories for parts without one. 2017-02-04 19:59:02 -08:00
Leonardo Zide
57eded0673 Updated default colors to 2016-12-28. 2017-02-04 19:37:40 -08:00
Leonardo Zide
0dabe0d435 Added SetCurrentStep and MoveSelection to Timeline context menu. 2017-02-04 18:40:46 -08:00
Leonardo Zide
e3bb498741 Added option to lock the preview color. 2017-02-04 13:14:41 -08:00
Leonardo Zide
0f89bc8233 Allow toolbars to be docked anywhere. 2017-02-04 11:34:32 -08:00
Leonardo Zide
d34f5050dd Don't allow multiple lines of text for the preview icons. 2017-02-03 00:31:37 -08:00
Leonardo Zide
e766f7892e Added 'All Parts' category. 2017-01-31 21:12:30 -08:00
Leonardo Zide
e7fe26d2a4 Stop caching the GL viewport since OSX changes it when making a context current. 2017-01-29 19:31:30 -08:00
leozide
32f2f3fac7 More parts list options. 2017-01-27 18:20:44 -08:00
leozide
045d05eb67 Added category with parts in the current model. 2017-01-26 19:02:42 -08:00
leozide
ea5c2512a7 Fixed crash. 2017-01-26 18:47:59 -08:00
Leonardo Zide
ec169c8263 Fixed race condition drawing previews. 2017-01-24 19:49:49 -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