rendering_options, "back edges"

rendering_options, "back edges"

Postby daiku » Fri Sep 03, 2010 4:06 pm

How do you dump out the list of rendering options? I'm looking for the parameter for the new "back edges" edge style in SU8. CB.
0
User avatar
daiku 
PluginStore Author
PluginStore Author
 

Re: rendering_options, "back edges"

Postby thomthom » Fri Sep 03, 2010 4:09 pm

Sketchup.active_model.rendering_options.each_pair do |k,v|; puts "#{k}=#{v}"; end

BackgroundColor=Color(204, 204, 201, 255)
BandColor=Color( 0, 0, 0, 127)
ConstructionColor=Color( 0, 0, 0, 255)
DepthQueWidth=4
DisplayColorByLayer=false
DisplayDims=true
DisplayFog=false
DisplayInstanceAxes=false
DisplaySketchAxes=true
DisplayText=true
DisplayWatermarks=true
DrawDepthQue=false
DrawGround=false
DrawHidden=false
DrawHorizon=true
DrawLineEnds=true
DrawProfilesOnly=false
DrawSilhouettes=true
DrawUnderground=true
EdgeColorMode=1
EdgeDisplayMode=1
EdgeType=0
ExtendLines=true
FaceBackColor=Color(164, 178, 187, 255)
FaceColorMode=0
FaceFrontColor=Color(255, 255, 255, 255)
FogColor=Color(204, 204, 201, 255)
FogEndDist=-1.0
FogStartDist=-1.0
FogUseBkColor=true
ForegroundColor=Color( 0, 0, 0, 255)
GroundColor=Color(210, 208, 185, 255)
GroundTransparency=50
HideConstructionGeometry=false
HighlightColor=Color( 0, 1, 255, 255)
HorizonColor=Color( 0, 0, 0, 0)
InactiveFade=0.25
InactiveHidden=false
InstanceFade=0.5
InstanceHidden=false
JitterEdges=false
LineEndWidth=7
LineExtension=2
LockedColor=Color(255, 0, 0, 255)
MaterialTransparency=true
ModelTransparency=false
RenderMode=2
SectionActiveColor=Color(255, 135, 0, 255)
SectionCutWidth=3
SectionDefaultCutColor=Color( 0, 0, 0, 255)
SectionInactiveColor=Color(112, 105, 97, 255)
ShowViewName=true
SilhouetteWidth=2
SkyColor=Color(198, 205, 208, 255)
Texture=true
TransparencySort=0
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: rendering_options, "back edges"

Postby daiku » Fri Sep 03, 2010 4:44 pm

Thanks. I can't see any differences between when "back edges" is turned on or off. CB.
0
User avatar
daiku 
PluginStore Author
PluginStore Author
 

Re: rendering_options, "back edges"

Postby dem » Sat Dec 18, 2010 1:13 am

+1
I`m searching name of rendering option
0
User avatar
dem 
 

Re: rendering_options, "back edges"

Postby Dan Rathbun » Sun Dec 19, 2010 12:24 am

daiku wrote:Thanks. I can't see any differences between when "back edges" is turned on or off.

You are correct. I filed a beta bug report, and Simone logged it as internal bug 2916316.

Additional comments, and ideas I posted:
DanRathbun wrote:OK.. I looked at this a bit further, and my conculsion is that...

RenderingOptions[’EdgeDisplayMode’] needs to be updated.

The setting is tied to Edges

Currently the value of the RenderingOptions[’EdgeDisplayMode’] key is 0 when both are turned off.
Toggling Edges ON adds 1 to the value. (BUT.. if BackEdges is ON, and you turn Edges OFF, the value remains at 1.)

We need toggling BackEdges ON to add 2 to the value, so that:

RenderingOptions[’EdgeDisplayMode’] :
0 = both OFF
1 = Edges ON && BackEdges OFF
2 = Edges OFF && BackEdges ON
This may not be used (rendered,) meaning that mode 3 would be enforced, but we should still be able to test for mode setting 2 (the state of checkboxes in the Styles dialog, and the menu item check states.)
3 = both ON
0
    I'm not here much anymore. But a PM will fire email notifications.
    User avatar
    Dan Rathbun 
    PluginStore Author
    PluginStore Author
     

    Re: rendering_options, "back edges"

    Postby dem » Sun Dec 19, 2010 6:45 pm

    thanks, but
    in ruby console
    Code: Select all
    Sketchup.active_model.rendering_options["EdgeDisplayMode"] =

    works only 1 and 2

    Sketchup pro 8.0.3117
    0
    User avatar
    dem 
     

    Re: rendering_options, "back edges"

    Postby Dan Rathbun » Sun Dec 19, 2010 9:13 pm

    dem wrote:thanks, but
    in ruby console
    Code: Select all
    Sketchup.active_model.rendering_options["EdgeDisplayMode"] =

    works only 1 and 2

    Sketchup pro 8.0.3117

    It should only have 0 and 1 values at this time.

    You did not read what I said correctly. I am proposing that values 2 and 3 be added to the API so that we can know the BackEdges setting.
    0
      I'm not here much anymore. But a PM will fire email notifications.
      User avatar
      Dan Rathbun 
      PluginStore Author
      PluginStore Author
       

      Re: rendering_options, "back edges"

      Postby dem » Sun Dec 19, 2010 9:51 pm

      Sorry, i mind 0 and 1..
      And how can I add it to API? =)

      ps. my English is not good
      0
      User avatar
      dem 
       

      Re: rendering_options, "back edges"

      Postby Dan Rathbun » Mon Dec 20, 2010 6:06 am

      dem wrote:And how can I add it to API?

      You CANNOT.

      Google must do it on the C++ side of the application code.

      That is why I filed the Bug Report, and a number was assigned to it, by the Sketchup Development Team.
      0
        I'm not here much anymore. But a PM will fire email notifications.
        User avatar
        Dan Rathbun 
        PluginStore Author
        PluginStore Author
         

        Re: rendering_options, "back edges"

        Postby TBoy » Sat Dec 30, 2017 4:33 pm

        Any updated info for this topic?
        0

        TBoy 
         

        Re: rendering_options, "back edges"

        Postby Dan Rathbun » Sat Dec 30, 2017 9:52 pm

        TBoy wrote:Any updated info for this topic?


        YES. (5 years after this thread ...)

        In the SketchUp 2015 release, a new key was added to the RenderingOptions hash:

        The key is: "DrawBackEdges"

        See API documentation:
        http://ruby.sketchup.com/Sketchup/RenderingOptions.html
        0
          I'm not here much anymore. But a PM will fire email notifications.
          User avatar
          Dan Rathbun 
          PluginStore Author
          PluginStore Author
           

          SketchUcation One-Liner Adverts

          by Ad Machine » 5 minutes ago



          Ad Machine 
          Robot
           



           

          Return to Developers' Forum

          Who is online

          Users browsing this forum: No registered users and 10 guests

          Visit our sponsors: