TaleSpire Dev Log 295

Hey folks,

This morning I’m continuing my work on the HeroForge integration.

My current tasks revolve around loading the assets. For Dimension20, we had knocked together an importer which did the job but has two issues that don’t make it suitable for use inside TaleSpire:

  • It didn’t need to worry about blocking the main thread
  • It used some functionality from UnityEditor, which is not available at runtime.

This means we need to get coding :)

The first target to replace was EditorUtility.CompressTexture, which we use to compress the textures to DXT5/DXT1. You might at first think that you could just replace it with Texture2D.Compress, but it doesn’t have the same quality settings and (much worse) is not async.

So I went looking elsewhere. Luckily for us, the fantastic stb single file library project has just what the doctor ordered. stb_dxt is small, fast, and easy to read; however, it is in C, and while I could just include a dll, it looked like it would be easy to port to Burst’s HPC#.

So that’s what I got up to the other day. It was a straightforward task[0], and now I just need to write the code that drives the compression process[1].

Today my focus is on converting the format we get from HeroForge into something suitable for TaleSpire. We need to extract what we need, apply compression and store everything in a format suitable for fast async loading[2].

That’s it from me for now. I’ll be back with more as it develops.

Peace.


[0] I’ll probably release that code once I can confirm it’s all working.

[1] DXT compresses 4x4 pixel clusters, so stb_dxts’ API takes one cluster and appends the results to a buffer. The code to provide the clusters (with correct padding) is not part of stb_dxt.

[2] A small amount of work still needs to be done on the main thread as creatures use Unity’s GameObjects. However, most of it can be done without blocking.



G
G
Guest
User
Causty
Causty
·
Sounds cool but after recently finding some custom minis done for a RWBY/TaleSpire podcast thing i would really like a monster mini generator thing.  That said am looking forward to this being implimented 
jfabre
jfabre
·
very cool!
Clossius
Clossius
·
Honestly, I don't really care about this feature because I don't want to pay per mini. I'm really hoping for a mini builder in Talespire where the community can create and share minis. However, with that said I appreciate all the hard work you all do for this software! I LOVE IT!
HonestLion
HonestLion
·
Thank you!
Phantombit
Phantombit
·
Please I ask that hero forge is not your ONLY form of user input for models. As it is a very far way shy of creature models, and not to be a dick but the Creature models presented in current packs for Talespire are greatly lacking... Not only myself but many others are great 3d modelers and to use models given perimeters for our games would be great, ESPECIALLY SENCE I designed some monsters that ONLY exist in my world...

The Problem I see, is that by integrating Hero forge there is some abandonment of having some system to design and implement tokens in color in system in talespire.

which was a promised feature in the kickstarter...
mesclin
mesclin
·
@Phantombit - The developers have already stated that this is in no way going to replace the planned customization builder (aka TaleWeaver) they included in the Kickstarter.  This is just another useful method to get minis inside TaleSpire.  If you don't use HeroForge, then don't worry about this post.  We will be getting an official custom mini builder so hang tight.
WyattH
WyattH
·
You a hero! Keep up the hard work.  I joined from Zee’s videos and I am floored by your passion and work!

ALSO
I want hero forge mini’s so I am excited about this 🤩
ninja_galt
ninja_galt
·
Nice.