07-08-21, 07:15 | #91 | |
Member
Joined: Dec 2020
Posts: 52
|
Quote:
Hope it is what you asked. If it needs some modification or there are bugs please let me know |
|
07-08-21, 17:50 | #92 |
Member
Joined: Feb 2008
Posts: 1,145
|
Perfect! Thank you very much - it's exactly what I had hoped for!
This is definitely going to be a massive help in either case without any changes. The ultimate dream however would be to be able to import the outfit (and the enemy NPC models) into WadTool in one step instead of part by part (basically if it would be compatible with WadTools replace model function). edit: thinking a bit more about this I'd like to add that making the models compatible with the replace model function as such is not part of the dream goal. Any solution you come up with would be awesome - I just assumed this would involve the least amount of work, but since I'm not a programmer I'm probably wrong about this, so I thought I should clarify. Last edited by not again!; 07-08-21 at 18:46. |
07-08-21, 19:07 | #93 |
Member
Joined: Dec 2020
Posts: 52
|
I wanted to do something like that, so that one can design some meshes, make an armature, texture, animate, all in Blender and then save as wad. The skeleton can be imported more easily into Wad Tool using a wad rather then obj. I mean, I can more easily predict the result. Maybe I'm wrong, need to see better the Wad Tool code.
I need just to figure out something for the textures because I already have some ideas for the skeleton |
08-08-21, 07:25 | #94 |
Member
Joined: Feb 2008
Posts: 1,145
|
^^ This sounds both amazing and like an absolute behemoth of an undertaking. Being able to export things directly to wad format would certainly be amazing.
If you need anything tested during development let me know! Do you mean the latest build that is currently being worked on? TE / WadTool etc are open source, but I don't know if the pre-release builds are also freely accessible - I assume you'd have to ask Lwmte. edit: I just discovered what the issue was with importing models using the replace model option. It does apparently not work if the model has quads; the faces need to be triangulated, so this actually had nothing to do with WadBlender as such (I'm sorry , a million apologies!) It worked with models exported as .3ds from WadViewer because the .3ds files get triangulated automatically (either on export from WadViewer or on import into Blender, I don't know). In addition to that WadTool imports the meshes with quads just fine if you import them one by one using the import mesh function. edit2: Have to correct myself again - you can import models that have quads using replace model. I tried replacing all meshes of the bat model with the blender start cube, left the quads and could import that without problems, so let's just cautiously say that whatever the problem may be, in some cases triangulating the meshes helps? this is so wierd Last edited by not again!; 08-08-21 at 20:27. |
08-08-21, 16:04 | #95 |
Member
Joined: Dec 2020
Posts: 52
|
More than Wad Tool, I worry about that ASSimp 3D library they use (the doc is a bit hermetic)
I need to see if I can somehow use their library to directly create a wad2 with proper skeleton. They built a library that can be used by external programs. Anyway, I created an experimental branch on WADBlender github. There is a save as static button. Very experimental, just select a mesh and save as static from the wad blender tab in object mode. No ngons nor non grid aligned textures May be useful if you want to make simple changes to the textures of a mesh coming from a wad. I suggest not to try it, it is just for who is curious!! Last edited by Bergus; 08-08-21 at 16:05. |
08-08-21, 20:23 | #96 |
Member
Joined: Feb 2008
Posts: 1,145
|
That was light-speed fast! Incredible.
People should straighten out their uv maps to grid-shape with "follow active quad" whenever possible anyway, so this should already be useful for newly created custom models too! Going to try it out right away. Do you plan to include support for inverse kinematics? |
09-08-21, 12:46 | #97 | |
Member
Joined: Dec 2020
Posts: 52
|
Quote:
I hope that keeping the uvs straight is feasible for the designer. There is also the possibility of using the lightmap method but, at that point, Tomb Editor would be a better way to import the object. I was trying to do something on the lines of lightmap + baking (without baking) but I'm getting some strange deformation. I need to find the right algorithms. I think it is possible to use ik and then bake the action to the rig, not sure though. UPDATE: I added save as obj and save as movable. That's only for a single mesh. Now there's the difficult part: debugging/test |
|
10-08-21, 04:35 | #98 |
Member
Joined: Feb 2008
Posts: 1,145
|
I tried out the save to wad feature and have to say I'm definitely hyped!
I exported the (textured) Blender start cube: once as static and once as moveable and everything worked flawlessly. I could open the wad in WadTool and it also worked fine when used in a level. Congratulations on the fantastic work! It's good modelling practice in cases like architecture models and inventory items, but it's not really ideal for organic things like character models. |
10-08-21, 12:09 | #99 | |
Member
Joined: Aug 2008
Posts: 12,070
|
Quote:
|
|
10-08-21, 19:58 | #100 | ||
Member
Joined: Dec 2020
Posts: 52
|
Quote:
Quote:
I think next I'll see if I can make something to save the outfit as wad. This workflow is too much laborious and dangerous (vertex order problem when exporting obj to tomb editor, vertices groups to change, etc.) Last edited by Bergus; 10-08-21 at 20:01. |
||
Thread Tools | |
|
|