74 Commits

Author SHA1 Message Date
pharan
1c5866a3a7 [unity] Fix disabling preprocessor defines. 2017-02-27 18:09:32 +08:00
pharan
da5849d1b9 [unity] Fix clearing invalid SkeletonRenderer and SkeletonAnimation. 2017-01-04 00:58:03 +08:00
John
d2eebdf81f [unity] Fix case where only materials changed. 2016-12-15 05:52:51 +08:00
pharan
612ed2e3ae [unity] Fix ignored slot separators. Some optimizations. 2016-11-30 14:07:28 +08:00
NathanSweet
36000e3c55 Updated to v3.5 (merge dev branch).
# Conflicts:
#	spine-c/src/spine/AnimationState.c
2016-11-15 23:10:23 +01:00
NathanSweet
c0fdc454a2 Fixed inconsistent newlines.
License header was followed by \n\n and files ended with \n. Changed to \r\n.
2016-10-15 23:45:16 +02:00
badlogic
5aa27771c3 [runtimes] Updated ALL sources to use latest Spine Runtimes License v2.5. Manually checked all the things... 2016-10-13 15:12:05 +02:00
John
9da5512b78 [unity] Fixed renderer submesh cache. 2016-09-19 18:53:39 +08:00
pharan
e23bec8ddb [unity] Unified interfaces for Skeleton instance components. Used by SpineAttributeDrawers. 2016-07-27 05:40:33 +08:00
John
77c4cdc1e4 [unity] SkeletonRenderer Update (Tangents, MeshGeneration) (#646) 2016-07-21 22:23:21 +08:00
John
2fdd820da0 [spine-unity] SkeletonRenderer fix null 1st material. 2016-07-11 09:53:30 +08:00
John
1c19365325 [csharp][monogame][unity][xna] Updated to 3.3.x (#623)
* [spine-csharp] Ported 3.3 changes of Animation and inner classes. Added MathUtils.Clamp

* [spine-csharp] Ported 3.3 changes of AnimationStateData. Updated .gitignore to exclude .meta files from spine-csharp

* [spine-csharp] Ported 3.3 changes of Bone

* [spine-csharp] Ported 3.3 changes of BoneData

* [spine-csharp] Ported 3.3 changes of Event

* [spine-csharp] Ported 3.3 changes to IKConstraint. Also got rid of the hideous labeled break. Replaced with while and sprinkled continues and break :D

* [spine-csharp] Mario is not good with labeled breaks. Fixed with goto

* [spine-csharp] Ported more 3.3 changes, only SkeletonJson and SkeletonBinary left. Unity runtime also needs updating with new changes

* [spine-csharp] fixed compilation errors initially not reported by Mono CS

* Minor clean up.

Every space has its place.™

* Match csharp 3.3 refactorings.

* [Unity] Minor cleanup in SkeletonBaker.

* Better exception messages.

* Removed extra usings. Matched whitespace style.

* Fixed Bone.cs method PascalCase and xml documentation.

* Fixed Exception ctor arguments.

* Fixed single bone IK mixing.

Matched libgdx commit:
e0ee18a088

* [spine-csharp] Port of 3.3 changes to SkeletonJson, incomplete

* [Unity] Ragdoll: account for shear and new constraints.

* [spine-csharp] Ported 3.3 changes to SkeletonJson

* [spine-csharp] Ported 3.3 changes to SkeletonBinary. Time for testing and debugging

* [spine-csharp] Fixed up XNA runtime

* Added simple example data in new exports/ folder

* [spine-csharp] Fixed bug in Slot construtor, wasn't assigning index. Fixed bug in CurveTimeline, argument guard was wrong. Fixed bugs in SkeletonJson, indexing to get duration of a timeline was wrong. Added simple example to spine-xna for easier debugging

* [spine-csharp] Fixed porting bug in ColorTimeline#apply, indexing was wrong

* [spine-csharp] Fixed SkeletonJson#ReadVertices, calling resize on temp lists was wrong. Updated goblin sample in spine-xna, fixed mesh attachment rendering in spine-xna.

* [spine-xna] Added binary exports, modified XNA game

* [spine-xna] Added tank example

* Some cleanup. Relabeled generic todos.

* Prevent SpineEditorUtilities from orphaning failed instantiations.

* Ignore PathAttachment when checking for required atlas regions.

* [spine-csharp] the great spaces to tabs battle

* [spine-csharp] Fixed inherit deform.

* [spine-csharp] Match Skeleton.java properties and stuff.

* [spine-csharp] Fixed enums, all upper cased now, using Enum.ParseType in case-insensitive mode

* [csharp] Ported 206e7f983c4df4d27fee6cac05d152eb2295c8b0 to csharp runtime. Fixes attachment keys on different tracks

* [csharp] Updated README.md

* [xna] [monogame] [unity] Updated README.md

* Revert "[csharp] Ported 206e7f983c4df4d27fee6cac05d152eb2295c8b0 to csharp runtime. Fixes attachment keys on different tracks"

This reverts commit 175216868dd00b4ae31cc717022242308c150f6a.

* [csharp] Fix to AttachmentTimeline#apply, fix for the fix for the fix for the revert for the fix

* [csharp] Matched and fixed more comments, summaries, exception messages and formatting.

* [csharp] Fix deformed weighted vertices condition + match libgdx closer.

* [csharp] Use internal ExposedList array for critical methods.

* [csharp] SkeletonJson and SkeletonBinary minor formatting and fixes.

* [unity] Match changes and fixes in spine-csharp 3.3 + better editor messages.

* [unity] Updated sample scenes and files.

* [csharp] Some formatting got left behind.

* [unity] New readme links + Removed redundant info.

* [exports] Remove dummy project.
2016-06-30 04:29:33 +08:00
John
5cceb22406 [unity/tk2d] Update editor code. Some cleanup and fixes. (#608)
* Initial cleanup and review.

* More cleanup and review.

* Removed missing atlas warnings for TK2D. Better button labels. Separated specialized/utility shaders.

* Clearer wording. More checks.

* Fix for Inspector reflowing between GUI events.

* Basic TK2D warning message.

* Fix play buttons. Removed useless reimport button for TK2D. Minor fixes.
2016-06-10 16:40:10 +08:00
John
f695cf19c2 [Unity] Fixed no renderables causing errors. 2016-05-09 03:18:07 +08:00
pharan
1589d147f9 Per-MeshRenderer Custom Material Override 2016-03-25 02:43:44 +08:00
pharan
cc95db8e6c All scripts now in Spine.Unity and Spine.Unity.Modules namespace 2016-03-24 01:53:22 +08:00
pharan
c0eb1a5237 SkeletonRenderer update. 2016-03-24 00:37:52 +08:00
pharan
aea0c1a923 HelpURL for main Component types. 2016-03-24 00:37:06 +08:00
pharan
80d8e9e276 Cleanup and improved inspector workflow. 2016-03-20 00:49:13 +08:00
pharan
50a0960a7d Arrays Mesh Generators now share code. 2016-03-16 22:22:24 +08:00
pharan
8e8b5e3904 Multiple submeshes per part. 2016-03-16 02:47:22 +08:00
pharan
0687826542 SpineRenderSeparator 2016-03-08 12:00:19 +08:00
John
5538c0adde Cleanup SkeletonRenderer.cs
Cleaned up the SkeletonRenderer code. Clearly outlines mesh generation steps. Abstracted double-buffering and paired meshes with the information used to generate them (for easy checking) See "SmartMesh" and "Instruction" classes. Fixed some long-standing bugs and removed unnecessary normals, tangents and flips updates. Renamed old variables to reflect new logic.

Also marked spots where triangle winding was considered (frontFacing and flip). This is a candidate for removal.
2016-03-08 07:13:21 +08:00
pharan
a964ea71a6 Fixed v3 FrontFacing. Cleaned up comments. 2016-03-07 04:12:33 +08:00
pharan
19ff671add SkeletonRenderer optional custom material per slot. 2016-03-04 03:05:11 +08:00
pharan
4ebb6b404c Missing Spine.Unity namespace 2016-02-18 10:08:35 +08:00
pharan
be38f3e1d3 SkeletonRenderer.Reset is now Initialize(bool overwrite). SkeletonGraphic. New sample scenes updated for Spine v3. Mesh Generation. Rearranged folders. Many small fixes. 2016-02-15 11:05:09 +08:00
NathanSweet
4283d6fce3 Updated spine-unity for Spine v3.
@Fenrisul she's ready for your magic! :D See diff and/or `// MITCH` comments.
@pharan
2016-02-14 23:20:36 +01:00
pharan
6de6a4712d [Unity] Internal check enforces RequireComponent better. 2016-01-26 07:41:49 +08:00
pharan
324cbc89cc [Unity] Some cleanup to runtime instantiation. 2016-01-26 07:39:39 +08:00
pharan
6e6e5a9438 [Unity] SkeletonAnimation.AddToGameObject() method for instantiation at runtime. 2016-01-26 07:29:40 +08:00
pharan
bfb58cbb19 [Unity] Some ExposedList use optimization within loops. 2016-01-02 17:50:49 +08:00
John
205e0dc5ad [Unity] Fix material array incorrect persistence
This fixes a separate flickering bug.
Reported in the forum here: http://esotericsoftware.com/forum/Weird-flicker-between-some-of-the-animations-5577
The solution was to compare `this.sharedMaterials` against the immediately-determined material array.

Also included:
Moved attachment and flip array checks outside of extra loops in CheckIfMustUpdateMeshStructure to prevent O(2n) behavior.
Renamed some identifiers. "temp" is replaced with "working". The analogy is human brain's "working memory".
Added some cached references within the method's stack (where their members are frequently accessed).
Added comments for easy update, in preparation for incoming changes in Spine v3.
2015-12-23 03:31:56 +08:00
John
6778a039c6 Flickering fix
Force it to update both meshes when new triangles need to be pushed.
http://esotericsoftware.com/forum/Flickering-and-a-solution-for-it-5299
2015-12-19 20:02:10 +08:00
Serhii Yolkin
3218c78239 compare references to attachments instead of comparing attachment properties 2015-11-21 18:08:17 +01:00
Serhii Yolkin
8ebf27de24 some refactoring 2015-11-21 17:56:14 +01:00
NathanSweet
91340709d4 Source formatting.
So fresh and so clean!
2015-08-03 15:06:20 +02:00
NathanSweet
9478db3d2d Fixed bounds when there are no attachments to render. 2015-08-03 14:15:14 +02:00
NathanSweet
2d70e2b05b Fixed zSpacing. 2015-08-03 05:56:44 +02:00
NathanSweet
e20a47e8f3 Fixed errors when there are no attachments to render. Added micro optimizations. 2015-08-03 03:57:42 +02:00
ZimM
83624a2259 fixed warning 2015-06-29 21:02:29 +02:00
ZimM
7414476841 fix SubmeshRenderer 2015-06-29 19:24:07 +02:00
ZimM
4057316a91 Merge remote-tracking branch 'remotes/upstream/master' into optimizations 2015-06-29 19:07:39 +02:00
ZimM
292f8a6404 fixed SkeletonUtilitySubmeshRenderer 2015-05-20 03:11:45 +03:00
ZimM
dcab4d975b fixed frontFacing stuff 2015-05-20 02:45:15 +03:00
NathanSweet
27270a5781 Spine Runtimes license update.
Minor update to fix "SOFTARE" typo and clairfy how to get permission.
2015-04-24 21:33:24 +02:00
NathanSweet
f8a76c6455 Blend modes for all runtimes. 2015-04-02 14:20:20 +02:00
NathanSweet
f9e0e103b8 Fixed warnings. 2015-03-29 00:48:18 +01:00
Fenrisul
1f0a23a9aa Temporary patch job for SkeletonUtilitySubmeshRenderer 2015-03-16 18:03:06 -07:00
Fenrisul
34b08bceec Added TK2D support to main spine-unity runtime with compiler directive.
spine-tk2d now obsolete
Added PreferenceItem GUI to SpineEditorUtilities (Default Mix and TK2D)
2015-03-15 10:59:30 -07:00