4170 Commits

Author SHA1 Message Date
Nehon
124b5e51da Fix an issue in the ShaderGenerator where it was unable to find the main function in a shader source when there were additional spaces.
Also made the error more explicit when the matching fail.
2014-08-28 10:52:35 +02:00
Nehon
d33853d393 MaterialDebugAppState now properly applies renderStates
Added a set method in RenderState
2014-08-27 20:15:35 +02:00
normen
d921847f35 Merge pull request #169 from GreenCubes/master
Fix and extend FBX file loader
2014-08-18 09:55:03 +02:00
Rena4ka
f28c31d851 Fix and extend FBX file loader
Fix using AssetManager.loadModel() with fbx file causing to throw
AssetLoadException.
Implemented loading of new file format .fba - .fbx file with animation
mapping.
2014-08-18 06:19:28 +04:00
normen
fb40a14de2 Merge pull request #167 from GreenCubes/master
Implemented FBX model loader
2014-08-17 11:32:27 +02:00
normen
656886867d Merge pull request #165 from davidB/wip_jbullet_update
jbullet: refactor PhysiscSpace.addAll/removeAll
2014-08-17 11:27:38 +02:00
tort32
e5002c1428 Implemented FBX file loader 2014-08-16 05:35:02 +04:00
Rena4ka
478ca7b843 Implemented FBX file parsing 2014-08-16 05:35:01 +04:00
David Bernard
3c72c065ad bullet: refactor PhysiscSpace.addAll/removeAll
- only add joint with current PhysicNode is BodyA
  - => avoid logging warning
  - => fix a previous bug in test about getBodyA when adding/removing BodyB
- remove optimisation that by-pass routing made by add()/remove()
2014-08-15 13:42:26 +02:00
Nehon
b7433b99f7 Fixed issue in SkeletonControl applySkinningTangents where weight data index was not converted to unsigned byte. 2014-08-14 15:14:43 +02:00
Rémy Bouquet
37b6a2063a Merge pull request #156 from ChristianGaertner/patch-1
[Bounding] Minor JavaDoc fix
2014-08-14 10:11:31 +02:00
pspeed42
2d549ea833 Modified to keep its projectionMatrixOverride around
to avoid garbage creation in setClipPlane().
2014-08-12 17:56:56 -04:00
Nehon
ca6d3f4e73 Commented out a line in the OglesShaderRenderer (android) that was occasionally causing a crash on android.
This line was already commented in other renderers, and I have to admit I have no clue of what it does except crashing the app
2014-08-12 23:05:24 +02:00
pspeed42
ed443bcfa2 Modified Camera.setClipPlane() to avoid garbage
creation using tempvars.  Only a new matrix is 
created now and I think I can get rid of that, too.
2014-08-12 16:32:18 -04:00
pspeed42
e0ee685466 Added a second vect4f to tempvars so renamed the
first one to follow other conventions.  Seems like
Material is the only thing using it (and I think it
could get away with a vec3 really but no harm done).
2014-08-12 16:31:06 -04:00
pspeed42
079c4c6482 Only allocate the array list when there are results.
A small thing... but significant in some use-cases.
2014-08-12 04:38:03 -04:00
pspeed42
a47fb27e56 WaterUtils tries to hard to avoid allocation... I
fixed three cases that were causing new Vector3fs
to be created.
2014-08-12 04:06:07 -04:00
pspeed42
c98a348fd2 Was a little overzealous in my Float conversion and
converted some stuff that only needs to be float.
Undid that.
2014-08-12 03:54:48 -04:00
pspeed42
3cf0e35a17 Added a setFloat() that takes a Float to avoid
auto-boxing in the case where a Float is already
at hand.
2014-08-12 03:54:19 -04:00
pspeed42
1185d2099b Avoid some teeny-tiny per frame allocations by
only creating a new Plane() and setting the water
height uniform when the water height changes.
Also got rid of the redundant dot() product and
Vector3f allocation in the process.
2014-08-12 03:13:16 -04:00
pspeed42
c0465b73a8 Added a newFrame() method to UniformBindingManager
to signal the beginning of a frame.  Currently this
just grabs the time and tpf values once so as to avoid
per-material Float allocation and time drift within a
frame.
RenderManager now calls this at the beginning of the
root-level render() method.
2014-08-12 03:11:43 -04:00
pspeed42
852ae28605 Removed the redundant camera.update() calls.
Switched many of the lists to SafeArrayList to avoid
per frame iterator allocations.
2014-08-12 02:52:55 -04:00
pspeed42
5d6d2b9bd7 Commented out the onFrameChange() in update() because
its redundant.
Modified setGuiBounding to call the new setCenter(x,y,z)
method instead of allocating a Vector3f each time. (This
method is called any time someone sneezes.)
Fixed a missing line feed in a javadoc comment.
2014-08-12 02:50:08 -04:00
pspeed42
efd6f0bf66 Avoid per-render iterator allocations by using the
SafeArrayList.getArray() method.
2014-08-12 02:48:06 -04:00
pspeed42
6625e572f5 Keep the scene and processor lists as SafeArrayList
for faster/cleaner iteration.
2014-08-12 02:47:34 -04:00
pspeed42
34b4eebb81 Avoid allocation of a temporary float[] array
and avoid allocation of a needless Vector3f array.
2014-08-12 02:46:42 -04:00
pspeed42
28adc784a9 Allow the center to be set without creating a
new Vector3f first.
2014-08-12 02:46:11 -04:00
pspeed42
97b8cb7435 Let triangle intersections fall right on the edge
the diagonal.
2014-08-12 02:45:36 -04:00
Julien Gouesse
2bca84a43d Ports all changes done on the official renderer during several months to the JOGL renderer (I thank a lot the lazy developers) 2014-08-10 18:27:47 +02:00
Julien Gouesse
44f7e8bb84 Updates JOGL (2.2.0) 2014-08-10 15:30:01 +02:00
David Bernard
42ae669c6d jbullet: refactor PhysiscSpace.addAll/removeAll
- only add joint with current PhysicNode is BodyA
  => avoid logging warning
  => fix a previous bug in test about getBodyA when adding/removing BodyB
- remove optimisation that by-pass routing made by add()/remove()
2014-08-07 23:03:34 +02:00
pspeed42
1b0f6d0f59 Fix for proper collision distance based on
precedent.  "I had one job..."
2014-07-27 21:47:55 -04:00
pspeed42
0633c0c5bc Fixed an accidental sharing of temp vars vects
that turned out to matter.
2014-07-27 18:31:44 -04:00
pspeed42
d5e20d53d0 Implemented accurate bounding sphere to triangle
collision.  The old code had an implementation but
it missed tons of cases.

For 100,000 random points, the old way would process
that in about 12+ ms.  The new way does it in about
18+ ms... but the old way missed 643 collisions
(180 versus 823).

Plus, with the new way accurate contact normal and
contact point can be provided trivially... so it is.
2014-07-27 18:11:43 -04:00
pspeed42
1ad6a57b32 Added a version of createFloatBuffer that takes
a ColoRGBA array.
2014-07-27 18:08:28 -04:00
Rémy Bouquet
628f73cb79 Merge pull request #158 from Perjin/colorRGBA-bugfix
Fixed clamp method in ColorRGBA.
thanks to Perjin
2014-07-19 07:17:54 +02:00
Jan Ivenz
dacaaa5477 Fixed clamp method in ColorRGBA. 2014-07-18 18:31:40 +02:00
pspeed42
e76e770d17 Modified the multi-slot buffer support to work even
if the buffer is not instanced.  Saw no real reason
not to and it makes buffer support more flexible.
2014-07-11 01:38:14 -04:00
pspeed42
216f874175 Added support for instancing at the mesh level.
(so far only for lwjgl because I'm lazy)
Went ahead and added in divisor support while I was
at it because it doesn't cost anything and there might
be use-cases for it.
Mesh now knows about instances and you can directly
ask it for an instance count.  I haven't added support
for proper bounding box calculation but it should
at least be possible now.
2014-07-11 01:14:47 -04:00
pspeed42
7ca599dfd9 More tabs to spaces. 2014-07-11 00:03:04 -04:00
pspeed42
61cbf16ebc Fixed the duplicate definition errors in normal.vert
...I left them commented out for reference and because
maybe this needs some rethinking.
2014-07-10 03:57:00 -04:00
pspeed42
cce7b0f6de More tab eradication. 2014-07-10 02:49:21 -04:00
pspeed42
9b8b730c44 Added a license header. 2014-07-10 01:55:29 -04:00
Paul Speed
1a4f07b36a Fixing tabs to spaces. 2014-07-10 01:38:19 -04:00
neph1
8700871e76 Fixed some merge issues (now it's working properly)
Added test case for IK
2014-07-04 17:59:09 +02:00
Nehon
1b7421a153 Used correct colorSpace in android Image loaders 2014-07-02 20:55:02 +02:00
Christian Gärtner
33c9e6041b [Bounding] Minor JavaDoc fix 2014-07-01 17:53:46 +02:00
Nehon
7356b727c3 Instancing now works with Lighting material, and shadows are supported with instanced geometries 2014-06-29 18:41:32 +02:00
Nehon
a11bfa5e63 Fixed a bug where grouped geom were rendered in shadow pre-pass because they were still in the shadow cast queue 2014-06-29 18:40:31 +02:00
shadowislord
fa41da59a4 * Fix outstanding cloning related issues in InstancedNode
* Throw exception if the geometry's material does not support instancing
 * Test the cloning function in TestInstanceNode
2014-06-28 20:52:30 -04:00