<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1458</bug_id>
          
          <creation_ts>2023-09-24 01:49:29 +0200</creation_ts>
          <short_desc>GraphUI Z-Epsilon Support: Expose Z-Epsilon API in Scene and utilization in Button</short_desc>
          <delta_ts>2023-09-24 01:51:08 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>GraphUI</product>
          <component>Core</component>
          <version>2.6.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1454</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>FEATURE</cf_type>
          <cf_scm_refs>bc4a97a3751b32a7825a41481959f04ff3efb3d2
d5b17eddf7e7f1c33b269a3a2ed8eca959c6d639</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6874</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-09-24 01:49:29 +0200</bug_when>
    <thetext>Z-Epsilon is approximately the smallest Z value recognized by the graphics stack
to make a difference in Z positioning.

Z-Epsilon depends on the current projection matrix,
i.e. Z distance of the viewer.
See http://www.sjbaker.org/steve/omniv/love_your_z_buffer.html

z_epsilon = z * z / ( zNear * ( 1 &lt;&lt; zBits ) - z );

We utilize Z-Epsilon as the smallest offset between the button background shape
and the label text.

We also utilize Z-Epsilon as the offset to elevate the active (selected) shape (add z-offset) and select (pick) in Z descending order (Bug 1454).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6875</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-09-24 01:50:43 +0200</bug_when>
    <thetext>bc4a97a3751b32a7825a41481959f04ff3efb3d2
GraphUI Scene: Expose Z-Epsilon API for default and current PMVMatrixSetup values; Button add Z-Epsilon API for ctor and setLabelZOffset(..)

+++

d5b17eddf7e7f1c33b269a3a2ed8eca959c6d639
GraphUI Enhance: API doc; Scene/Button Z-offset and -epsilon; Push temp AffineTransform to local method; Simplify BaseButton setCorner(0) -&gt; setPerp(); Protected abstract ctor 

+++

..</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>