NAME
SDL::Tutorial::3DWorld::3DS - Support for loading 3D models from 3DS files
SYNOPSIS
# Create the object but don't load anything
my $model = SDL::Tutorial::3DWorld::3DS->new(
file => 'mymodel.3ds',
);
# Load the model into OpenGL
$model->init;
# Render the model into the current scene
$model->display;
DESCRIPTION
SDL::Tutorial::3DWorld::3DS provides a basic implementation of a 3DS 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 3DS 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
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.