gdkchan / spica Goto Github PK
View Code? Open in Web Editor NEWExperimental H3D tool
License: The Unlicense
Experimental H3D tool
License: The Unlicense
[nvm]
There is two more kind of animations in the motion file of PkmnModel
One is constant color, another is action calls
The type of constant color is 5, action is 7
What's more, according to my reverse engineering, in the keyframe parse part, axis type 2 means direct constant value 1, axis type 1 means direct constant value 0
https://mega.nz/#!YxpFxBBD!7T5B0kUTgJRWfhdfVIsQyuPj5ueT9KgrqKBCsmmHESM SPICA/Ohana both seem to export the UV maps for the eyes incorrectly, however EveryFileExplorer exports them just fine. Some of them look pretty broken in SPICA as well.
Attempting to import animations to 3DS Max - It all looks perfect in SPICA, but .DAE seems to have some very extreme scaling issues (link) and .SMD seems like it might have a similar issue, and/or possibly an offset in the bone IDs that's placing the transforms on the wrong bones.
It launched one time after I downloaded it, then I had a bsod and... It's not launching. I tried to download it again, fixing my netframewrok but nothing works. I am on windows 10 btw
please add import bcmdl , adding Supplementary Texture in bch(if possible), export material animation.
Hello :)
I am successfully able to load in a bulbasaur model from pokemon sun. The model looks great and has several animations that can be played.
The problem comes when trying to export animations, the exporter only ever seems to export the textures. I have tried to explicitly deselect the textures in the menu and press the export button, yet this still just causes all the textures to be saved and not the model nor the animations.
Another attempt to use the batch export option, placing the following files in a folder and selecting animations did not export either. I see that others are somehow able to export. Perhaps there is a new bug since i am using latest build?
I am a developer myself and hate to open this up, but i can't find any instructions for how to use this app. I have tinkered with it for a few hours to no avail. I see others on these issues talking about exporting to other file formats, but i am not given any options for file type unless i am selecting a single texture in the right-menu and press the export button.
This is both an issue and a feature request.
As it currently stands, Spica can recognize but not currently export OR/AS animations using Batch explorer, even with renaming file.bs to file.bch or even file.bin.
The export button only seems to export textures, and ignores whatever else you either have selected, or whichever tab you are in. This should be corrected to either export the current tab, or the selected file.
Animation exports should also be optional whether you want to merge skeletal and material animations, or leave them separate.
The fist issue of Spica ignoring ORAS anims on the batch exporting is the more pressing issue.
The "Extra" textures used for Pokemon Refresh. This is supported by Ohana3ds.
Sample: https://mega.nz/#!8kwD3baQ!q00yz8EksP4Xtku5piwIph0wREE5x6RpF9NPOUvTe9w
(I actually don't know if 'projected textures' is the right term, but they're specular environment maps applied over a texture, occasional with a color map texture applied)
I noticed this a while back, and thought it'd be a temporary bug, but it only got worse. So I did some bisecting (IDK if that's the right term), and found the start of the issue. Here is a viewport capture of of the latest commit (0513e31) as of writing, as you can see, it's very static, the projected envmaps don't move the and light is very bright and facing the front only:
Here's 8af7c71, the last build where the light is still very bright, but it's following the camera (I think, either that or the texture is fullbright) and so do the projected envmaps:
(Some builds in between 8af7c71 & ce7fbe5 suffered from overexposed textures, such as 1524792)
And here's ce7fbe5, the last build in which captured the closest lighting simulation (IMO) and the envmaps properly:
This is a capture from the 3DS, using the background in the trophy viewer that has the least lights
Obviously, SPICA can't make it look like how it does in the 3DS screenshot, since the lighting is controlled outside of the model scene so it affects all trophies, but I still belive that ce7fbe5 is the best looking in the sense of lighting.
And lastly, here's the sample used in the examples above: Amy.zip
Doesnt find the third image on a specific model. This third image happens to be an A8 image thats overlayed over the hat for extra details. The model is found in a/1/7/8 and its overworld model in a/2/0/4 has the same issue.
As title says. MBN stages in smash3ds have vert colors not correct (like it used to be in Ohana Rebirth), and even tho the model is properly rigged to the bone(s), it seems like single binded models don't save their positions after being exported, meaning the model is being moved to 0,0,0, while the bone stays put to where it goes.
After testing the bch files in Ohana Rebirth and SPICA, I've noticed the more severe problem to be solved( partially and entirely transparent textures losing all pixel informations in the transparent parts; it is still transparent though)
Then there is the case of white textures, that seem to be colored through either Vertex Color, Ambient Lighting or color ramp. These informations are lost when exported to either DAE or SMD.
While testing the Files I've also found an issue with the capes of some Characters(for example King and Prince Vegeta(Child), where the cape is incomplete.
Here are some examples:
DBHeroesUMX-Examples.zip
Hi I exported Bulbasaur with all animations it's nearly 21 MB, but when I import it to blender the animations are not imported. If I export it to FBX no animation and about 1,5 MB.
What might be the problem? Or just the blender importer can't handle the animations?
Thank you for the answer.
A 'BL' container with GFModel in it not supported. 'BL' models can be found at a/1/6/4 in Sun/Moon.
Visual Studio is only compiling Spica.WinForms.
some warnings it shows as well
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\NW4C\CMDL.cs(1305,27,1305,34): warning CS0219: The variable 'vertAtt' is assigned but its value is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\NW4C\CMDL.cs(1306,33,1306,40): warning CS0219: The variable 'streams' is assigned but its value is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\NW4C\CMDL.cs(1308,27,1308,29): warning CS0168: The variable 'sb' is declared but never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\NW4C\CMDL.cs(1740,31,1740,36): warning CS0168: The variable 'fmeta' is declared but never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\NW4C\CMDL.cs(1741,25,1741,29): warning CS0168: The variable 'fset' is declared but never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimMtxTransform.cs(14,28,14,38): warning CS0649: Field 'H3DAnimMtxTransform.PostRepeat' is never assigned to, and will always have its default value
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimQuatTransform.cs(14,22,14,27): warning CS0649: Field 'H3DAnimQuatTransform.Flags' is never assigned to, and will always have its default value 0
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimMtxTransform.cs(18,32,18,38): warning CS0649: Field 'H3DAnimMtxTransform.Frames' is never assigned to, and will always have its default value null
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Model\Mesh\H3DMesh.cs(59,22,59,40): warning CS0169: The field 'H3DMesh.UserDefinedAddress' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Model\H3DBone.cs(20,24,20,31): warning CS0169: The field 'H3DBone.Padding' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Model\H3DModel.cs(47,22,47,40): warning CS0169: The field 'H3DModel.UserDefinedAddress' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DFloatKeyFrameGroup.cs(28,23,28,34): warning CS0649: Field 'H3DFloatKeyFrameGroup.ValueOffset' is never assigned to, and will always have its default value 0
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimBoolean.cs(10,28,10,37): warning CS0649: Field 'H3DAnimBoolean.PreRepeat' is never assigned to, and will always have its default value
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\LUT\H3DLUTSampler.cs(11,24,11,32): warning CS0169: The field 'H3DLUTSampler.Padding1' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Model\Material\Texture\H3DTextureMapper.cs(16,24,16,31): warning CS0169: The field 'H3DTextureMapper.Padding' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\H3DHeader.cs(31,22,31,29): warning CS0169: The field 'H3DHeader.Padding' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimMtxTransform.cs(10,22,10,32): warning CS0649: Field 'H3DAnimMtxTransform.StartFrame' is never assigned to, and will always have its default value 0
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DFloatKeyFrameGroup.cs(25,24,25,29): warning CS0649: Field 'H3DFloatKeyFrameGroup.Count' is never assigned to, and will always have its default value 0
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DFloatKeyFrameGroup.cs(30,23,30,34): warning CS0169: The field 'H3DFloatKeyFrameGroup.InvDuration' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimBoolean.cs(11,28,11,38): warning CS0649: Field 'H3DAnimBoolean.PostRepeat' is never assigned to, and will always have its default value
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimMtxTransform.cs(16,23,16,33): warning CS0649: Field 'H3DAnimMtxTransform.CurveIndex' is never assigned to, and will always have its default value 0
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimMtxTransform.cs(11,22,11,30): warning CS0649: Field 'H3DAnimMtxTransform.EndFrame' is never assigned to, and will always have its default value 0
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimFloat.cs(7,22,7,27): warning CS0169: The field 'H3DAnimFloat.Flags' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DFloatKeyFrameGroup.cs(27,23,27,33): warning CS0649: Field 'H3DFloatKeyFrameGroup.ValueScale' is never assigned to, and will always have its default value 0
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Texture\H3DTexture.cs(24,24,24,31): warning CS0169: The field 'H3DTexture.Padding' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\H3DHeader.cs(28,20,28,40): warning CS0649: Field 'H3DHeader.UnInitCommandsLength' is never assigned to, and will always have its default value 0
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\H3DVertexData.cs(10,22,10,29): warning CS0169: The field 'H3DVertexData.Padding' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimMtxTransform.cs(13,28,13,37): warning CS0649: Field 'H3DAnimMtxTransform.PreRepeat' is never assigned to, and will always have its default value
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Model\Mesh\H3DMesh.cs(21,22,21,29): warning CS0169: The field 'H3DMesh.Padding' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\LUT\H3DLUTSampler.cs(10,22,10,30): warning CS0169: The field 'H3DLUTSampler.Padding0' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimVector2D.cs(7,22,7,27): warning CS0169: The field 'H3DAnimVector2D.Flags' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DAnimTransform.cs(11,22,11,27): warning CS0649: Field 'H3DAnimTransform.Flags' is never assigned to, and will always have its default value 0
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DFloatKeyFrameGroup.cs(23,40,23,59): warning CS0649: Field 'H3DFloatKeyFrameGroup.SegmentQuantization' is never assigned to, and will always have its default value
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Model\Mesh\H3DSubMesh.cs(15,22,15,29): warning CS0169: The field 'H3DSubMesh.Padding' is never used
1>C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA\Formats\CtrH3D\Animation\H3DFloatKeyFrameGroup.cs(29,23,29,33): warning CS0649: Field 'H3DFloatKeyFrameGroup.FrameScale' is never assigned to, and will always have its default value 0
1> SPICA.WinForms -> C:\Users\KEKERINO\Downloads\SPICA-master\SPICA-master\SPICA.WinForms\bin\Release\SPICA.WinForms.exe
Rigging is borked for most Pokemon even when trying the convert to fbx and back to dae fix, there's also random verts similar to #8
Characters seem to use Shapekeys for facial animation, included the file(.bshp) that seems to store them if you wish to take a look.
Samples: https://mega.nz/#!J0QCUKhI!rupfjxTjWliC8b_POUqXCO342PentiVlQADQ8hNozKo
I'm using the latest version of SPICA.
I'm trying to use a model I've exported as BCH as a battle background, but every time the game tries to load the edited Battle Background it either soft locks or crashes. I've compressed and repacked everything correctly.
Any ideas why? Original and Edited files https://mega.nz/#!F9gEXLTS!HnKj-06xEE2AWNdcsJW7nSUHnx8Luj4Juz3XwZXpMnA
https://imgur.com/a/lB0xz
I honestly don't know how to resolve this, as my experience with C# on desktop is limited (being my knowledge is Unity in specific).
Would it be possible to add a way to change how the texture is encoded, as just exporting a bch leaves it as the default rgba8 etc, this usually crashes most games when trying to replace a model. ETC1, ETC1a4, HiLo8 etc
Hello,
So I tried to open the Gds_DKPass.bcmdl
file from my Fedora 27 machine. But as the title suggested, the program crashes whenever I try to open the file. The program itself open just fine. I downloaded the prebuilt Windows executable (from the readme) and ran it with the mono command.
Below is the error I get when I try to open the file:
SPICA.Rendering.Shaders.ShaderException: Error compiling Shader!
0:42(20): error: sampler arrays indexed with non-constant expressions are forbidden in GLSL 1.30 and later
at SPICA.Rendering.Shaders.Shader.CheckCompilation (System.Int32 Handle) [0x0002c] in <c0b2010ee3ad4017a282f7a89612c3ba>:0
at SPICA.Rendering.Shaders.Shader.CompileAndCheck (System.Int32 Handle, System.String Code) [0x0000d] in <c0b2010ee3ad4017a282f7a89612c3ba>:0
at SPICA.Rendering.Model.UpdateShaders () [0x000b3] in <c0b2010ee3ad4017a282f7a89612c3ba>:0
at SPICA.Rendering.Model..ctor (SPICA.Rendering.Renderer Renderer, SPICA.Formats.CtrH3D.Model.H3DModel BaseModel) [0x000a4] in <c0b2010ee3ad4017a282f7a89612c3ba>:0
at SPICA.Rendering.Renderer.Merge (SPICA.Formats.CtrH3D.H3DDict`1[T] Models) [0x00010] in <c0b2010ee3ad4017a282f7a89612c3ba>:0
at SPICA.Rendering.Renderer.Merge (SPICA.Formats.CtrH3D.H3D Scene) [0x00000] in <c0b2010ee3ad4017a282f7a89612c3ba>:0
at SPICA.WinForms.Formats.FileIO.Merge (System.String[] FileNames, SPICA.Rendering.Renderer Renderer, SPICA.Formats.CtrH3D.H3D Scene) [0x0004b] in <8651b74666a644edb6ddba6144e261e6>:0
at SPICA.WinForms.FrmMain.FileOpen (System.String[] Files, System.Boolean MergeMode) [0x000b6] in <8651b74666a644edb6ddba6144e261e6>:0
at SPICA.WinForms.FrmMain.Open (System.Boolean MergeMode) [0x00038] in <8651b74666a644edb6ddba6144e261e6>:0
at SPICA.WinForms.FrmMain.TBtnOpen_Click (System.Object sender, System.EventArgs e) [0x00000] in <8651b74666a644edb6ddba6144e261e6>:0
at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00019] in <562ff57d5f0647a7b8cd6b9991443574>:0
at System.Windows.Forms.ToolStripButton.OnClick (System.EventArgs e) [0x00017] in <562ff57d5f0647a7b8cd6b9991443574>:0
at System.Windows.Forms.ToolStripItem.HandleClick (System.Int32 mouse_clicks, System.EventArgs e) [0x00029] in <562ff57d5f0647a7b8cd6b9991443574>:0
at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00054] in <562ff57d5f0647a7b8cd6b9991443574>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00048] in <562ff57d5f0647a7b8cd6b9991443574>:0
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00078] in <562ff57d5f0647a7b8cd6b9991443574>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001b4] in <562ff57d5f0647a7b8cd6b9991443574>:0
at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <562ff57d5f0647a7b8cd6b9991443574>:0
at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <562ff57d5f0647a7b8cd6b9991443574>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <562ff57d5f0647a7b8cd6b9991443574>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <562ff57d5f0647a7b8cd6b9991443574>:0
at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <562ff57d5f0647a7b8cd6b9991443574>:0
I want to import one of Lusamine's animations into Source Filmmaker, so I figure the easiest way to do that is by saving one of the animations as SMD. This is all I get:
version 1
nodes
end
skeleton
time 0
end
triangles
end
As in, that's the entire contents of the file of any animation I attempt to save. Is this feature just not implemented yet?
The Sun/Moon GFMODEL dae/smd exports are perfect, however the main 3ds formats usually have some weighting issues that are only fixed when converting it to FBX with Noesis and back again. Would it be possible to fix this?
Model extracted from Animal Crossing New Leaf.
Model looks fine in SPICA but when exported it seems the polys have been reduced.
I am not that familiar with modeling terms, but I'm assuming it is because the model is technically a billboard model and I think this issue has already been addressed before.
Any idea on how to properly export this?
Pokemon X&Y Player trainer customization files had mask textures included for applying colors to the base textures, do Sun & Moon also do this? If so, Is/Will SPICA be capable of extracting these masks?
Some models are exporting with broken UVs https://mega.nz/#!Ewg2GLDA!IPTEb9C50gES9NWRLfrZFeOU4YBZAnP3O4L2R-bN9hE
Most of the models use Texture Mirroring, but these ones UVs are actually broken.
I'm getting an unsupported file format error with this interior model from garc a/0/8/6, I can open this in Ohana.
dec_0571.bin unpacked https://mega.nz/#!kkhlxTYL!zy17t0KGJ3NpNsp5ESu97alXN5T2e8kKRSsTB53wfMg
Also unable to open textures from a/0/8/3
dec_1761.bin 0_BG https://mega.nz/#!xlQ3VQzD!8KqGRmeZFhCtqIedvfLLgia3kuJjJjl9oX44TRwACYk
After opening these two files, I noticed 2 things immediately:
I also noticed that the animations do not play and that upon exporting models, the .SMD is only a few bytes, and exporting to .DAE throws an error, but I believe that these are separate issues.
Some images for example:
SPICA:
3DS:
SPICA:
3DS:
I thought this should be brought up, since it's pretty glaring, but I was just curious and noticed this.
Just for posterity, I tested on Ohana3DS Rebirth, and it displays and exports properly for the most part.
Tested on 69c3ce0
Hope this isn't bothering anyone :/
Any ETA when this will be finished?
hi!, when i open the compiled version that u put to download, when i try to open a file a error coming,
''cant load type 'System.Numerics.Matrix4x4'
Hello.
I did the following steps to produce a bug:
The animation is working but the right leg feet from the back is strangely rotating for no reason, although in the software the animation preview is fine, just after exporting it this happens. It's also worth noting in Blender the animation is totally messed up, only Unity seems to be able to read the animation for the most part.
This is what I mean, notice the feet:
I've been trying to open bch files of this game, Aikatsu No.1 Stage, but it says that the file format is unsupported.
I was able to open it on ohana rebirth.
Here is a file for test it.
cos104_1004_T.zip
I've been keeping updated on this for a while and still so far there's been no way to fix these properly. Any time I try to export the 'Giant Luigi' model from this game, the exported model has quite severe UV issues and does map the proper textures either. Here's the one I'm pulling from.
body_00.zip
The following bcmdl files are extracted from 'Dead or Alive Dimensions'
[samples] KOR_C000.bcmdl/KOR_FACE.bcmdl
https://mega.nz/#!whJWnYYJ!WQaX2dE_TCwLLDQILw8brQTV02IOQ8jOy4Fq9yvAULs
https://mega.nz/#!l0RhRCJK!5ByUL-VqyZ6s5X6cftq7t9PYyjjTjM25POTLWNcMGqU
KOR_C000, KOR_FACE does not display the "costume" model.
And saved as bch format and reloading,
The model was displayed, but "System.IO.EndOfStreamException" appears and some vertex seems to be crashed
[samples] TIN_C000.bcmdl/TIN_FACE.bcmdl
https://mega.nz/#!lowhkZoQ!ZkhMRqcDmSTP_gIJGy6PnRyDkPJmMzIidj58LKn2zYs
https://mega.nz/#!Y4RFHbxb!wXhzTejYdEBcfQIrvbw19OblHOpRR6p4iyd7hf8tOJQ
TIN_C000, TIN_FACE are displayed perfectly and conversion are also possibles.
SPICA\Formats\Generic\OBJ\OBJ.cs is missing.
Hello.
After I export Vaporeon's animations, most of them the model is rotated incorrectly, I'm able to adjust the XYZ to (90, 0, -90) for some of them to fix it, its the Waist rotation.
As you can see above, the model should be facing the red arrow and should not be floating mid-air like that, these waist XYZ values seem to repeat in other exported animations.
https://drive.google.com/file/d/0ByJuVVFkcEVzZWVMZGViamZscEk/view?usp=sharing
This is an arc file form monster hunter X
I extract some files (such like MOD,TEX) from it,but it does not work
sorry for missing the lfx file.
https://drive.google.com/open?id=0ByJuVVFkcEVzamh1Y1ltNWFpZmM
Hey, I've recently been experimenting with the files from Bravely Default and Bravely Second. I've constantly encountered a specific error with them on exporting them to any other format. Now they view fine in SPICA itself, but when exporting them to anything else, they completely lose the facial expression geometry. Here's a sample from both games.
Erutus.zip
File https://mega.nz/#!BthkzKga!82JKeXp2o8H1AKB7epE4hQELNYjb8pYbFub4uBA2cE8
and error
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.ReadChar()
at SPICA.Serialization.BinaryDeserializer.ReadString()
at SPICA.Serialization.BinaryDeserializer.ReadValue(Type Type, Boolean IsRef)
at SPICA.Serialization.BinaryDeserializer.ReadReference(Type Type, FieldInfo Info)
at SPICA.Serialization.BinaryDeserializer.ReadObject(Type ObjectType, Boolean IsRef)
at SPICA.Serialization.BinaryDeserializer.ReadValue(Type Type, Boolean IsRef)
at SPICA.Serialization.BinaryDeserializer.ReadReference(Type Type, FieldInfo Info)
at SPICA.Serialization.BinaryDeserializer.ReadList(Type Type, Boolean Range, Int32 Length)
at SPICA.Serialization.BinaryDeserializer.ReadReference(Type Type, FieldInfo Info)
at SPICA.Serialization.BinaryDeserializer.ReadObject(Type ObjectType, Boolean IsRef)
at SPICA.Serialization.BinaryDeserializer.ReadValue(Type Type, Boolean IsRef)
at SPICA.Serialization.BinaryDeserializer.ReadReference(Type Type, FieldInfo Info)
at SPICA.Serialization.BinaryDeserializer.ReadObject(Type ObjectType, Boolean IsRef)
at SPICA.Serialization.BinaryDeserializer.ReadValue(Type Type, Boolean IsRef)
at SPICA.Serialization.BinaryDeserializer.DeserializeT
at SPICA.Formats.CtrGfx.GfxDictionary1.SPICA.Serialization.ICustomSerialization.Deserialize(BinaryDeserializer Deserializer) at SPICA.Serialization.BinaryDeserializer.ReadObject(Type ObjectType, Boolean IsRef) at SPICA.Serialization.BinaryDeserializer.ReadValue(Type Type, Boolean IsRef) at SPICA.Serialization.BinaryDeserializer.ReadReference(Type Type, FieldInfo Info) at SPICA.Serialization.BinaryDeserializer.ReadObject(Type ObjectType, Boolean IsRef) at SPICA.Serialization.BinaryDeserializer.ReadValue(Type Type, Boolean IsRef) at SPICA.Serialization.BinaryDeserializer.ReadObject(Type ObjectType, Boolean IsRef) at SPICA.Serialization.BinaryDeserializer.ReadValue(Type Type, Boolean IsRef) at SPICA.Serialization.BinaryDeserializer.Deserialize[T]() at SPICA.Formats.CtrGfx.Gfx.Open(Stream Input) at SPICA.WinForms.Formats.FormatIdentifier.IdentifyAndOpen(String FileName, H3DDict
1 Skeleton)
at SPICA.WinForms.Formats.FileIO.Merge(String[] FileNames, Renderer Renderer, H3D Scene)
at SPICA.WinForms.FrmMain.Open(Boolean MergeMode)
at SPICA.WinForms.FrmMain.TBtnOpen_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Some Pokemon seem to have a problem with shading of some alpha blended textures. (mostly eyes on eg. Venusaur ...)
I debugged the Shader (pre latest update) and figured the problem comes from Stage.Combiner.ColorCombiner == (1)Modulate
In your shader, if you replace
switch (Combiners[Stage].ColorCombine)
case 1: Output.rgb = ColorArgs[0].rgb * ColorArgs[1].rgb; break;
with:
case 1: Output.rgb = ColorArgs[0].rgb; break;
Or just enforce Stage.Combiner.ColorCombiner to never be Modulate but Replace instead.
This way the problem is fixed for all Pokemon, but may cause problems with other games that I haven't checked.
Just wanted to let you know. Maybe you have a better fix for this.
[Edit]
Just noticed I was testing without lighting. Seems with lights it breaks your cell shading, so this is not a good fix :/
A proper fix would possibly be to only adjust ColorCombiner when certain alpha blend conditions are met.
The main format that this tool aims to support (BCH) have a bunch of different version that are not totally compatible with each other. I usually don't manually test each different version after a possibly breaking change because this is time consuming. Theres also other formats to take into account, and as new features are added, this becomes less and less feasible.
So, adding tests for different BCH and CGFX versions is desirable, and also tests to ensure that the conversion between those formats and the "common" formats like DAE, OBJ and SMD works properly too. The tests can live on a separate CLI project that run all tests in a batch and returns status for each tests, and also overall status (passed or failed). Ideally, we should also integrate those tests with the CI system, so every new commit go through the testing phase automatically.
"MarioSonicU" from vgr wants support for this format.
The format seems to be pretty simple, should be quite easy to implement. AFAIK only the game "Smile Precure" uses it.
For various reasons, I left the Windows world behind a while back...before I got a chance to try SPICA's automated builds. While I am considering setting up a Windows To Go environment for this and other reasons, I figured I may as well ask about this.
I'm used to building from makefiles and other Linux-typical methods, but Mono's completely different. I've got no clue what could be wrong here, so here's the terminal dump:
fiona@ophelia:~/SPICA$ xbuild
XBuild Engine Version 14.0
Mono, Version 4.6.2.0
Copyright (C) 2005-2013 Various Mono authorsBuild started 2017-06-10 12:58:31 AM.
/home/fiona/SPICA/SPICA/SPICA.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.Default.props, to import. Ignoring.
/home/fiona/SPICA/SPICA/SPICA.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.props, to import. Ignoring.
/home/fiona/SPICA/SPICA/SPICA.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.CSharp.targets, to import. Ignoring.
/home/fiona/SPICA/SPICA.Renderer/SPICA.Renderer.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.Default.props, to import. Ignoring.
/home/fiona/SPICA/SPICA.Renderer/SPICA.Renderer.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.props, to import. Ignoring.
/home/fiona/SPICA/SPICA.Renderer/SPICA.Renderer.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.CSharp.targets, to import. Ignoring.
/home/fiona/SPICA/SPICA.sln: warning : Don't know how to handle GlobalSection SharedMSBuildProjectFiles, Ignoring.
Project "/home/fiona/SPICA/SPICA.sln" (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Debug|Any CPU".
Target Build:
Project "/home/fiona/SPICA/SPICA.WinForms/SPICA.WinForms.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
Created directory "bin/Debug/"
Created directory "obj/Debug/"
Target ResolveAssemblyReferences:
/usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: warning : Reference 'System.Data.DataSetExtensions' not resolved
For searchpath {CandidateAssemblyFiles}
Warning: {CandidateAssemblyFiles} not supported currently
For searchpath {HintPathFromItem}
HintPath attribute not found
For searchpath {TargetFrameworkDirectory}
Considered target framework dir /usr/lib/mono/4.5/, assembly named 'System.Data.DataSetExtensions' not found.
For searchpath {PkgConfig}
Considered System.Data.DataSetExtensions, but could not find in any pkg-config files.
For searchpath {GAC}
Considered System.Data.DataSetExtensions, but could not find in the GAC.
For searchpath {RawFileName}
Considered 'System.Data.DataSetExtensions' as a file, but the file does not exist
For searchpath bin/Debug/
Considered '/home/fiona/SPICA/SPICA.WinForms/bin/Debug/System.Data.DataSetExtensions' as a file, but the file does not exist
Considered '/home/fiona/SPICA/SPICA.WinForms/bin/Debug/System.Data.DataSetExtensions.exe' as a file, but the file does not exist
Considered '/home/fiona/SPICA/SPICA.WinForms/bin/Debug/System.Data.DataSetExtensions.dll' as a file, but the file does not exist
/usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: warning : Reference 'System.Deployment' not resolved
For searchpath {CandidateAssemblyFiles}
Warning: {CandidateAssemblyFiles} not supported currently
For searchpath {HintPathFromItem}
HintPath attribute not found
For searchpath {TargetFrameworkDirectory}
Considered target framework dir /usr/lib/mono/4.5/, assembly named 'System.Deployment' not found.
For searchpath {PkgConfig}
Considered System.Deployment, but could not find in any pkg-config files.
For searchpath {GAC}
Considered System.Deployment, but could not find in the GAC.
For searchpath {RawFileName}
Considered 'System.Deployment' as a file, but the file does not exist
For searchpath bin/Debug/
Considered '/home/fiona/SPICA/SPICA.WinForms/bin/Debug/System.Deployment' as a file, but the file does not exist
Considered '/home/fiona/SPICA/SPICA.WinForms/bin/Debug/System.Deployment.exe' as a file, but the file does not exist
Considered '/home/fiona/SPICA/SPICA.WinForms/bin/Debug/System.Deployment.dll' as a file, but the file does not exist
/usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: warning : Reference 'System.Net.Http' not resolved
For searchpath {CandidateAssemblyFiles}
Warning: {CandidateAssemblyFiles} not supported currently
For searchpath {HintPathFromItem}
HintPath attribute not found
For searchpath {TargetFrameworkDirectory}
Considered target framework dir /usr/lib/mono/4.5/, assembly named 'System.Net.Http' not found.
For searchpath {PkgConfig}
Considered System.Net.Http, but could not find in any pkg-config files.
For searchpath {GAC}
Considered System.Net.Http, but could not find in the GAC.
For searchpath {RawFileName}
Considered 'System.Net.Http' as a file, but the file does not exist
For searchpath bin/Debug/
Considered '/home/fiona/SPICA/SPICA.WinForms/bin/Debug/System.Net.Http' as a file, but the file does not exist
Considered '/home/fiona/SPICA/SPICA.WinForms/bin/Debug/System.Net.Http.exe' as a file, but the file does not exist
Considered '/home/fiona/SPICA/SPICA.WinForms/bin/Debug/System.Net.Http.dll' as a file, but the file does not exist
Target CopyFilesMarkedCopyLocal:
Copying file from '/home/fiona/SPICA/Libraries/OpenTK.dll' to '/home/fiona/SPICA/SPICA.WinForms/bin/Debug/OpenTK.dll'
Copying file from '/home/fiona/SPICA/Libraries/OpenTK.GLControl.dll' to '/home/fiona/SPICA/SPICA.WinForms/bin/Debug/OpenTK.GLControl.dll'
Target CopyNonResxEmbeddedResources:
Copying file from '/home/fiona/SPICA/SPICA.Renderer/Shaders/GUIColFragmentShader.glsl' to '/home/fiona/SPICA/SPICA.WinForms/obj/Debug/SPICA.WinForms.Shaders.GUIColFragmentShader.glsl'
Copying file from '/home/fiona/SPICA/SPICA.Renderer/Shaders/GUIVertexShader.glsl' to '/home/fiona/SPICA/SPICA.WinForms/obj/Debug/SPICA.WinForms.Shaders.GUIVertexShader.glsl'
Copying file from '/home/fiona/SPICA/SPICA.Renderer/Shaders/GUIFragmentShader.glsl' to '/home/fiona/SPICA/SPICA.WinForms/obj/Debug/SPICA.WinForms.Shaders.GUIFragmentShader.glsl'
Copying file from '/home/fiona/SPICA/SPICA.Renderer/Shaders/MdlFragmentShader.glsl' to '/home/fiona/SPICA/SPICA.WinForms/obj/Debug/SPICA.WinForms.Shaders.MdlFragmentShader.glsl'
Copying file from '/home/fiona/SPICA/SPICA.Renderer/Shaders/MdlVertexShader.glsl' to '/home/fiona/SPICA/SPICA.WinForms/obj/Debug/SPICA.WinForms.Shaders.MdlVertexShader.glsl'
Done building project "/home/fiona/SPICA/SPICA.WinForms/SPICA.WinForms.csproj".-- FAILED
Task "MSBuild" execution -- FAILED
Done building target "Build" in project "/home/fiona/SPICA/SPICA.sln".-- FAILED
Done building project "/home/fiona/SPICA/SPICA.sln".-- FAILEDBuild FAILED.
Warnings:
/home/fiona/SPICA/SPICA/SPICA.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.Default.props, to import. Ignoring.
/home/fiona/SPICA/SPICA/SPICA.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.props, to import. Ignoring.
/home/fiona/SPICA/SPICA/SPICA.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.CSharp.targets, to import. Ignoring.
/home/fiona/SPICA/SPICA.Renderer/SPICA.Renderer.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.Default.props, to import. Ignoring.
/home/fiona/SPICA/SPICA.Renderer/SPICA.Renderer.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.props, to import. Ignoring.
/home/fiona/SPICA/SPICA.Renderer/SPICA.Renderer.shproj: warning : Could not find project file /usr/lib/mono/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.CSharp.targets, to import. Ignoring.
/home/fiona/SPICA/SPICA.sln: warning : Don't know how to handle GlobalSection SharedMSBuildProjectFiles, Ignoring./home/fiona/SPICA/SPICA.sln (default targets) ->
(Build target) ->
/home/fiona/SPICA/SPICA.WinForms/SPICA.WinForms.csproj (default targets) ->
/usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets (ResolveAssemblyReferences target) ->/usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: warning : Reference 'System.Data.DataSetExtensions' not resolved /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: warning : Reference 'System.Deployment' not resolved /usr/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: warning : Reference 'System.Net.Http' not resolved 10 Warning(s) 0 Error(s)
Time Elapsed 00:00:00.3862660
There's probably just something really obvious that I've missed, given that I'm not a dev and I've never compiled anything with Mono before. I did install the OpenTK dependencies, but that doesn't appear to be the issue itself.
Any ideas how to build this? And could we perhaps see automated Linux builds alongside the Windows builds? I need to take glamour shots of Lusamine...
I managed to compile it successfully but when I run it (using Windows 10 Enterprise x64) it does not open or anything, and even if I try opening it with CMD nothing happens (not giving any error).
Any chance at adding support for this?
Samples: https://mega.nz/#!R5JySara!Er-_TnogQzeIN949QPy--7yMvTZrKi8FSQZCefsDbnc
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.