Loading 3D points & normals into OpenGL?

Hi, I am considering writing a VRML (.wrl) parser so that I can load points and normals for a game I'm making in Haskell. Is there something around that will already do the trick? Or perhaps another format is preferred and already supported? Thanks, Duane Johnson (canadaduane) http://blog.inquirylabs.com/

You might be interested in the obj library:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/obj
Luke
On Wed, Mar 11, 2009 at 5:23 PM, Duane Johnson
Hi,
I am considering writing a VRML (.wrl) parser so that I can load points and normals for a game I'm making in Haskell. Is there something around that will already do the trick? Or perhaps another format is preferred and already supported?
Thanks, Duane Johnson (canadaduane) http://blog.inquirylabs.com/ _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

The MTL portion of that library depends on an external DevIL library ... is there a way to specify just the Obj portion which has no such dependency? Thanks, Duane On Mar 11, 2009, at 5:28 PM, Luke Palmer wrote:
You might be interested in the obj library: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/obj
Luke
On Wed, Mar 11, 2009 at 5:23 PM, Duane Johnson
wrote: Hi,
I am considering writing a VRML (.wrl) parser so that I can load points and normals for a game I'm making in Haskell. Is there something around that will already do the trick? Or perhaps another format is preferred and already supported?
Thanks, Duane Johnson (canadaduane) http://blog.inquirylabs.com/ _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

If you were to strip out all texture loading code, then yes, otherwise, no. Bob On 12 Mar 2009, at 01:36, Duane Johnson wrote:
The MTL portion of that library depends on an external DevIL library ... is there a way to specify just the Obj portion which has no such dependency?
Thanks, Duane
On Mar 11, 2009, at 5:28 PM, Luke Palmer wrote:
You might be interested in the obj library: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/obj
Luke
On Wed, Mar 11, 2009 at 5:23 PM, Duane Johnson
wrote: Hi,
I am considering writing a VRML (.wrl) parser so that I can load points and normals for a game I'm making in Haskell. Is there something around that will already do the trick? Or perhaps another format is preferred and already supported?
Thanks, Duane Johnson (canadaduane) http://blog.inquirylabs.com/ _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hello,
Duane Johnson
Is there something around that will already do the trick? Or perhaps another format is preferred and already supported?
I'd advise you to restrict yourself to your (specific?) requirements. VRML is complex, and in fact can be an overkill to use in a (simple?) game. There's another route you can take, though: write an exporter from some intermediate format (like Collada or Blender), that would strip off features you don't intend to handle. -- Cheers, Artyom Shalkhakov
participants (4)
-
Artyom Shalkhakov
-
Duane Johnson
-
Luke Palmer
-
Thomas Davie