Coder Social home page Coder Social logo

spica's People

Contributors

curioustommy avatar gdkchan avatar igniscitrinus avatar iskunk avatar marius851000 avatar reisyukaku avatar waielal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spica's Issues

3DS Max animations

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.

The model does not display

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.

Multiple animations are not exporting

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?

test.zip

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.

Linux build?

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 authors

Build 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".-- FAILED

Build 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...

.DAE Export Animation Rotation Bug

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.

1

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.

2

3

Sun & Moon Player color mask data

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?

Introduce automatic tests

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.

Exporting Animation to .DAE Bug

Hello.

I did the following steps to produce a bug:

  • Load Eevee's Sun/Moon model
  • Load Eevee's Sun/Moon textures
  • Load Eevee's Sun/Moon fight animations
  • Export as .DAE with Motion 0 (the idle/stand animation) selected
  • Load the model in Unity

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:

http://i.imgur.com/stiDMF5.gif

Regression/Issue with spheremap textures/lighting

(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:
0513e31

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:
8af7c711
(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:
ce7fbe5e_1

This is a capture from the 3DS, using the background in the trophy viewer that has the least lights
image
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

Importing DAE

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.

ORAS Anims are not exportable by batch exporter.

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.

MBN vert colors for some stages not correct

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.

vert colors wrong
model not positioned to bone

It does not really work...

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).

Add FBX support

please add import bcmdl , adding Supplementary Texture in bch(if possible), export material animation.

Mario and Luigi: Dream Team export UV issues

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

Program doesn't launch

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

Can't open bch of this game

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

Issue with Mii Plaza Puzzle Swap scenes

After opening these two files, I noticed 2 things immediately:

  1. The textures are messed up
  2. The placement of the blue toad and pink yoshi is very weird

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:
image
3DS:
image
SPICA:
image
3DS:
image
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 :/

Smile Precure .x3d support

"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.

Texture and Cape issues with Dragonball Heroes Ultimate Mission X bch files

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

Compiled version doesn't works,

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'

Main 3ds formats DAE/SMD export issue

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?

Exporting animations to SMD is broken

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?

Program Crashes When Opening Gds_DKPass.bcmdl On Linux

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

BCMDL Crash

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, H3DDict1 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)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

SPICA.WinForms
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Kek/Downloads/spica_lastest/SPICA.WinForms.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

OpenTK
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0
CodeBase: file:///C:/Users/Kek/Downloads/spica_lastest/OpenTK.DLL

OpenTK.GLControl
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0
CodeBase: file:///C:/Users/Kek/Downloads/spica_lastest/OpenTK.GLControl.DLL

SPICA
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Kek/Downloads/spica_lastest/SPICA.DLL

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

SPICA.Rendering
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Kek/Downloads/spica_lastest/SPICA.Rendering.DLL

System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1099.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

************** 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.

Certain Export Errors

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

SunMoon GFL bug

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.

Shader Issue

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.

Unable to fully compile

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

Exported armatures in SMD aren't properly rigged

Which is weird because the SMD exporter worked fine in Ohana3DS

Attached a screenshot for comparison (Mega Rayquaza from Sun/Moon, exported by both apps)

image

EDIT: Seems like the mesh triangles are assigned to the wrong bone:
image

Model exporting with reduced polys

actrees

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?

There is no constant color animations in the PkmnModel part

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

BCH Texture Encoding

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.