Commit graph

395 commits

Author SHA1 Message Date
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
Leonardo Zide
f6e4c054a7 Export normals to pov and obj. Fixes #117 . 2017-09-09 11:33:46 -07:00
leozide
9e12f52bcd Load submodels inside mpd files before loading files from disk. 2017-08-29 11:11:29 -07:00
Leonardo Zide
8486295a02 Move parts after importing inventory. 2017-08-26 15:49:46 -07:00
leozide
4db7423f7d Added command line option to export collada. Closes #106. 2017-08-25 16:10:06 -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
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
bb5a703f51 Replaced HTML parts list table with image. 2017-07-02 16:10:30 -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
Leonardo Zide
f0eb8bde96 Added LDD importer. Closes #29. 2017-06-25 18:20:34 -07:00
Leonardo Zide
f024007157 Keep camera name as a c string for now. 2017-06-20 21:43:39 -07:00
Alistair Buxton
240c8f68a5 Add command line options to set submodel and camera. 2017-06-20 21:25:27 -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
Leonardo Zide
05e3d7846c Update file functions to support multibyte strings. Fixes #46. 2017-05-29 13:32:45 -07:00
leozide
8da318037d Removed fog options. 2017-04-21 14:17:03 -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
leozide
f7d61f33ce Updated code to use nullptr and override. 2017-04-13 17:26:40 -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
Leonardo Zide
57b8732ed6 Context state cleanup. 2017-03-25 12:29:28 -07:00
leozide
d6efc97089 Removed SetLightingMode. 2017-03-17 15:53:26 -07:00
Leonardo Zide
acd5a485f0 Added a decal material to fix the texmap extension. 2017-03-12 13:51:14 -07:00
leozide
7e3f572b8e Added shaders for each material/lighting combination. 2017-02-28 15:20:34 -08:00
Leonardo Zide
3d1efcabec Added room in the meshes for normals. 2017-02-18 11:12:35 -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
6b3869ce90 Fixes for iOS. 2017-02-11 12:41:00 -08:00
leozide
045d05eb67 Added category with parts in the current model. 2017-01-26 19:02:42 -08:00
Leonardo Zide
ca1505f770 Change the locale at startup only. 2017-01-23 20:46:52 -08:00
Leonardo
7dbc27a7ce Removed old preview widget. 2016-12-28 13:30:31 -08:00
Leonardo Zide
b2b143af99 Fixed incorrect camera position when saving images from the command line. 2016-12-07 21:57:53 -08:00
Leonardo Zide
ccadcf7e1a Fixed file name formatting when saving an image from the command line. 2016-12-07 09:08:23 -08:00
Leonardo Zide
dcfccd8eeb Rewrote how loose model files are loaded. 2016-11-25 17:12:19 -08:00
Leonardo
70463b9d8e Removed access to library internal array. 2016-11-17 12:10:33 -08:00
Leonardo
d8f14c1937 Removed code accessing library internals. 2016-11-16 14:53:41 -08:00
Leonardo Zide
5d86d5ac98 Fixed reading loose mpd files referenced by another file. 2016-09-25 17:15:30 -07:00
Leonardo
df61ddbfc7 Better file type detection when loading files. 2016-09-23 12:48:29 -07:00
Leonardo
dc2b5db0a7 Fixes to compile with Qt 4.6. 2016-09-22 08:04:51 -07:00
Leonardo
a90cd13697 Fixed extension check. 2016-09-17 13:21:29 -07:00
leo
2f0cf40af4 Enforce file extension in submodels. 2016-09-08 22:34:51 +00:00
leo
6e602174c0 Experimental conditional line support. 2016-08-22 01:11:32 +00:00
leo
6d483252c5 Clean up of some old dialog code. 2016-08-01 03:44:15 +00:00
leo
d8191b0758 Added option to control which models to export to HTML. 2016-05-30 22:41:03 +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
9278a6fe1e Warning fixes. 2016-03-06 20:19:02 +00:00
leo
32a22da00d Open submodels in separate tabs. 2016-03-06 01:47:00 +00:00
leo
55e7cd4bab Warning fixes for VS 2015. 2016-02-16 23:11:52 +00:00
leo
d105c05184 Added option to create a new model from the currently selected pieces. 2015-12-02 01:16:12 +00:00
leo
df28f02b82 Fixed POV render command line. 2015-08-08 20:55:10 +00:00
leo
307ed62ceb Added mesh LOD. 2015-05-24 04:36:25 +00:00
leo
7f7a93e015 Added shader support. 2015-05-16 23:04:35 +00:00
leo
7170c1d0ee GL extensions cleanup. 2015-05-09 19:54:29 +00:00
leo
aa861cd036 Use a single vertex buffer for all pieces. 2015-04-26 18:14:33 +00:00
leo
344f1756a3 Show a default file name in the export dialogs. 2015-03-27 20:39:43 +00:00
leo
89df6b58c2 Added command line option to export 3ds files. 2015-03-27 20:20:12 +00:00
leo
c9839c945e Fixed empty model being added when loading some MPD files. 2015-03-25 15:33:58 +00:00
leo
168ca86c2e Update the bounding box of submodels after loading. 2015-02-23 20:25:53 +00:00
leo
786bf4283b Rewrote how model names work. 2015-02-22 02:39:15 +00:00
leo
c670893deb Rendering optimizations. 2015-02-08 18:54:51 +00:00
leo
100245f207 Don't save model name in MPD files. 2015-02-08 03:29:42 +00:00
leo
b5ad5dba15 Fixed crash with export functions. 2015-02-08 00:05:07 +00:00
leo
4b82e75f5b Moved more file name variables to QString. 2015-02-02 06:00:42 +00:00
leo
e456b05ebf String cleanup. 2015-01-31 21:44:57 +00:00
leo
df7afb956a More Qt cleanup. 2015-01-31 20:38:53 +00:00
leo
bce59e8873 Message box cleanup. 2015-01-30 16:30:13 +00:00
leo
21d622bd59 Merged main window classes. 2015-01-25 23:04:39 +00:00
leo
f0209fa021 Added Wavefront export command line option. 2015-01-23 01:58:33 +00:00
leo
6ad512d012 Only update the piece info for a model after its project is set active. 2015-01-17 18:29:10 +00:00
leo
474c9058ba Fixed double dot on file names when saving images. 2015-01-14 22:38:07 +00:00
leo
7a49635ea8 Fixed wrong colors in the wavefront exporter. 2015-01-14 16:41:32 +00:00
leo
ac06b213f2 Update version number. 2015-01-12 05:02:50 +00:00
leo
7db0e7f21e Fixed html export. 2015-01-12 04:49:30 +00:00
leo
06496f1cf0 Remove temporary pieces from the library after unloading a project. 2015-01-07 16:52:42 +00:00
leo
2fe1ed273a Workaround for a bug in QTextStream::pos() that was causing some mpd files to fail to load. 2015-01-06 15:38:51 +00:00
leo
7d30c9bc88 Fixed cases where a model wasn't creating its piece. 2015-01-05 22:44:05 +00:00
leo
28be739db0 Fixed bounding box calculation of nested submodels. 2015-01-02 16:44:01 +00:00
leo
e383eed986 Fixed loading files from the command line. 2014-12-31 16:38:30 +00:00
leo
03303cd06e Zoom extents after loading a file. 2014-12-30 23:45:27 +00:00
leo
98aa121dec Correctly draw selection box outline of submodels. 2014-12-30 16:56:13 +00:00
leo
d7396b4edb Fixed export functions. 2014-12-30 16:30:12 +00:00
leo
e1e9a022ca Fixed saving mpd files. 2014-12-26 17:09:11 +00:00
leo
7716e0ae37 Always use last step when drawing models that aren't current. 2014-12-25 15:25:50 +00:00
leo
788f0bf9e4 Added support for drawing submodels. 2014-12-24 15:52:52 +00:00
leo
ffc58f554c Fixed merge. 2014-12-23 17:02:23 +00:00
leo
b3d8fafeb4 Fixed copy and paste. 2014-12-15 23:55:17 +00:00
leo
b20d52e2f9 Added model list dialog. 2014-12-12 23:42:09 +00:00
leo
5037897261 Added model menu. 2014-12-09 23:56:29 +00:00
leo
493ad442b2 Finished separating model from project. 2014-12-08 07:32:39 +00:00
leo
dbe7f759ed Move command handling to main window. 2014-12-04 01:47:28 +00:00
leo
9ebccc4a19 Moved last remaining functions out of project. 2014-11-30 17:53:09 +00:00
leo
d4ab2e9f90 More cleanup. 2014-11-29 02:55:58 +00:00
leo
deabf0524a Moved more functionality out of the project. 2014-11-25 00:51:34 +00:00
leo
a63743c73f Reorganized drawing functions. 2014-11-23 23:48:56 +00:00
leo
848224bf3b Reorganized group functions. 2014-11-10 00:06:11 +00:00
leo
477cf69977 Reorganized zoom functions. 2014-11-08 01:05:17 +00:00
leo
c7ab540117 Small cleanup. 2014-10-24 00:41:19 +00:00
leo
5834587204 Support gradient and texture backgrounds in the preview widget. 2014-10-23 22:03:50 +00:00
leo
55e7cad5e1 Rewrote HTML export. 2014-10-13 03:43:33 +00:00
leo
50a018f1a7 File load cleanup. 2014-10-12 17:34:18 +00:00
leo
ebd7c4be5d More descriptive error message when failing to save images. 2014-10-12 02:30:34 +00:00
leo
d6ceb6bfdc Simplified the Save Image Dialog. 2014-10-11 23:26:23 +00:00
leo
f9b0cbbc05 Moved export functions to model. 2014-10-10 23:53:08 +00:00
leo
a6a69b7661 Reuse piece bounding box function to avoid duplication. 2014-10-10 01:25:31 +00:00
leo
6684abf96a More project cleanup. 2014-10-07 23:02:52 +00:00
leo
56b09b03b0 Moved snap functions to project. 2014-10-05 05:42:38 +00:00
leo
2ca5665235 Moved mouse handling to the model. 2014-10-05 05:21:51 +00:00
leo
d1f1401ca3 Moved search out of the project. 2014-09-21 01:31:01 +00:00
leo
34de3928b6 Added support for translations. 2014-09-15 23:41:46 +00:00
leo
7c7b461fb0 Removed old terrain editor. 2014-09-14 23:32:58 +00:00
leo
4e44915e49 Removed binary file save. 2014-09-14 00:45:45 +00:00
leo
6b5db8aff9 Updated save file format. 2014-09-08 19:42:20 +00:00
leo
a9be648237 Use QString for model properties. 2014-09-06 01:34:03 +00:00
leo
05cafd4055 Use QTextStream for saving files. 2014-09-05 00:24:28 +00:00
leo
9454ebb929 Removed JSON exporter. 2014-09-04 14:27:37 +00:00
leo
661fa68011 Changed the LDraw exporter to include more features in extensions. 2014-09-02 03:44:51 +00:00
leo
4c0c815682 Moved keys to separate arrays. 2014-08-31 00:53:12 +00:00
leo
07e6fce3ce Use LDraw units internally. 2014-08-30 19:48:36 +00:00
leo
73952870fd Moved transform type to main window. 2014-08-27 16:17:09 +00:00
leo
0a66fbeb82 Moved some drawing code out of the projet. 2014-08-23 22:56:59 +00:00
leo
22d3c57b9b Moved selection functions to model. 2014-08-17 20:44:12 +00:00
leo
b9d2229132 Removed old object class names. 2014-08-07 15:22:33 +00:00
leo
109ec00f5f Support more than 255 steps. 2014-07-06 06:04:09 +00:00
leo
1b79096bd4 Removed the need to manually set a project modified when a change is made. 2014-07-04 17:35:52 +00:00
leo
d78071b773 Moved undo support to model. 2014-07-03 19:10:04 +00:00
leo
98541ed1f2 Improved moving rotated parts. 2014-06-22 17:39:15 +00:00
leo
a28ae91a52 Draw border around active view. 2014-06-20 21:30:52 +00:00
leo
c48adc095b Added shortcut for toggling relative snap. 2014-06-18 01:14:45 +00:00
leo
64fab2886e Fixed moving rotated pieces. 2014-06-16 17:04:50 +00:00
leo
7d2d338398 Fixed piece drag from list. 2014-05-26 22:58:08 +00:00
leo
d4c3cf8ebe Group cleanup. 2014-05-25 18:23:09 +00:00
leo
e20907fbdd Added model class. 2014-05-25 01:45:19 +00:00
leo
4e1a08c4fb Moved current tool to main window. 2014-05-23 00:02:21 +00:00
leo
eb4bc27c25 Moved addkeys to main window. 2014-05-20 22:15:42 +00:00
leo
d162acdf52 Moved mouse handling from project to view. 2014-05-17 23:03:05 +00:00
leo
fe2e759bc0 Moved view list to main window. 2014-05-03 21:16:48 +00:00
leo
9292816f89 Moved some hit test functions to view. 2014-05-03 16:59:57 +00:00
leo
df90611f77 Merged projection and view classes. 2014-05-03 06:08:52 +00:00
leo
e0d4f03cbc Moved projection selection to camera. 2014-05-03 01:22:24 +00:00