PDA

View Full Version : Lua Wavefront 3d model viewer



wraggster
May 21st, 2007, 23:54
News/release from Merick


I've been trying to work out how to load 3d models in Wavefront .obj format. I've gotten to the point where I can use the vertex data in the file to build a viewable model, but some of the faces don't get drawn, and some get drawn where there shouldn't be anything. Also, I think I've figured out how to put in the normals, but I can't really tell.

With what I have so far, I've put together a simple model viewer. Use the d-pad and shoulder buttons to rotate the model, and the square and cross buttons to zoom in and out.

the archive has the viewer script as well as some free models I found on the net. There's no file browser, so if you want to view a different model you'll need to edit the io.open statment in the script. Also, the script was made for mod 4

Download and Give feedback Via Comments
via merick (http://forums.qj.net/showpost.php?p=1568726&postcount=1)

Buddy4point0
May 22nd, 2007, 00:01
quite nice, this could be used in a 3d shooting game. do animations work for the models as well? if so then this is truely increadible

parkermauney
May 22nd, 2007, 00:31
Screens please! :p