Login  Register

Re: Requesting help with VBO's

Posted by Braindrool on Dec 02, 2012; 5:19pm
URL: https://forum.jogamp.org/Requesting-help-with-VBO-s-tp4027348p4027377.html

This might sound a bit greedy, but do you think you could just write a short, working example from my code?

The basics of course:

package com.braindrool.game;

import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLEventListener;

public class Renderer implements GLEventListener {


        public void display(GLAutoDrawable drawable) {
        }

        public void dispose(GLAutoDrawable arg0) {

        }

        public void init(GLAutoDrawable drawable) {
        }

        public void reshape(GLAutoDrawable arg0, int arg1, int arg2, int arg3,
                        int arg4) {

        }

}

I already have a .ply model loader / scanner / transformer. E.g. model.load("models/monkey.ply") will return a FloatBuffer of the packed Vertices from file. But if you do decide to do this (which I very much hope you do ^^), would you please put in detail step-by-step what you're doing? I'd prefer to have all my questions answered in one response, but everyone knows a panacea doesn't exist :P