[0.18.1712] World Feature name display exception.

Started by duduluu, November 04, 2017, 09:49:43 AM

Previous topic - Next topic

duduluu

Those non-English strings can not be display.
Maybe this a bug about font?

[attachment deleted by admin: too old]
RimTrans translation tool for RimWorld
RimWorld-English original text for translating RimWorld
RimWorld-zh.com my translation team website

ison

The problem is that world feature names use signed distance field text rendering technique which requires using texture atlases, and there's simply too many chinese characters. Rendering all of them into a texture would require too much memory.

I think that the only option would be to make chinese characters not use signed distance field rendering and let them be a bit blurry. Though it's quite a big task, so I'm not sure if it'll make it to A18.

Sorry for the inconvenience.

duduluu

#2
I have an idea.
Do not render all of the characters, only render the text those appear at runtime.
Due to the world feature names won't be changed after generating a planet.
And for performance, storge all these text textures in a hashtable.
RimTrans translation tool for RimWorld
RimWorld-English original text for translating RimWorld
RimWorld-zh.com my translation team website

ison

#3
True, we could automatically generate only the required characters at runtime. It's a bit complex, but this way we could keep the signed distance field rendering technique. The only disadvantage is that the TextMesh Pro Font Asset Creator (which we use to generate texture atlases) doesn't work outside the Unity editor I think, so we'd have to reimplement it somehow.

// edit: fixed, thanks