Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Fit image to a plane maintaining the ratio of the image?

    Cinema 4D SDK
    python r20
    1
    2
    550
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pim
      last edited by pim

      How to fit an image to a plane maintaining the ratio of the image?

      To have more control later on (scale and move the texture), I set the mapping to Flat and set Tiling off.
      When I drag the material (with the image) on the plane (1000x1000) the image is place on the plane without taking the ratio into account.

      I can do it manually by using Camara Map as projection and then eyeball the correct by moving the camera over (here) Z axis.

      0_1552138229271_5b273160-46eb-44ed-a14b-ea0f549c6cbf-image.png

      But when I then change the projection to Flat, the scaling is no longer correct.
      Although the Coordinates - Scale of the texture tag stay the same.

      0_1552138732170_8ccfdd0e-32c8-4489-9647-356055e7635a-image.png

      0_1552138629665_c00974de-9387-4419-8aa4-22849ab1f5be-image.png

      1 Reply Last reply Reply Quote 0
      • P
        pim
        last edited by

        Together with the help from the c4dlounge.eu forum the issues is solved.
        The main issue was I did not read the manual good enough.

        "Note that Size symbolizes the axis size and not the expansion of the object itself. For planar projections, the true dimension is the two/fold of the axis length."

        1 Reply Last reply Reply Quote 3
        • First post
          Last post