Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Paper Modeller 02

Paper Modeller 02

szecs
szecs
A non-programmer's programs · · 1 min read
2,306 2
Implemented texture coordinate loading. Took 2 hours due to a stupid mistake... Edge data is constructed and displayed: Only the polygon edges will be selectable. Edge flow will be important for selecting edge loops and edge rings. The .obj parser can parse polygons with arbitrary number of sides and converts the polygon to a triangle fan (in the most straightforward way).

.obj files and textures (non power of two textures too, but only 24 bit bmp textures yet) can be loaded separately with the file menu. I still haven't decided if I implement better material loading, or it will stay this way. After all, it's not an .obj viewer, so only the diffuse texture that's interesting. And I think I won't bother with material files and multiple texture files at all.

screenies: the pale dotted lines represent the non selectable lines (non polygon edges). (the texture is a totally random image of a random kitty, but the texture coordinates are just fine)

Discussion

Loading comments...