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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Texturing Sky Object in Viewport

    SDK Help
    0
    3
    324
    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
      Helper
      last edited by

      On 20/03/2016 at 18:17, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   17 
      Platform:    Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi,

      Is there a way to texture a sky object in the viewport from a TagData plugin? We're using a sky object (Osky) to represent our RenderMan dome light and attaching our tag data to the sky. Our dome light can take a color map (HDRI) as a parameter. I want to be able to texture the sky object with the color map for better visualization, hopefully from of TagData plugin's Draw method. Is that possible?

      Thanks,
      Ian

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

        On 21/03/2016 at 03:45, xxxxxxxx wrote:

        Hello,

        what exactly do you mean with "Sky" object? One can add a "Sky" object to the scene and assign a material. Such modifications should only be done from the main thread and not from the drawing pipeline (and "Draw" functions).

        So if there is no "Sky" object in the scene there is no sky to texture. But what you could do in the "Draw" function of a tag is to draw a textured virtual polygon sky sphere with BaseDraw::DrawTexture(). But what do you do when you have multiple tags with different skies? It might be better to draw something like a sky in the "Draw" function of a SceneHook. See also 2D viewport drawing using a SceneHook[URL-REMOVED].

        Best wishes,
        Sebastian


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

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

          On 21/03/2016 at 11:06, xxxxxxxx wrote:

          OK, thanks, Sebastian. I'll take a look at SceneHook.

          Ian

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