aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* j3dcore: declare some local varaibles next to where they are usedHarvey Harrison2013-07-011-29/+19
| | | | | | | The compiler noticed the null check was always true at this point as nothing had written to currTree. Declare it next to its only use making the code more obvious. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate the changeViewList in SetLiveStateHarvey Harrison2013-07-014-7/+7
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate the changeViewGroup list in SetLiveStateHarvey Harrison2013-07-014-9/+9
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove some redundant casts to HashKeyHarvey Harrison2013-07-011-8/+8
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate the scoped nodes list in SetLiveStateHarvey Harrison2013-07-016-36/+28
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate some variables in the insertNodes/removeNodes message handlersHarvey Harrison2013-07-013-18/+16
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate lots of lists of Views used by ViewSpecificGroups, and ↵Harvey Harrison2013-07-016-53/+48
| | | | | | setLiveState Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: clean up some temp variable types in ViewSpecificGroupRetainedHarvey Harrison2013-07-011-21/+18
| | | | | | The local var vl is initialized on all paths, pull that to the front of the method. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: unconditionally resize the offscreen layer if required when setting ↵Harvey Harrison2013-06-302-1/+1
| | | | | | | | | the Viewport This ensures that the offscreen layer is appropriately sized even on the initial display, some users reported incorrect canvas size until something caused the layout to change. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: use the new Utils helpers to remove the last dependency on the ↵Harvey Harrison2013-06-285-25/+15
| | | | | | Distance class Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: convert GeometricTools Ray-segment distance code to Java3d/vecmath ↵Harvey Harrison2013-06-281-160/+210
| | | | | | types Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: check in a snapshot of the GeometricTools ray to segment distance ↵Harvey Harrison2013-06-281-0/+175
| | | | | | | | function - adapted from code under the Boost 1.0 license, here distributed as GPLv2 + classpath Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: convert GeometricTools Segment-segment distance code to ↵Harvey Harrison2013-06-281-327/+407
| | | | | | Java3d/vecmath types Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: check in a snapshot of the GeometricTools segment to segment ↵Harvey Harrison2013-06-281-0/+342
| | | | | | | | distance function - adapted from code under the Boost 1.0 license, here distributed as GPLv2 + classpath Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: replace Distance with core utility classHarvey Harrison2013-06-156-46/+123
| | | | | | | | Replace the use of the j3dutils Distance class that is under a different license by reimplementing some mathematical distance calculations in a Utils class. This is new code and not based on the j3dutils version. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: trivial generic annotation in RenderBinHarvey Harrison2013-06-151-4/+4
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate two locked geometry lists in RenderBinHarvey Harrison2013-06-151-33/+30
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove last use of the BufferWrapper classes from the coreHarvey Harrison2013-06-157-44/+21
| | | | | | | | Directly hold read-only views of the nio buffers, this likely fixes the vertex data held in an nio buffer for the JOGL backend as the Object[] parameter hid the change from float[] to FloatBuffer that occured at some point in history. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: use a trivial little struct instead of FastVectorHarvey Harrison2013-06-151-13/+30
| | | | | | | Pull out a struct to hold an int[] array and a count, remove the numContours variable that was redundant. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: add type information to userlist in ImageComponentRetainedHarvey Harrison2013-04-191-26/+21
| | | | | | | | - no need to synchronize on userlist, all access methods are already synchronized - add an early return to unindent a bunch of code - impossible to get a BackGroundRetained here, kill that else branch Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove a leftover assert, it is now OK for offscreen canvas3d ↵Harvey Harrison2013-04-181-2/+1
| | | | | | | | objects to be doublebuffered In fact, this is a must for certain OSX machines. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: fix permissions on a file that had the executable bit setHarvey Harrison2013-04-081-0/+0
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: use nio buffers directly for vertex normalsHarvey Harrison2013-03-175-15/+15
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: use nio buffers directly for interleaved vertex dataHarvey Harrison2013-03-175-16/+18
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: use nio buffers directly for colors, remove use of BufferWrappersHarvey Harrison2013-03-175-18/+18
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: convert trivial uses of BufferWrapper to use the readOnly nio ↵Harvey Harrison2013-03-173-21/+19
| | | | | | buffers instead Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: directly use nio buffers internally in GeometryArrayRetainedHarvey Harrison2013-03-175-22/+28
| | | | | | Remove the use of FloatBufferWrapper, DoubleBufferWrapper. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: explicitly store the readonlyBuffer copy in preparation to remove ↵Harvey Harrison2013-03-161-0/+13
| | | | | | BufferWrapper Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: add imports for java.nio in J3DBufferHarvey Harrison2013-03-031-33/+40
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: move to use an Enum for valid buffer types in J3DBufferHarvey Harrison2013-03-032-50/+47
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove test for direct nio buffers, they are standard functionalityHarvey Harrison2013-02-281-15/+0
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: change Object[] to J3DBuffer[] as we know this is the actual typeHarvey Harrison2013-02-283-18/+12
| | | | | | remove some unused variables while we're here. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove some unused vars and unneeded castsHarvey Harrison2013-02-281-6/+2
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove leftover from when OffscreenLayer was added to Canvas3dHarvey Harrison2013-02-281-1/+0
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate getAllScopes method for FogRetained to return ↵Harvey Harrison2013-02-233-23/+20
| | | | | | Enumeration<Group> Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove unused local variables and unneeded casts in FogRetainedHarvey Harrison2013-02-231-15/+3
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate getScopes methods to return Enumeration<Group>Harvey Harrison2013-02-232-23/+23
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove some unused local variables in LightRetainedHarvey Harrison2013-02-231-7/+1
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: annotate list of LightRetainedHarvey Harrison2013-02-231-6/+6
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: add a hash mixing helper for the Java3D way of mixing double valuesHarvey Harrison2013-02-235-27/+63
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: small list annotation for offscreen messagesHarvey Harrison2013-02-191-4/+3
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove a null check, canvas cannot be null hereHarvey Harrison2013-02-181-3/+1
| | | | | | We would have NullPointerExceptioned already Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: make setting boolean properties less chattyHarvey Harrison2013-02-181-1/+2
| | | | | | Onyly write a message to stderr if debug is set. Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: remove some commented out and superceded code in JoglPipelineHarvey Harrison2013-02-181-108/+0
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: restore the explicit profile for each GL constantHarvey Harrison2013-02-181-32/+18
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: changes from August LammersdorfAugust Lammersdorf2013-02-182-268/+782
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Quoting August: 1. Mac OS X 10.7+ / Oracle JRE 7+ - new Pipeline method 'resizeOffscreenLayerSurface' - Renderer detects Canvas3D's size changes and performs offscreen layer resizing - Still required : fix of Mac/Oracle JRE/JOGL's x/y-positioning and z-ordering issues (see post above) - classes: Canvas3D, JoglPipeline, NoopPipeline, Pipeline, Renderer 2. Offscreen rendering - deprecated pbuffer replaced with framebuffer object - based on JOGL's FBO implementation GLFBODrawable and FBObject - pbuffer is still available if FBO isn't supported or not desired - double buffering and scene antialiasing support if requested and available - currently fixed number of samples: 4 - classes: Canvas3D, JoglPipeline, Renderer 3. Best configuration - Java 3D compliant GLCapabilitiesChooser introduced : J3DCapsChooser - Workaround if capability chooser isn't called (Mac/JRE 7) - class: JoglPipeline Signed-off-by: August Lammersdorf <[email protected]> Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: add new Pipeline method resizeOffscreenLayerHarvey Harrison2013-02-174-23/+23
| | | | Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: add members and helpers for future FBOlayer workHarvey Harrison2013-02-172-9/+55
| | | | | | | | Extracted from a patch by August Lammersdorf. [HSH - any mistakes here are mine] Signed-off-by: August Lammersdorf <[email protected]> Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: make the antialiasing flag private to Canvas3dHarvey Harrison2013-02-162-5/+11
| | | | | | | Includes fix for resetting the antiAliasing flag from a patch by August Lammersdorf. Signed-off-by: August Lammersdorf <[email protected]> Signed-off-by: Harvey Harrison <[email protected]>
* j3dcore: fix generation of texture idsAugust Lammersdorf2013-02-169-93/+29
| | | | | | | | | | - internal texture object name generation replaced with OpenGL 'glGenTextures' - avoids conflict with JOGL's texture object names - new Pipeline method 'generateTexID' implemented [HSH - remove now unused freelist management in MasterControl] Signed-off-by: August Lammersdorf <[email protected]> Signed-off-by: Harvey Harrison <[email protected]>