Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Login

    Material UVW Access

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 157 Views
    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.
    • H Offline
      Helper
      last edited by

      On 18/11/2014 at 10:47, xxxxxxxx wrote:

      Is it possible to obtain the uvw from a material?

      I am trying to correct a bug with Vray where a Displacer modifier is using a texture tag to obtain the displacement information. I have noticed that Vray cannot recognize the Displacer in that mode but works fine with a custom shader but uses the uvw tag as placement. The material is in flat mode so the uvw's are dynamically changing. The solution I have now is taking the global points of the mesh and converting them to uvw coordinates and updating the tag. This is incredibly slow hand hard to keep updated correctly during render time.

      Does anybody have a solution for getting the UV's created by a texture tag?

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 19/11/2014 at 02:09, xxxxxxxx wrote:

        Hello,

        the texture tag does not create UV coordinates. It's just a hint for the render engine which projection it should use while rendering the object. The UV coordinates based on the different projection types are not stored but created on the fly.

        In the C++ SDK you can use ProjectPoint()[URL-REMOVED] to create UV coordinates for a given texture and point. However this function is not included in the Python SDK.

        Best wishes,
        Sebastian


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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