Welcome Guest [Log In] [Register]






Shoot a firework rocket ~ Winners!
Make a forum zoo!

Welcome to The Round Table. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
Current Projects
Topic Started: Feb 15 2014, 07:38 AM (241,657 Views)
Joe99
Member Avatar


HENDRIX
Nov 15 2014, 05:15 AM
The super version is bigger, and if you don't like it like that still, resize it yourself. And wrong thread, if the WWD thread is closed, it's closed and its topic shall not be talked about in other threads.
ok sorry thanks
Offline Profile Goto Top
 
HENDRIX
Member Avatar
-retired-

The BFB importer is coming along well, now it can handle box and capsule collision, visualize them in blender AND get the values back for export.
Also, the overall file structure is now mostly understood. There's still many details to figure out, but we're not stuck with reverse-engineering the structure anymore.
As a result of that, material to mesh linking works now as specified by the bfb and not just link-whatever-is-found anymore.
Online Profile Goto Top
 
Orca Freak
Member Avatar
Killer Whales rule the World

I think I understood maybe 10 words in total in the last 3-4 pages of your explanations xD

But I guess "Great Job" will be a correct comment to all that technical stuff :P
Online Profile Goto Top
 
HENDRIX
Member Avatar
-retired-

Now the bones are imported as an armature, I've worked out a relatively simple algorithm to get their armature space positions from their bone space positions in BFB format. So no need to use the empty workaround I mentioned earlier. The algorithm is much simpler than the one used in the nif scripts and seems to work just as well, if not better (nicer bone display for end bones, for example). In general, my BFB importer is much quicker, maybe 10-100 times actually. This one took just 0.12 seconds to import.

Posted Image

So the result is an animal, ready to be posed just as if it was imported from NIF. Objects are also imported with their external node structure, collisions in the right place and with LOD groups.

Now it's not too far anymore from starting the exporter :D

And if you haven't noticed, it can already be used to convert BFB to NIF almost flawlessly. Some data structures in different mesh types (mainly UV and UVW (yes! 3 coordinates!) maps are causing trouble) don't work yet, so interpreting these is up next.
Edited by HENDRIX, Nov 17 2014, 05:28 PM.
Online Profile Goto Top
 
Bill
Member Avatar
originally, one_piece

This is amazing DM! How do you even know how to do these stuffs? This is promising to change Zt2 designing yet again!
Offline Profile Goto Top
 
HENDRIX
Member Avatar
-retired-

In terms of general programming with python, I thought that myself. For BFB related issues, bl3nd3r has decoded a lot of the format so I had a rough file specification to work with. The hardest part is always getting blender to do what it should do, because the blender API is so confusing. The nif scripts are sometimes helpful, however they often have incredibly difficult and ineffective solutions, so that's usually not the way I choose to program stuff.
Online Profile Goto Top
 
HENDRIX
Member Avatar
-retired-

Started working on the exporter with what I thought would be the most difficult part: re-exporting the bones. For now, I have managed to get it working relatively well, I get all the data I need to write the hex strings and the matrices are correct (=they match the original matrix in BFB). But for that I had to (temporarily) sacrifice having a nicely clean skeleton, as I can't seem to figure out why my extra matrix storing method won't work properly, which is required if I want to adjust the skeleton to look nicely. Only thing I can't deal with are the bone lodgroups, but those are most likely not essential for function, so they will simply be set to the same value.
Edited by HENDRIX, Nov 18 2014, 06:26 PM.
Online Profile Goto Top
 
Posted Image Narukota
Member Avatar
blah

I understood nothing, but good job! (:^)
This is why I'm gonna take a game designing class in college.. :catz:
Offline Profile Goto Top
 
HENDRIX
Member Avatar
-retired-

Added vertex colour support for the importer.

On some model types, it seems like the vertex colours are used to determine the direction of the wind vertex shader, but that's just my theory currenty, because I can't make any other sense from this:
Posted Image

Because the colours remind me of normal mapping, so they could be used to code a vector like that...
Online Profile Goto Top
 
Slothy Dude
Member Avatar
The Happy Xenarthran.

This is pretty off topic but the eagle owl dosen`t work for me. Any idea what could be the problem?
Offline Profile Goto Top
 
HENDRIX
Member Avatar
-retired-

You need the jay animations.

I've started the leopard, I'll show that one when it's done.

The importer now deals with multiple texture sources and maps them to the correct UV set, also collisions on animals are now parented to the correct bone. It's accumulated to more than a 1000 lines of code, mainly because dealing with the matrices is extremely complex.
Online Profile Goto Top
 
Yukon
Member Avatar
insta: yukons_designs

Well all I can say is that I think, that your work is really great for designers( who understand it ;) ) ! I hope that I will understand this all too in the near future !!! I'm getting better and better ! I understand "leopard" ;)
Offline Profile Goto Top
 
the dark phoenix
Member Avatar
King of wonderlandia

HENDRIX
Nov 19 2014, 04:14 PM
Added vertex colour support for the importer.

On some model types, it seems like the vertex colours are used to determine the direction of the wind vertex shader, but that's just my theory currenty, because I can't make any other sense from this:
Posted Image

Because the colours remind me of normal mapping, so they could be used to code a vector like that...
DM's making cotton candy in many flavors XD

I hope to see that leopard. Hendrix.
Offline Profile Goto Top
 
HENDRIX
Member Avatar
-retired-

Here are the updated Hacks by OL!

wrong topic xD
Edited by HENDRIX, Nov 21 2014, 12:17 PM.
Online Profile Goto Top
 
HENDRIX
Member Avatar
-retired-

LOD separation by layers: At import, all layers with stuff in them are visible

Posted Image

Then you can toggle between:
only nodes & collision,
Posted Image

LOD0,
Posted Image

and the other lods (LOD1 etc)
Posted Image

Also, you can see that the collisions are visualized as actual objects and can directly be modified by the user.

Multiple UV and Texture support works similarly, using the UV layer toggle:

Posted Image
Posted Image
Posted Image

Every texture is assigned to the correct UV set, as given by the BFMAT file.
Edited by HENDRIX, Nov 21 2014, 03:29 PM.
Online Profile Goto Top
 
2 users reading this topic (2 Guests and 0 Anonymous)
Go to Next Page
« Previous Topic · Individual Projects · Next Topic »
Locked Topic