01-24-2024, 04:50 AM
(01-24-2024, 03:07 AM)RHD-45 Wrote:(01-23-2024, 04:45 PM)tdguchi Wrote: That happens on almost every pokemon.
Those files you say are (probably) right, but using them is not as easy as the body....
You need to make the eyes in blender, in the shading part, i have no idea how, i have copied some to get charmander eyes, but its a mess.
Also when that is finished, that shading will not be exported with the FBX, you will need to "bake" those textures on PNG, which is another nightmare.
Thanks for the insight. I'm guessing that's because the eyes are animated separately, so the sprites aren't included in the 3d model. Can you tell me how you managed to restore Charmander's eyes?
Sorry, that a top secret, saved by my family through generations....
Just joking.
OK, lets go.
Im asuming that your pokemon is from SV.
When ripping, you got a trmdl file, which is the pokemon itself, and those BTX files that you convert to DDS and then to PNG
https://www.youtube.com/watch?v=qTtwzTEdda8
That video shows the entire process of using the files, also https://www.youtube.com/watch?v=dv03pqnKsGg shows how to get the animations.
But talking about textures. If you use the OP plugin for loading trmdl in blender, and load that trmdl (just make sure the png textures files and the rest of tr** files are with it) it will load a full pokemon, with all textures, included eyes. And then if you put the smd plugin you can load the animations ripper from the second video.
BUT that pokemon is not exportable as is, if you export the fbx, you will get a pokemon with no eyes or flames, because they are procedural materials.
Those materials are shaders, click on shading tab (at the top of blender) then in you model click on eye or a flame or whatever mesh in white.
You will see something like this:
That is the procedural diagram of the eyes, if you move the boxes (are a lot, yes, A LOT) you will see that its using those files in white blue, black... etc and maybe some lym.layers1 2 3 4 files.
https://www.youtube.com/watch?v=AioskAgcU2U
That video shows how to bake the textures, that guy uses some parameters that I copied in charmander and it looks good, but i dont know if it works on any pokemon (maybe yes)
After the process you will get some files like this ones:
Then go to you pokemon in fbx (the one without eyes) and in shading tab delete the diagram (that is also on the video) install a plugin he says and load the images.
Now when you export the FBX it should export also the eye (or flames)
Now im trying to use the models in unreal engine, and i found some problems. I dont know if its your idea to export to it but maybe someone finds this posts useful too.
In unreal using the images directly to bake materials (I mean, you load a map, then click file>import to this scene) you will be granted with tons of errors, the most important are bone related.
To fix them, in the exporting menu in blender you must click "Armature" and then uncheck "add leaf Bones". Now only some errors about scale are shown (im digging on it yet)
Your pokemon its there.
Now, the textures, on the bottom you will have a component box, with some spheres (the materials) or just the images in 2D in that case, right click on the PNG and create material.
You need to edit them (right click> edit), I found that the default material has some problems so it needs a bit of tweaking.
That its almost the same that in shading, just keep in mind that you need to put a multiplier in the emissive input, the color was very bright, the norma texture looks shiny xD but that fixes it.
then select your pokemon in the actor editor (it will be very tiny, just select it and scale at the right menu) and at the right menu search the textures/materials part and asign them. a little higher in that menu you could enable the animations (if you exported them with the fbx)
Save all and your pokemon should be textured and animated.
I think thats all, if you have troubles on any point just ask, this is a rough walkthrough, im sure that this could be better done, but.. it works xD