Reply – Re: Loading and drawing .obj models
Your Name
Subject
Message
or Cancel
In Reply To
Re: Loading and drawing .obj models
— by Demoscene Passivist Demoscene Passivist
>I am wondering where i could get the library for "framework.base"?

The "framework.base" package is part of my JOGL2 development framework. U can download it from my github repository. Feel free to use/modify it

>And how can I use the loadWavefrontObjectAsDisplayList method?

For a simple example take a look at GL2_UVUnwrap.java. The usage comes down to only two lines:

init+loading:
int mDisplayListID = WavefrontObjectLoader_DisplayList.loadWavefrontObjectAsDisplayList(inGL,"/binaries/geometry/TextureBaking_Normals.wobj.zip");

and usage (every frame):
inGL.glCallList(mDisplayListID);

The repository/framework also contains a lot of other examples on what u can do with JOGL2. For a quick overview take a look at my youtube channel.