Commit graph

376 commits

Author SHA1 Message Date
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
leo
7b60905dcb Removed cm units option. 2014-05-02 21:54:07 +00:00
leo
d2d96489ac Fixed inconsistent behavior where sometimes parts that are not visible would remain selected and be modified. 2014-05-01 14:55:12 +00:00
leo
c7cdb96abb Crash fix. 2014-04-24 23:50:32 +00:00
leo
38757baec7 Refactored adding meshes. 2014-04-23 14:53:43 +00:00
leo
7e2180e132 Fixed invalid memory free. 2014-04-20 19:09:46 +00:00
leo
54beb09a97 New selection indicator. 2014-04-20 01:50:41 +00:00
leo
e0cfece285 Fixed background image not loading. 2014-04-16 00:35:55 +00:00
leo
fcee2cfd7a Added context default state. 2014-04-16 00:29:54 +00:00
leo
f31879c2e4 Workaround for LDD import bug. 2014-04-14 03:43:31 +00:00
leo
c435eae17b Added graphics context class. 2014-04-14 03:20:16 +00:00
leo
d61cf958f6 Cleanup. 2014-04-12 00:29:53 +00:00
leo
c5f006cd2c Moved pieces from a linked list to an array. 2014-04-10 04:46:48 +00:00
leo
0459b9f38b Moved lights from linked list to array. 2014-04-08 22:34:50 +00:00
leo
18db90b7f5 Keep vertex array state always enabled during rendering. 2014-02-16 19:36:11 +00:00
leo
0cf0f497e9 Removed calls to GL matrix stack. 2014-02-16 07:23:55 +00:00
leo
75f093f96d Moved properties and preferences into their own classes. 2014-02-10 00:13:41 +00:00
leo
ac6a61768c Removed curve class. 2014-01-30 23:26:55 +00:00
leo
213c53813c Removed animation code. 2014-01-30 03:13:34 +00:00
leo
5e3012e27c Fixed warning. 2014-01-25 23:38:03 +00:00
leo
ad4df2651f Added support for GL_EXT_framebuffer_object. 2014-01-13 00:29:12 +00:00
leo
477a3f062b Preserve groups when merging. 2013-12-19 13:41:49 +00:00
leo
a7ab2956c8 Added Look At command. 2013-12-17 22:23:41 +00:00
leo
418481f8c8 Orthographic projection option. 2013-12-17 02:43:16 +00:00
leo
4dbc82a8ab Added move arrows to lights. 2013-12-15 22:01:11 +00:00
leo
8f4c932b13 Fixed mouse cursor not being updated in some cases. 2013-12-15 21:58:30 +00:00
leo
4fd398caa5 Hide rotation handles if no pieces are selected. 2013-12-15 21:51:22 +00:00
leo
d33f532af3 Using the mouse wheel with the control key down will zoom faster. 2013-12-15 21:41:15 +00:00
leo
eb9a75fc25 Fixed wrong transform of some pieces when importing nested ldr files. 2013-12-07 23:15:28 +00:00
leo
e3b086ffb6 Fixed piece arrows not being drawn if the axis icon is enabled. 2013-09-08 05:54:56 +00:00
leo
e3250c12f1 Fixed grid studs being enabled by grid lines option. 2013-09-06 23:24:47 +00:00
leo
5758001cbc Resize grid when adding pieces with the mouse. 2013-09-01 22:25:34 +00:00
leo
ba28ef208c Moved default camera out. 2013-09-01 22:19:53 +00:00
leo
87e7ed190c Auto resize grid. 2013-09-01 21:45:19 +00:00
leo
8609014e64 Added option to draw studs on the base grid. 2013-08-31 21:58:47 +00:00
leo
44e85eb339 Removed copy keys command. 2013-08-31 00:07:04 +00:00
leo
88ac2de732 Fixed 3ds export bugs. 2013-08-29 06:51:36 +00:00
leo
c380956c96 Split povray exporter into a separate function. 2013-08-17 01:35:02 +00:00
leo
3a626ab23c Added povray options to the preferences dialog. 2013-08-17 01:17:23 +00:00
leo
06ceadd800 Fixed calling povray to render files. 2013-08-16 23:17:25 +00:00
leo
32dcb94c49 Removed defines.h 2013-08-16 22:39:47 +00:00
leo
bfe224fd75 Fixed loading mpd files with spaces in the name. 2013-08-16 16:16:45 +00:00
leo
422b104b8e Removed console class. 2013-08-16 01:31:30 +00:00
leo
649d6b351c Renamed window classes. 2013-08-16 01:25:51 +00:00
leo
4d0eb9ce3e Renamed source files. 2013-08-16 01:20:51 +00:00
leo
979217d023 Array class cleanup. 2013-08-15 23:43:18 +00:00
leo
50027f8a07 Automatically update file extension in the image dialog. 2013-08-13 22:17:25 +00:00
leo
f11c97777a Merged qtest branch into trunk. 2013-08-09 04:57:18 +00:00
leo
4ebbd438d7 Fixed some valgrind warnings about uninitialized variables. 2013-07-08 18:09:44 +00:00
leo
70d500ab87 Fixed uninitialized overlay mode. 2013-04-10 00:56:51 +00:00
leo
8ef4470439 Use a translucent rectangle for selection instead of lines. 2013-04-10 00:52:06 +00:00
leo
975bcb14df Fixed warnings. 2013-02-22 20:01:36 +00:00
leo
8a22a11819 Fixed shadow declarations. 2013-02-12 23:36:30 +00:00
leo
3220901e04 Fixed bug pasting cameras. 2013-02-12 22:12:50 +00:00
leo
c7ebb8b82b Only update camera menu once when deleting multiple cameras. 2013-02-12 22:07:52 +00:00
leo
1f68d362db Support drag and drop from piece list on Linux. 2013-02-11 19:28:53 +00:00
leo
8876844b5e Support mouse wheel sensitivity on Windows. 2013-01-28 20:14:14 +00:00
leo
03794eb0ec Support mouse wheel on Linux. 2013-01-28 19:57:33 +00:00
leo
f602408f6a Added option to display piece ID and select the piece color to the HTML exporter. 2013-01-26 02:23:49 +00:00
leo
da73fcc388 Fixed crash when unable to open a file during HTML export. 2013-01-26 01:20:34 +00:00
leo
719e4c6c58 Added missing dialog to Linux version. 2013-01-25 23:22:24 +00:00
leo
1fbb448ba4 Added export to Brick Link. 2013-01-24 23:54:10 +00:00
leo
6376cbb8ef Integrated BOM code from branch. 2013-01-23 23:56:34 +00:00
leo
4bfd2ff6a2 Fixed wrong pieces being selected after dragging a new piece from the list. 2013-01-19 22:58:50 +00:00
leo
cd71a02c95 Removed immediate mode draw calls. 2013-01-11 21:02:55 +00:00
leo
ee6dae8249 Fixed compiler warnings. 2013-01-06 19:24:25 +00:00
leo
0a42b92f46 Fixed glitch drawing translucent pieces. 2012-12-23 00:48:22 +00:00
leo
ae0a6109ba Don't zoom when loading a file for undo or redo. 2012-12-13 23:58:03 +00:00
leo
00c0eacf14 Display the Image Dialog instead of the File Dialog. 2012-12-13 02:51:12 +00:00
leo
2fe167f88e Zoom extents after loading a file. 2012-12-13 00:20:40 +00:00
leo
a97824ba62 Zoom extents after importing a file. 2012-12-10 23:30:28 +00:00
leo
7710f9d3f5 Fixed zoom extents on an empty scene. 2012-11-17 02:47:22 +00:00
leo
d3a8e0b1f0 Added option to not use a camera. 2012-11-15 01:14:35 +00:00
leo
065befb84a Fixed piece cache bugs. 2012-11-09 00:07:53 +00:00
leo
670d2d4689 Fixed warnings. 2012-11-02 01:17:42 +00:00
leo
b0ac0089ab Removed old matrix class. 2012-10-18 18:57:21 +00:00
leo
2d91680984 Texture cleanup. 2012-10-12 18:21:45 +00:00
leo
9c53860e4a Added texture mapping support. 2012-10-11 23:55:55 +00:00
leo
08d7f05ffc Added support to load loose library files. 2012-10-02 22:16:36 +00:00
leo
30ec8634d8 Start using the new Pieces Library. 2012-10-02 01:23:44 +00:00
leo
210a352d33 Removed some immediate mode rendering. 2012-09-09 23:42:57 +00:00
leo
4da5f06d9a Camera cleanup. 2012-08-23 18:47:37 +00:00
leo
303d6e4214 Camera cleanup. 2012-08-22 01:13:32 +00:00
leo
2978a81f93 Added simple camera type. 2012-08-20 04:05:56 +00:00
leo
9be1948d4d Bounding box cleanup. 2012-08-16 23:50:40 +00:00
leo
685826c9b5 Added option to keep adding pieces if the control key is pressed. 2012-08-13 00:38:57 +00:00
leo
f6e05e2030 Added transform entries to the toolbar. 2012-08-13 00:28:35 +00:00
leo
a15dd3548d Thicker rotation arrows. 2012-08-10 21:51:07 +00:00
leo
3c0f54c577 Improved rotation overlay. 2012-08-08 22:11:23 +00:00
leo
6ada90eaad Draw arrows for the rotation overlay. 2012-08-02 21:14:26 +00:00
leo
524e2d3be2 Updated mouse workflow to avoid switching actions as often. 2012-07-31 05:27:40 +00:00
leo
56762b08d3 Fixed mouse detection on the move overlay. 2012-07-20 23:15:53 +00:00
leo
ad5351cbbf Deleted old algebra files. 2012-07-12 04:18:10 +00:00
leo
719f88af51 Added MSAA option to Preferences Dialog. 2012-07-11 23:00:10 +00:00
leo
2e73fdfe71 Linux fixes. 2012-07-06 01:18:55 +00:00
leo
1d72f82c9b Hardcoded number of planes in frustum intersection code to 6. 2012-07-03 22:56:05 +00:00
leo
05139f377b Fixed bug importing old project files. 2012-07-01 23:38:53 +00:00
leo
7c6242bd27 Removed old functions. 2012-06-29 23:50:29 +00:00
leo
263753d726 Linux fixes. 2012-06-21 22:03:30 +00:00
leo
8c04f52e14 Code cleanup. 2012-06-21 00:41:53 +00:00
leo
a42fe600ca Removed some old vector code. 2012-06-16 00:17:52 +00:00
leo
84cdf1a030 Replaced matrix inverses with faster ones. 2012-06-13 02:41:16 +00:00
leo
0596ad829f Removed old matrix class functions. 2012-06-07 00:08:59 +00:00
leo
1f89baeb8a Matrix cleanup. 2012-06-06 22:34:38 +00:00
leo
e9615a24e7 Store the view matrix for each camera. 2012-05-28 23:33:22 +00:00
leo
8cd715b528 Minifig Wizard math cleanup. 2012-05-19 01:13:05 +00:00
leo
bbf1469cb5 Store the current transformation matrix for each piece. 2012-05-17 21:52:20 +00:00
leo
cedfb6af8f Sort translucent pieces by distance when rendering. 2012-05-16 23:48:16 +00:00
leo
7390c65790 Updated code to new colors. 2012-04-21 01:30:02 +00:00
leo
8dda20d4ee Removed old color code. 2012-04-20 23:27:12 +00:00
leo
b75053750d Removed old color names. 2012-04-19 01:11:24 +00:00
leo
392f399b89 Switched rendering to new color format. 2012-04-18 00:03:28 +00:00
leo
942ccc6d0d Updated old code to use mesh class. 2012-04-14 17:05:55 +00:00
leo
79ccca4296 Updated functions to use the new mesh class. 2012-04-14 02:20:27 +00:00
leo
aa401846b6 Added new mesh class. 2012-04-13 23:41:58 +00:00
leo
64361beeac Merged changes from 0.76.2 tag. 2012-04-11 04:58:40 +00:00
leo
db66c98821 Moved external font file to code. 2012-04-02 05:52:22 +00:00
leo
3e5a0a447d Replaced old Vector class. 2012-03-29 01:10:55 +00:00
leo
c8cb684299 Keep LDraw color codes. 2012-03-28 01:07:18 +00:00
leo
296300a9e1 Updated color functions for selected and focused objects. 2012-03-25 00:47:53 +00:00