# Section plane and cast shadows, is Ruby the answer?

**URL:** <https://forums.sketchup.com/t/section-plane-and-cast-shadows-is-ruby-the-answer/48993>\
**Category:** Developers\
**Created:** [July 26, 2017, 12:43pm UTC](https://forums.sketchup.com/t/section-plane-and-cast-shadows-is-ruby-the-answer/48993 "2017-07-26T12:43:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![skdeish](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@skdeish](https://forums.sketchup.com/u/skdeish)\
**Post date:** [July 26, 2017, 12:43pm UTC](https://forums.sketchup.com/t/section-plane-and-cast-shadows-is-ruby-the-answer/48993/1 "2017-07-26T12:43:54Z")

</div>

Hi folks, I posted a question on the general forum over here: [The section plane and cast shadows, 2017](https://forums.sketchup.com/t/the-section-plane-and-cast-shadows-2017/48945) regarding casting proper shadows while there is an active section plane. As I suspected, there don’t seem to be any quick fixes to this issue besides painting on a transparent .png material in front of the section plane.

There has to be a way. I imagine that way has something to do with Ruby. Has anyone here fought with this problem before? The whole purpose of the section plane is negated when it doesn’t reflect what an actual view inside the building would end up looking like.

I have a tiny bit of experience in C#, and I once was able to modify a bit of Ruby to match cameras with Rhino ([Match Rhino and Sketchup Cameras — Deisher Studio](http://www.deisherstudio.com/blog/2017/7/4/match-rhino-and-sketchup-cameras)), so I’m open to any and all suggestions.

---

<div class="post-metadata">

**Author:** ![Aerilius](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@Aerilius](https://forums.sketchup.com/u/Aerilius)\
**Post date:** [July 26, 2017, 2:18pm UTC](https://forums.sketchup.com/t/section-plane-and-cast-shadows-is-ruby-the-answer/48993/2 "2017-07-26T14:18:48Z")

</div>

SketchUp’s Ruby API allows to create and modify geometry, but rendering is done by SketchUp. There is no way Ruby can help here because Ruby can only do what the API provides.

While you can make drawing elements not cast shadow, you can unfortunately not make hidden drawing elements cast shadow. I tried grouping an object with section plane, and add a copy of the object in same place for casting shadow. When I set the copy’s material to full transparent (or set it to hidden), its shadow disappears.

---

<div class="post-metadata">

**Author:** ![Anssi](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/anssi/32/105_2.png) [@Anssi](https://forums.sketchup.com/u/Anssi)\
**Post date:** [July 26, 2017, 5:22pm UTC](https://forums.sketchup.com/t/section-plane-and-cast-shadows-is-ruby-the-answer/48993/3 "2017-07-26T17:22:33Z")

</div>

The only way you can make an invisible object cast a shadow is to create a material that uses as a texture a 100% transparent PNG image but opacity set to over 70% and paint your object with that.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sketchup/original/3X/f/2/f2a121500b085ed60806607a82720b092d800bb3.png) [@system](https://forums.sketchup.com/u/system)\
**Post date:** [October 26, 2017, 9:22am UTC](https://forums.sketchup.com/t/section-plane-and-cast-shadows-is-ruby-the-answer/48993/4 "2017-10-26T09:22:52Z")

</div>

Closed on October 26, 2017, 9:22am UTC

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.
