Skip to content

[models] Billboard has different size based on rotation #1762

Closed

Description

@nobytesgiven

Issue description

Billboards change in size if I rotate them in my image editor. I do not know if this is intentional but it would be nice to have consistent sizing for same sized images.

Issue Screenshot

image
image

Code Example

Just the basic billboard example, didn't edit the code.

Activity

  1. raysan5 commented on May 10, 2021

    @raysan5
    Owner

    Excuse me but I don't understand the issue, I just tested models_billboard example and it seems to work ok for me.

  2. nobytesgiven commented on May 10, 2021

    @nobytesgiven
    ContributorAuthor

    Excuse me but I don't understand the issue, I just tested models_billboard example and it seems to work ok for me.

    I just find it odd how the scaling is only based on the width of the image. I would expect the same image but rotated in my image editor would have consistent sizing when drawn.

  3. kayomn commented on May 19, 2021

    @kayomn

    If I understand the issue correct, all you have done with the images between those two screenshots is rotated it 90 degrees, correct?

  4. nobytesgiven commented on May 20, 2021

    @nobytesgiven
    ContributorAuthor

    If I understand the issue correct, all you have done with the images between those two screenshots is rotated it 90 degrees, correct?

    yes

  5. raysan5 commented on May 20, 2021

    @raysan5
    Owner

    @nobytesgiven Did you try with latest raylib from GitHub? DrawBillboardPro() was added recently.

  6. nobytesgiven commented on May 20, 2021

    @nobytesgiven
    ContributorAuthor

    Yes, this is not a bug, I'm just pointing out that the image scaling is only based on the image width and size (You can see the width on those images is the same). If this seems normal to everyone just close this PR, this is not priority. I opened it more like a discussion.
    image
    image
    billboard
    billboard

  7. nobytesgiven commented on May 30, 2021

    @nobytesgiven
    ContributorAuthor

    I guess this can be converted to a discussion/deleted, since noone seems to be bothered from it but me.

  8. Repository owner locked and limited conversation to collaborators on May 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions