sketchucation logo sketchucation
    • Login
    1. Home
    2. pballew
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 3
    • Groups 1

    pballew

    @pballew

    10
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    pballew Unfollow Follow
    registered-users

    Latest posts made by pballew

    • RE: [C++SDK] ISkpRenderer

      tomasz,

      Can you clarify what specifically you're trying to do here? I'm writing up the issue for slapi and I want to ensure I capture what you need correctly. Are you wanting to get access to 2D image data representing the current SketchUp drawing?

      Thanks,
      Paul

      @tomasz said:

      @tt_su said:

      I'm not familiar with the old C++ SDK, but you are aware that will be deprecated and removed, yes?

      Yes, I do. It is fine. I have to access the visible bitmap at high resolution as fast as possible. I will check the ISkpCamera. Maybe this will give me the required object.

      It would be nice to see same functionality in the SLAPI in a future.

      posted in Developers' Forum
      P
      pballew
    • RE: [C++SDK] ISkpRenderer

      tomasz,

      I'll remind you that SkpReader is being deprecated, and strongly recommend that you convert to either Ruby or the C API as soon as possible. I'll add an item on our side regarding your need to access the visible bitmap in high resolution through the C API.

      Looks like there's a get_Renderer on ISkpDocument. Is that one that you tried? If so, what did it do?

      For those parameters you mention, they are:

      bytesPerRow - allows for padding

      backgroundMode - the EBGRenderMode. Here's our enum values.
      enum EBGRenderMode {
      kBGNormal = 0,
      kBGWhite,
      kBGTransparent
      };

      format - Pixel format. Options:
      #define GL_COLOR_INDEX 0x1900
      #define GL_STENCIL_INDEX 0x1901
      #define GL_DEPTH_COMPONENT 0x1902
      #define GL_RED 0x1903
      #define GL_GREEN 0x1904
      #define GL_BLUE 0x1905
      #define GL_ALPHA 0x1906
      #define GL_RGB 0x1907
      #define GL_RGBA 0x1908
      #define GL_LUMINANCE 0x1909
      #define GL_LUMINANCE_ALPHA 0x190A

      type - Size of each data value. Here are the options.
      #define GL_BYTE 0x1400
      #define GL_UNSIGNED_BYTE 0x1401
      #define GL_SHORT 0x1402
      #define GL_UNSIGNED_SHORT 0x1403
      #define GL_INT 0x1404
      #define GL_UNSIGNED_INT 0x1405
      #define GL_FLOAT 0x1406
      #define GL_2_BYTES 0x1407
      #define GL_3_BYTES 0x1408
      #define GL_4_BYTES 0x1409
      #define GL_DOUBLE 0x140A

      Hope this helps,
      Paul

      posted in Developers' Forum
      P
      pballew
    • RE: Help with adding extension to Trimble's Extension Warehouse.

      Hi Renderiza,

      This error is because the SketchUp Extension Warehouse requires that you create and register your extension in your top-level .RB file, like this:

      my_extension = SketchupExtension.new("MyExtension", File.join("MyExtension", "loader.rb"))

      Set your name, description, version, creator, copyright properties here

      Sketchup.register_extension(my_extension, true)

      If you add that, your submission should work.

      Paul

      posted in Developers' Forum
      P
      pballew