Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

Rotated text on HUD

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Rotated text on HUD

    Did anyone figure out yet how to draw rotated text onto the HUD?
    In previous engine generations you could draw text to a ScriptedTexture and somehow put that onto the HUD (TexRotator or some rotated sheet actor in front of the player), but UT3 doesn't seem to have ScriptedTextures anymore.

  • #2
    native final function DrawRotatedTile( Texture2D Tex, rotator Rotation, float XL, float YL, float U, float V,float UL, float VL, optional float AnchorX, optional float AnchorY);

    native final function DrawRotatedMaterialTile( MaterialInterface Mat, rotator Rotation, float XL, float YL, optional float U, optional float V, optional float UL, optional float VL, optional float AnchorX, optional float AnchorY);

    found those in the canvas class. might be of use to you

    Comment


    • #3
      That'd mean I'd have to draw each character individually - not exactly what I had in mind.

      Comment


      • #4
        I bet you can't make a new texture out of a string of text? :P

        Comment


        • #5
          Nah, those two words only look similar.

          Comment


          • #6
            Oh god, I just noticed something.
            This is how the Flak Cannon ammo counter works:

            WTF?

            /me shudders

            Comment


            • #7
              Slot machine!

              Comment


              • #8
                LOL That's funny

                Comment


                • #9
                  And soon, the casino and brothel mod shalt be made.

                  Comment


                  • #10
                    rofl... i guess thats one way to do it

                    Comment


                    • #11
                      Yes, but just how desperate do you need to be to do something like this?

                      Comment


                      • #12
                        Haha, that's priceless.

                        Got to give them points for ingenuity there, that's a clever hack


                        EDIT: There does not appear to be a good 'non-hacky' way of drawing rotated text on the HUD; you could put in a request for a future patch to allow you to attach a canvas to a TextureRenderTarget2D, so that you can simulate scripted textures (I'm not sure why you aren't already able to actually).

                        I'm not sure how difficult that would be to code, but it would be infinitely useful as it could also be used to cache parts of HUD rendering (esp. the radar map, among other things) and thus speed up performance.

                        Comment


                        • #13
                          That's not a hack, that's the artists insisting that it would be cooler if you could see the numbers animate when you fired. Of course, then they made the firing animation have enough kickback to put the ammo counter offscreen. :P

                          Anyway...

                          The Canvas supports a transformation matrix that would let you draw arbitrary rotated stuff, but we only exposed the translation part to script. Oops. I will try to get it added for a patch, but it's highly unlikely it will make the first patch.

                          Comment


                          • #14
                            Ah, yes that makes sense Check my edit above, it would be nice to see a feature like that in a future patch too.

                            Comment

                            Working...
                            X