<?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>414</bug_id>
          
          <creation_ts>2010-09-27 01:36:49 +0200</creation_ts>
          <short_desc>GLU methods taking double arrays do not work anymore</short_desc>
          <delta_ts>2010-11-20 09:40:12 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>opengl</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Julien Gouesse">gouessej</reporter>
          <assigned_to name="Julien Gouesse">gouessej</assigned_to>
          <cc>sgothel</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>d6750dfe8de1d3606f00ad8263d6060a937f33e5</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>508</commentid>
    <comment_count>0</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2010-09-27 01:36:49 +0200</bug_when>
    <thetext>GLU methods taking double arrays do not work anymore because the double arrays in input/output are replaced by float arrays but the changes on float arrays used internally are not reflected back to double arrays. 

For example, gluUnProject(double winX, double winY, double winZ, double[] model, int model_offset, double[] proj, int proj_offset, int[] view, int view_offset, double[] objPos, int objPos_offset) does not work whereas its float equivalent works.

HOW TO TEST:
DO: call gluUnProject(double winX, double winY, double winZ, double[] model, int model_offset, double[] proj, int proj_offset, int[] view, int view_offset, double[] objPos, int objPos_offset) with objPos containing only NaN values
RESULT: the arrays still contain NaN values
EXPECT: the arrays contain valid values</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>509</commentid>
    <comment_count>1</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2010-09-27 04:02:26 +0200</bug_when>
    <thetext>This bug concerns only gluProject, gluUnproject and gluUnproject4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>594</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-11-19 06:14:09 +0100</bug_when>
    <thetext>fixed with d6750dfe8de1d3606f00ad8263d6060a937f33e5

Even though the double[] variant is not recommended within a float based GLU env .. ,
well, it should work now.

Please verify.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>599</commentid>
    <comment_count>3</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2010-11-19 09:16:53 +0100</bug_when>
    <thetext>Hi!

I will verify this Monday morning when it is in the autobuild. Your fix is fine and less impacting than mine but we lose some precision. I wrote a class ProjectDouble that performs these operations on doubles rather than on floats but if your solution is accurate enough, it is ok for me. Thank you very much for this fix. Great job :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-11-20 09:40:12 +0100</bug_when>
    <thetext>still waiting for your repo .. and pull requests :)

so if you can add your double project as well .. sure thing, you decide.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>