1 000 000 Vertex - VBO using GPU

dist.rar
dist-windows-i586.rar
dist-macosx-ppc.rar
dist-macosx-universal.rar
dist-linux-i586.rar


I will ask the geeks ?
How do you draw 1 Million vertex, 60 times for a second with processing ?
Befor i was responding that’s impossible… and i was so much frustred by that…I’m really exited to have found the powerfull Opengl draw methode…
Stop using pushMatrix() and drawing methode…
I will use a metaphor : Imagine you want to send something to another country… here country are hardware and something are vertex.
How do you process it ? Like it’s explain in the processing manual is :
From the Cpu (processor) put a vertex in an aircraft, send it to the Gpu (graphic card), and send it to the screen…
Well, now if i want to send 1000 vertex… will you send it one by one… then you have an aircraft with 1000 places. And the trick go more far… You just need to send it one time, and after just call the graphic card to send it to the screen.
So like geek we are, we call the Gpu 1000 task to draw the buffer.That is call the VertexBufferObject…

8 commentaires pour “1 000 000 Vertex - VBO using GPU”

  1. fx61803 dit :

    Hi Pascal,
    would be fine, just:
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: file:/C:/Users/Pascal/Documents/NetBeansProjects/PipelinBoostOpenGL/dist/launch.jnlp

  2. sleepybrett dit :

    unable to run
    ——
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: file:/C:/Users/Pascal/Documents/NetBeansProjects/PipelinBoostOpenGL/dist/launch.jnlp
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
    at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.launch(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

  3. antonio dit :

    i would really want to see how this works, but the thing will not load… looks like is looking for something in your harddrive :)

    com.sun.deploy.net.FailedDownloadException: Unable to load resource: file:/C:/Users/Pascal/Documents/NetBeansProjects/PipelinBoostOpenGL/dist/launch.jnlp
    at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:961)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1059)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1134)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1068)
    at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:142)
    at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:127)
    at com.sun.javaws.Launcher.updateFinalLaunchDesc(Launcher.java:227)
    at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:125)
    at com.sun.javaws.Launcher.launch(Launcher.java:95)
    at com.sun.javaws.Main.launchApp(Main.java:302)
    at com.sun.javaws.Main.continueInSecureThread(Main.java:212)
    at com.sun.javaws.Main$1.run(Main.java:107)
    at java.lang.Thread.run(Thread.java:613)

  4. sleepybrett dit :

    still broken

    java.io.FileNotFoundException: /C:/Users/Pascal/Documents/NetBeansProjects/PipelinBoostOpenGL/dist/launch.jnlp (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.(FileInputStream.java:106)
    at java.io.FileInputStream.(FileInputStream.java:66)
    at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
    at com.sun.javaws.net.BasicNetworkLayer.doRequest(BasicNetworkLayer.java:175)
    at com.sun.javaws.net.BasicNetworkLayer.doHeadRequest(BasicNetworkLayer.java:104)
    at com.sun.javaws.cache.DownloadProtocol.doDownload(DownloadProtocol.java:588)
    at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(DownloadProtocol.java:793)
    at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(LaunchDownload.java:135)
    at com.sun.javaws.Launcher.downloadResources(Launcher.java:1018)
    at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:382)
    at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
    at com.sun.javaws.Launcher.run(Launcher.java:165)
    at java.lang.Thread.run(Thread.java:613)

  5. Pascal Chirol dit :

    Arrrffffffff dsl…….
    J ai des problème d exportation…. il semblerai que NetBeans s’en charge mal…..
    Je vais donc changer la source est fournir une source non web-start….
    Voilou… je fais cela aujourd hui……

    I’m sorry….. it appear that i have some compilation problem with netbeans…..
    It’s really strange he want a local file…..
    Well I will give a not web start application today.

    Et je suis plutôt surprit de voir autant de commentaire….. ;-)

  6. Pascal Chirol dit :

    pour ce qui est des sources ou exemples - vous n’avait pas besoin de moi - chercher avec des mots comme VertexBufferObject, glBindBuffer, glBufferData, glGenBuffer, glDrawArrays, glVertexPointer.

  7. Pascal Chirol dit :

    distribution updated !

  8. amolins dit :

    thanks! now I can run it locally… and you are right, this is good stuff.

Laisser un commentaire

Vous devez être connecté pour publier un commentaire.