Graphics

 View Only
  • 1.  Texture Challenge.

    Posted 09-26-2017 16:31
    I'm making a simple scene just for testing purposes to help me write an interface for it. I'll get the actual scene from one of our artists, and so this isn't an urgent question, it's just for my own edification.

    I have head shot images. They are HD aspect (1280x720). I want to map them onto quads with a square aspect. The quads are rotated 45 degrees to give them a diamond shape (it's still square, though). However, I want the texture to appear straight, not rotated 45 degrees.

    I can't figure it out. I think the order of operations isn't what I expected. If I check "maintain aspect ratio of texture, no matter which mode I choose, if I try to rotate the texture it gets skewed. It seems to fit, then rotate, instead of rotate and then fit.

    I tried a lot of weird things using masks, but they screw up with you animate (rotate) them.

    It seems, offhand, like such a simple thing. It's not keeping me from writing my code while I'm waiting for the artist to finish (he'll have build the diamond in Maya and exported the proper UV coordinate mapping), it just seems silly that I can't figure out how to make it work.


  • 2.  RE: Texture Challenge.

    Posted 09-26-2017 17:01
    I would try using a slab without an extrude or bezel to do this. You'll still be able to skew the slabs as diamonds, but the texture will still look normal when applied.
    #XPression


  • 3.  RE: Texture Challenge.

    Posted 09-26-2017 17:49
    Thanks - I'm not actually skewing anything, just rotating a square (be it a quad or slab) -45 degrees on Z. Then I want to rotate back the texture 45 degrees so that it's oriented correctly. I want to crop out just that rotated square shape from the middle of the texture, it'll just be the persons head. I'm trying a slab, but rotating the image back so that it's not at an angle still seems to skew it.
    #XPression


  • 4.  RE: Texture Challenge.

    Posted 09-26-2017 18:06
    I think the suggestion involves not rotating the slab but skewing it to achieve the diamond shape, in this way, you needn't rotate anything, including the texture.
    #XPression


  • 5.  RE: Texture Challenge.

    Posted 09-26-2017 18:36
    Hmm. I will try that. I solved the issue using a quad, though. Scaled the X value by the inverse of the aspect ratio: 1/ (16/9) = 1/1.7777 = .5656, but then used the QUAD's texture coordinates to rotate the texture.
    #XPression