<?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>1155</bug_id>
          
          <creation_ts>2015-04-21 10:52:36 +0200</creation_ts>
          <short_desc>Bindless vertices rendering</short_desc>
          <delta_ts>2015-09-27 01:11:21 +0200</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.3.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Giuseppe Barbieri">elect86</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4707</commentid>
    <comment_count>0</comment_count>
    <who name="Giuseppe Barbieri">elect86</who>
    <bug_when>2015-04-21 10:52:36 +0200</bug_when>
    <thetext>I am trying to render vertices in bindless mode

I create each mesh and get their 64b vertex array pointer

https://github.com/elect86/NvGlSamples/blob/master/NvGlSamples/src/nvGlSamples/bindlessApp/util/Mesh.java#L80

Then, before the mesh.render() I set the attributes, enable it and its client state

https://github.com/elect86/NvGlSamples/blob/master/NvGlSamples/src/nvGlSamples/bindlessApp/util/Mesh.java#L115-140

and in the mesh.render() I set up the pointers to the vertices attributes

https://github.com/elect86/NvGlSamples/blob/master/NvGlSamples/src/nvGlSamples/bindlessApp/util/Mesh.java#L186-188

and then finally render

But I get this at the glDrawElements

Caused by: com.jogamp.opengl.GLException: element vertex_buffer_object must be bound to call this method
        at jogamp.opengl.gl4.GL4bcImpl.checkBufferObject(GL4bcImpl.java:39146)
        at jogamp.opengl.gl4.GL4bcImpl.checkElementVBOBound(GL4bcImpl.java:39197)
        at jogamp.opengl.gl4.GL4bcImpl.glDrawElements(GL4bcImpl.java:5440)
        at nvGlSamples.bindlessApp.util.Mesh.render(Mesh.java:223)

I think this is a bug of jogl that doesnt take in account the bindless rendering and requires a vbo in anycase


You can reproduce it by cloning my bindlessApp sample, it is pretty small

https://github.com/elect86/NvGlSamples

you have also to clone jglm and sdk

https://github.com/elect86/java-unofficial-opengl-SDK

https://github.com/elect86/Jglm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4711</commentid>
    <comment_count>1</comment_count>
    <who name="Giuseppe Barbieri">elect86</who>
    <bug_when>2015-04-29 22:05:39 +0200</bug_when>
    <thetext>I was joking, I tried again by using properly the dsa and it works...

It is awesome!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>