Archaegeo / DualUniverseLuaIssues

DualUniverse LUA Issue Tracking
GNU General Public License v3.0
5 stars 0 forks source link

Fix 3D transformation of text using SVG/CSS #16

Closed EasternGamer closed 3 years ago

EasternGamer commented 3 years ago

Right now, there is no way to specify "rotate around your own axis" in SVG/CSS. The way you usually do it is via transform-box: fill-box; using CSS. However, through my testing, I found this does not work for some reason. I don't have any code on hand right now, but I used CodePen, and it definitely worked as intended with there and didn't in the game.

The only current workaround is wasteful and laggy, as in generating a new class in CSS, and defining the transform-origin at the piece of text, for every piece of text you add. This is just a nightmare regex wise and an easy way to cause unnecessary amounts of lag,

Archaegeo commented 3 years ago

Are you asking for NQ to fix SVG/CSS? heh.

but <path transform="rotate(%d)" doesnt work for you?

EasternGamer commented 3 years ago

Are you asking for NQ to fix SVG/CSS? heh.

but <path transform="rotate(%d)" doesnt work for you?

3D rotation of text, so no, it doesn't work. Inline transformation is what I wanted to do, but inline doesn't support rotateX, rotateY or rotateZ, or any form of 3D rotation, for some reason. (as far as I know)

Of course, I'm not unreasonable here. I know SVG/CSS/HTML is kinda on its way out, so if the new screen API can include such support, that would be just as good. Hence my previous thread asking for it.

NQ-Deckard commented 3 years ago

With time, we will be expanding on the various shapes and their methods that we offer in the lua screen units.

However, more complex text manipulation will likely be in the later stages once the core development of the Lua screen units is done.

Archaegeo commented 3 years ago

Closing for now