From: Kevin R. <kr...@su...> - 2013-04-05 01:58:14
|
Bill, One other thing, the new jogl seems to be a little different with the shine & color. Look at the apacolypse model. If I recall correctly, the bottom section (which is just a color), used to have the same color appearance as the decals. Now it appears much brighter. Kevin On 4/4/2013 10:22 AM, Kevin Ruland wrote: > Bill, > > I tracked this problem down a little bit. It seems in the > RocketFigre3d.setType, the first time it's executed (before showing any > 3d view), the canvas' _drawable is not realized. This causes the > canvas.invoke() to immediately return false and not execute the > GLRunnable. It then uses the default rr which is initialized to > FigureRenderer. > > I did this hackery, which is unsightly but works around the bug. I'll > commit it but please correct it. > > public void setType(final int t) { > if (!canvas.isRealized()) { > if (t == TYPE_FIGURE) { > rr = new FigureRenderer(); > } else if (t == TYPE_FINISHED) { > rr = new RealisticRenderer(document); > } else if (t == TYPE_UNFINISHED) { > rr = new UnfinishedRenderer(document); > } > } > canvas.invoke(true, new GLRunnable() { > @Override > public boolean run(GLAutoDrawable drawable) { > rr.dispose(drawable); > if (t == TYPE_FIGURE) { > rr = new FigureRenderer(); > } else if (t == TYPE_FINISHED) { > rr = new RealisticRenderer(document); > } else if (t == TYPE_UNFINISHED) { > rr = new UnfinishedRenderer(document); > } > rr.init(drawable); > return false; > } > }); > } > > > On 4/3/2013 8:14 PM, Kevin Ruland wrote: >> Bill, >> >> The merge of master to kruland-integration contained no "real code". It >> was a bunch of jars (jogl), the serialized data, thrustcurves, etc. >> However, it seemed to have introduced a weird bug in the 3d view. >> >> Open one of the samples, then go straight to "3D Finished" view. Notice >> how it is really "3d figure". Then flip the drop down to something >> else, then back to "3d finished" and now you see the finished image. >> >> Open another sample, and go to "3d Figure". It correctly shows the >> figure view. Then switch to "3d finished" and now the finished view >> renders correctly. >> >> Any ideas? >> >> Kevin >> >> >> ------------------------------------------------------------------------------ >> Minimize network downtime and maximize team effectiveness. >> Reduce network management and security costs.Learn how to hire >> the most talented Cisco Certified professionals. Visit the >> Employer Resources Portal >> http://www.cisco.com/web/learning/employer_resources/index.html >> _______________________________________________ >> Openrocket-devel mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/openrocket-devel >> >> > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Openrocket-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openrocket-devel > > |