sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Rendering question using ruby in SU

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 173 Views 2 Watching
    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.
    • J Offline
      jinchao
      last edited by

      Hi guys,
      Does anyone know how I can control the rendering of the scene in SketchUp using ruby? A lot of techniques (e.g. real-time shadow map, reflection, refraction, etc) require access to rendering.

      The reason why I need the knowledge here is that I'm creating a stereoscopic view(the true 3D for which u need to wear red&blue glasses) for SU. I basically have to rendering the scene twice, from different view perspective, on the same canvas to get an anaglyph, which looks like this:
      http://www.flickr.com/photos/pistachino/3612725759/in/pool-anaglyph
      .

      Thanks a lot,
      Jinchao

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        You can't do reflection and refraction in SU.

        The only thing you can do is set the Style settings - same as what you do in the Styles Window. http://code.google.com/apis/sketchup/docs/ourdoc/renderingoptions.html

        If you need access to the OpenGL rendering you can't use Ruby for that. You'll have to hook into it by other means.

        btw, your image doesn't load.

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement