Menu

#170 Wavefront .OBJ export mishandles spheres

v1.7.1.0
open
nobody
5
2015-05-26
2015-05-26
No

The current implementation of sphere geometry export when saving in Wavefront .OBJ format (save myfile.obj) is incomplete. For a simple pseudoatom at the origin (pseudoatom ps; as spheres; save ps.obj), the file looks like this:

v 0.000000 0.000000 0.000000
v 0.000000 0.000000 0.000000
v 0.000000 0.000000 0.000000
f 1 2 3

This means that the sphere is given 3 vertices (v) that are connected into a single face (f). But since all the vertices have the same coordinates, it basically gets rendered as a point, which is decidedly not what we want, and renders infinitesimally (if at all) in graphics viewers.

I'm currently working on a patch for this using the SphereRec struct from 'layer0/Sphere.h' and will submit it here and to the developers when it's finished.

Cheers,
Jared

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.