<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <blockquote
      cite="mid:44AAD051-0120-485A-BA84-6C7DCEE38ABF@maxneupert.de"
      type="cite">
      <div>
        <div>
          <blockquote type="cite">
            <div style="margin-top: 0px; margin-right: 0px;
              margin-bottom: 0px; margin-left: 0px;"><span
                style="font-family:'Helvetica'; font-size:medium;
                color:rgba(0, 0, 0, 1.0);"><b>Von: </b></span><span
                style="font-family:'Helvetica'; font-size:medium;">Jack
                &lt;<a moz-do-not-send="true"
                  href="mailto:jack@rybn.org">jack@rybn.org</a>&gt;<br>
              </span></div>
            <div style="margin-top: 0px; margin-right: 0px;
              margin-bottom: 0px; margin-left: 0px;"><span
                style="font-family:'Helvetica'; font-size:medium;
                color:rgba(0, 0, 0, 1.0);"><b>Betreff: </b></span><span
                style="font-family:'Helvetica'; font-size:medium;"><b>Aw:
                  [PD] Lighting glitch, [alpha]-object depth detection</b><br>
              </span></div>
            <div style="margin-top: 0px; margin-right: 0px;
              margin-bottom: 0px; margin-left: 0px;"><span
                style="font-family:'Helvetica'; font-size:medium;
                color:rgba(0, 0, 0, 1.0);"><b>Datum: </b></span><span
                style="font-family:'Helvetica'; font-size:medium;">17.
                Januar 2013 21:57:10 MEZ<br>
              </span></div>
            <div style="margin-top: 0px; margin-right: 0px;
              margin-bottom: 0px; margin-left: 0px;"><span
                style="font-family:'Helvetica'; font-size:medium;
                color:rgba(0, 0, 0, 1.0);"><b>An: </b></span><span
                style="font-family:'Helvetica'; font-size:medium;"><a
                  moz-do-not-send="true" href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
              </span></div>
            <br>
            <meta content="text/html; charset=ISO-8859-1"
              http-equiv="Content-Type">
            <div bgcolor="#FFFFFF" text="#000000">
              <div class="moz-cite-prefix">Le 17/01/2013 10:18, Klemens
                Schmiady a &eacute;crit&nbsp;:<br>
              </div>
              <blockquote cite="mid:50F7C1E8.5040101@uni-weimar.de"
                type="cite">
                <meta content="text/html; charset=ISO-8859-1"
                  http-equiv="Content-Type">
                <div class="moz-cite-prefix">Am 10.01.2013 18:38,
                  schrieb Jack:<br>
                </div>
                <blockquote cite="mid:50EEFC97.8040608@rybn.org"
                  type="cite">
                  <meta content="text/html; charset=ISO-8859-1"
                    http-equiv="Content-Type">
                  <div class="moz-cite-prefix">Le 10/01/2013 16:22, Max
                    a &eacute;crit&nbsp;:<br>
                  </div>
                  <blockquote
                    cite="mid:5B508CA1-87D5-4855-81F5-72E6A95072BA@revolwear.com"
                    type="cite">
                    <pre wrap="">Am 10.01.2013 um 12:34 schrieb Jack <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:jack@rybn.org">&lt;jack@rybn.org&gt;</a>:
</pre>
                    <blockquote type="cite">
                      <pre wrap="">Le 10/01/2013 11:57, Klemens Schmiady a &eacute;crit :
</pre>
                      <blockquote type="cite">
                        <pre wrap="">Am 10.01.2013 11:40, schrieb Cyrille Henry:
</pre>
                        <blockquote type="cite">
                          <pre wrap="">hello,

i can't reproduce this.
is there anything special to do in the patch?
cheers
c

Le 10/01/2013 11:06, Klemens Schmiady a &eacute;crit :
</pre>
                          <blockquote type="cite">
                            <pre wrap="">Hey there,

the sphere in combination with the lighting leads to strange
artefacts as shown in the .jpg.
Looking for a solution.
</pre>
                          </blockquote>
                        </blockquote>
                      </blockquote>
                      <pre wrap="">I think, this is because your viewpoint come too close to your geo (sphere).
Put a [max 2] (for example) on your Z axis for the viewpoint to avoid
collision.
</pre>
                    </blockquote>
                    <pre wrap="">i don't think it's that. i simplified the patch a bit more:

</pre>
                    <br>
                    <fieldset class="mimeAttachmentHeader"></fieldset>
                    <br>
                    <pre wrap="">with
GEM: ver: 0.93.3 
GEM: compiled: Nov 10 2011
i have the same phenomenon here.</pre>
                  </blockquote>
                  <br>
                  Yep, you are right Max. I think it was a problem with
                  the near clipping plane of the frustum. But i was
                  wrong...<br>
                  Cyrille, your patch seems to have the same problem if
                  you put an alpha = 0.5, or i am wrong ?<br>
                  Here a patch that enable culling.<br>
                  Hoping it helps to solve _this_ problem.<br>
                  ++<br>
                  <br>
                  Jack<br>
                  <br>
                  PS : dont't forget to start by rendering the light
                  before geos with an argument in [gemhead] ;)<br>
                  <br>
                  <fieldset class="mimeAttachmentHeader"></fieldset>
                  <pre wrap="">_______________________________________________
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -&gt; <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
                </blockquote>
                I implemented your patch into what I'm working on at the
                moment but the light goes all crazy and I don't know
                anything about openGL. <br>
                The lightsource should be in the center of the patch
                somehow.<br>
                Can you please help me with that!<br>
                <br>
                Thanks,<br>
                <br>
                Klemens<br>
                <br>
                <fieldset class="mimeAttachmentHeader"></fieldset>
                <br>
                <pre wrap="">_______________________________________________
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -&gt; <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
              </blockquote>
              Hello Klemens,<br>
              <br>
              Can you tell us your configuration (OS, Graphic card, Pd
              version and Gem version) ?<br>
              Have you put an <u>argument</u> in your [gemhead] ? See
              example (in Gem help) if you didn't put it.<br>
              You have to render lights before the first sphere. And the
              first sphere before the second sphere.<br>
              In fact, in your patch you can't know what is render first
              because you don't have this argument.<br>
              See attached patch if it works for you.<br>
              ++<br>
              <br>
              Jack<br>
              <br>
              <br>
              <br>
            </div>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div>
        <div>
          <blockquote type="cite">_______________________________________________<br>
            <a moz-do-not-send="true" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a>
            mailing list<br>
            UNSUBSCRIBE and account-management -&gt; <a
              moz-do-not-send="true"
              href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    I tried you patch I there are no visual differences between yours
    and mine.<br>
    <br>
    I'm using win7, intel hd graphics 4000 card, pd 0.42.5 extended and
    gem 0.93.3.<br>
    <br>
    Thanks,<br>
    <br>
    Klemens<br>
  </body>
</html>