NAME

SDL::Tutorial::3DWorld::OBJ - Support for loading 3D models from OBJ files

SYNOPSIS

# Create the object but don't load anything
my $model = SDL::Tutorial::3DWorld::OBJ->new(
    file => 'mymodel.obj',
);

# Load the model into OpenGL
$model->init;

# Render the model into the current scene
$model->display;

DESCRIPTION

SDL::Tutorial::3DWorld::OBJ provides a basic implementation of a OBJ file parser.

Given a file name, it will load the file and parse the contents directly into a compiled OpenGL display list.

The OpenGL display list can then be executed directly from the OBJ object.

The current implementation is extremely preliminary and functionality will be gradually fleshed out over time.

In this initial test implementation, the model will only render as a set of points in space using the pre-existing material settings.

SUPPORT

Bugs should be reported via the CPAN bug tracker at

http://rt.cpan.org/NoAuth/ReportBug.html?Queue=OpenGL-RWX

AUTHOR

Adam Kennedy <adamk@cpan.org>

SEE ALSO

OpenGL

COPYRIGHT

Copyright 2010 Adam Kennedy.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.