Ue 4 spout wont accept all width

Home Forums Spout Developer Ue 4 spout wont accept all width

This topic contains 5 replies, has 2 voices, and was last updated by  leadedge 1 week, 4 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #3541

    jferland
    Participant

    I am using the Spout-UE4 plugin made by AleDel. The problem is that if my width is not a factor of 32 the texture get distorted (https://ibb.co/kXgwpv). Does someone have any idea what can cause that and how can I repair it ?

    • This topic was modified 1 week, 5 days ago by  jferland.
    #3543

    leadedge
    Keymaster

    I tried the Spout openframeworks sender example with the dimensions of your image (411, 513), and textures are generated and received OK without skew. But generally width should be a multiple of 4 pixels for compatibility with other software.

    Skew without multiple of 32 sounds like the texture should be a power of 2 or there is padding on each line. From what I can see, the UE4 plugin uses CopyResource to copy the texture you are passing in to a shared texture. Perhaps there is some incompatibility of the textures. Requirement for power of 2 with MipCount > 1 is described here :

    https://msdn.microsoft.com/en-us/library/windows/desktop/ff476150(v=vs.85)#ID3D11Device_CreateTexture2D

    Perhaps this will lead you to find a solution.

    #3544

    jferland
    Participant

    I found the problem, thanks for the help. I send the correction to AleDel and he correct it in his github.

    #3546

    leadedge
    Keymaster

    In case other people find a similar problem in other situations, it would be good to know what the problem was. I see no issue report on AleDel GitHub. Could you explain here?

    #3549

    jferland
    Participant

    https://github.com/AleDel/Spout-UE4/issues/34

    here is the issues. He didint use the right variable for the pitch of the texture. Hard to explain it more. feel free to ask more question

    #3551

    leadedge
    Keymaster

    Thanks for that. The issue link explains it all. I missed it – forgot to look in closed issues.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.