559 Commits

Author SHA1 Message Date
bkuker
fe61fc4b7d Improved Transition & Cone Rendering
Smooth normals better.
Take better care of the tip normals.

Use TransitionRenderer for cones too

Use higher LOD near tip of cones

Reduce the LOD smartly in a couple places
2013-03-17 10:18:36 -04:00
bkuker
9a8b4852a3 Draw inside & outside correctly in figure mode
Make the inside a little brighter
2013-03-17 10:18:30 -04:00
bkuker
dd730a5ed9 Give the rear end of the motors a little shape 2013-03-17 10:18:27 -04:00
bkuker
befd3bfb96 Re-introduce display lists.
I should really just push everything into a single one, but I would
have to re-factor to pre-load all the textures, not load them while
rendering.
This isn't Doom III :)
2013-03-17 10:18:27 -04:00
bkuker
9eaca6c30c Improved Mass Object rendering 2013-03-17 10:18:26 -04:00
bkuker
145fe35393 Transition shoulder thickness & factor out tube rendering. 2013-03-17 10:18:25 -04:00
bkuker
a05e60b78c Add cross-sectional shape to fins
Move fin rendering into separate class

Add cross product to Coordinate class

Honor cross section setting
Make the bevel on the edge a set percentage of the fin length, not a set
value.

Some pretty subtle differences between rounded and airfoil, and a
smooth edge on elipsoidal fins.

base rounded fin inset on shorter of length or height so high aspect
ratio fins, like the little red guys on Apocalypse, do not mis-render
2013-03-17 10:18:24 -04:00
bkuker
b2320cf8e7 Clean out some commented cruft 2013-03-17 10:18:23 -04:00
bkuker
554e4129e9 Fix the normals on the insides of tubes, lugs & rings. 2013-03-17 10:18:22 -04:00
bkuker
958e098884 Remove backface material & property settings 2013-03-17 10:18:21 -04:00
bkuker
cc8db8cc96 Fix alpha issues
Fix selection bug
2013-03-17 10:18:17 -04:00
bkuker
701aa4b151 Add thickness to a few components.
Add an ALL surface
2013-03-17 10:08:50 -04:00
bkuker
8b633bcd95 Refactor rendering a little, separating inside, outside and edge surfaces
push geometry into a sub-package

Remove display lists

Force all calls to render geometry through a callback object

Switch to a design where I get individual Geometry callbacks. Easier to
deal with
2013-03-17 10:07:55 -04:00
kruland2607
4ff2eb11ec Removed ExampleDesignDialog which was replaced by the Open Example
cascading menu.
2013-03-01 10:56:08 -06:00
kruland2607
31d6baffd4 Back out directory watcher code since we aren't using it yet. 2013-02-13 10:21:14 -06:00
kruland2607
fe3fe370fe Implement custom legend on the SimulationPlot which only displays a
single entry for each type of series.  It no longer distinguishes among
the various stages.
2013-02-12 13:54:50 -06:00
kruland2607
eef2cbb5fa Added comments to createXYLineChart arguments. 2013-02-06 20:19:45 -06:00
kruland2607
a4efe4f3b9 Show data from the primary flight data branch in each of the stages
prior to stage separation.
2013-02-05 15:20:56 -06:00
kruland2607
86cda58483 Part of previous commit changing file format for ignition configuration. 2013-02-05 15:13:37 -06:00
kruland2607
055daf6786 Change ork format for ignition and motor configurations. Make them
different xml elements preparing for an alternative api allowing them to
be more independent.
2013-02-05 14:26:41 -06:00
kruland2607
b16917995d Change mouse button handling in simulation plot. Left click drag zooms
area, and ctrl left click drag pans.
2013-02-05 10:04:49 -06:00
kruland2607
06e702839f Implement clamping in while panning. Don't allow panning past the min
or max.
2013-02-04 14:41:02 -06:00
kruland2607
d9c0f68e64 Remove a bunch of commented out code. 2013-02-04 14:37:18 -06:00
kruland2607
cec784d77e Update ResourceDecalImage to match new DecalImage interface. 2013-02-03 20:23:24 -06:00
kruland2607
4cdf03075b Make DecalImage no longer inherit from Attachment. It seems less
confusing since a DecalImage cannot be used in place of Attachments in
general.  Made Attachment a concrete class.
2013-02-03 20:19:03 -06:00
bkuker
fd5d86744f Minor cleanup 2013-01-27 10:17:07 -05:00
bkuker
9ae80e5a84 Merge remote-tracking branch 'plaa/kruland-integration' into
kruland-integration-defaults

Conflicts:
	core/src/net/sf/openrocket/gui/scalefigure/RocketPanel.java
2013-01-26 10:37:11 -05:00
kruland2607
6f0cf6826a Added edit decal with file change notifications. Added super simple
WatchService which integrates better with our code by activly making the
callbacks.
2013-01-18 09:34:53 -06:00
bkuker
ae191c1c49 Add default appearance checkbox text the right way.
(So clicking the text toggles the checkbox)
2013-01-11 19:31:07 -05:00
bkuker
5436cd1560 Put Motor Appearances into the DefaultAppearance class.
DefaultAppearance is quite disorganized at the moment, but this at least
hides it all in one place
2013-01-11 19:15:14 -05:00
bkuker
fe3d66cef1 Provide a toString for the resource decals. 2013-01-11 13:03:36 -05:00
bkuker
115e0b143a Add compareTo to ResourceDecalImage after merge with k-integration 2013-01-11 10:16:56 -05:00
bkuker
9ea9ed2d82 Merge remote-tracking branch 'plaa/kruland-integration' into kruland-integration-defaults 2013-01-11 10:14:27 -05:00
kruland2607
593c639a06 Rework attachment loading. Construct a DocumentLoadingContext in
GenericLoader and pass into both OpenRocketLoader and RocksimLoader. 
the DocumentLoadingContext contains the OpenRocketDocument, MotorFinder,
and AttachmentFactory.
2013-01-10 21:11:57 -06:00
bkuker
05263e5056 An ok reusable motor appearance 2013-01-10 20:03:31 -05:00
bkuker
c1c4f99992 Trying out an "Unfinished" view... Jury is out 2013-01-10 15:36:08 -05:00
bkuker
67c1a3c553 A new render mode. Can't access it from the UI, that dropdown is getting
kind of ugly.
2013-01-10 14:41:26 -05:00
bkuker
e192462201 MAke mass objects look like wadding 2013-01-10 14:34:09 -05:00
bkuker
03c9e24705 More appearances 2013-01-10 14:17:30 -05:00
bkuker
25a3fc1d05 Merge branch 'kruland-integration-motor' into
kruland-integration-defaults

Conflicts:
	core/src/net/sf/openrocket/appearance/defaults/ResourceDecalImage.java
	core/src/net/sf/openrocket/gui/figure3d/RealisticRenderer.java
2013-01-10 08:46:20 -05:00
kruland2607
48adc0b7bf Rework the AttachmentFactory and Attachments. Make the Attachment
implementations stand on their own and be able to determine the location
of their bytes without needing a reference back to the
AttachmentFactory.  This required changing the loading semantics so the
OpenRocketDocument is created prior to beginning to read the xml file. 
Added an OpenRocketDocumentFactory to facilitate construction of
OpenRocketDocument objects.
2013-01-09 21:28:53 -06:00
bkuker
28127b122d Simplify the default appearances. I am not ready to organize them into
classes or factories or what have you, yet.
2013-01-09 16:43:01 -05:00
bkuker
8dd0a6abc1 Initial tube & balsa default appearances 2013-01-09 14:42:38 -05:00
bkuker
88e87d5925 Re-add the default appearance checkbox, without the save default button. 2013-01-09 14:27:09 -05:00
bkuker
ceb7d16651 Render motors nicely 2013-01-09 14:11:23 -05:00
kruland2607
c59bdd31cd Push FileInfo construction down a level by having it constructed in the
GeneralRocketLoader instead of in the OpenFileWorker.  This required a
change in the constructor args to GeneralRocketLoader.
2013-01-09 10:43:56 -06:00
kruland2607
8ad89448df Checkpoint commit. Added AttachmentFactory interface and
BaseAttachmentFactory.  Reimplemented DecalRegistry to implement
AttachmentFactory and contain a delegate BaseAttachmentFactory.
2013-01-08 21:09:48 -06:00
bkuker
05ff94836f Fix width of the shine unit selector 2013-01-08 10:14:46 -05:00
bkuker
f6358ad2ba Simplify the RocketFigure3D updateFigure() method to take advantage of
JOGL's invoke & GLRunnable, rather than using flags, to simplify the
code.
2013-01-08 10:05:45 -05:00
Bill Kuker
fa58cb6338 Merge pull request #36 from bkuker/kruland-integration-stickers
Sticker decal mode & decal improvements
2013-01-08 06:46:10 -08:00