[osg-users] [osgPlugins] AC3D Loader

Chris Hanson xenon at alphapixel.com
Wed Dec 14 10:44:09 PST 2016


On Mon, Dec 12, 2016 at 10:48 PM, Nikolai Christensen <
emptyyetfull at gmail.com> wrote:

> Secondly, what about lines after:
> else if (objectType == ObjectTypeLight) { // add a light source to the
> scene 1 Nov 2003
> Why add a lightsource (if thats whats happening)? Isn't this loader used
> by many projects just to load fragments of a larger scene, will each
> fragment then get a lightsource?
> Notice AC3D does not support lights in the fileformat to my knowledge.
>

  If you look at the code here:
http://trac.openscenegraph.org/projects/osg//browser/OpenSceneGraph/branches/OpenSceneGraph-3.0/src/osgPlugins/ac/ac3d.cpp#L1157

 it appears that the light being added IS specified in the AC3D file, so
OSG is adding the light, as directed.


> Lastly, why tesselate geometry at all? Does OSG only handle triangles?
>

  Well, OSG does handle more than triangles (QUADS, TRISTRIPS, etc) but
modern OpenGL actually only handle triangles internally and trianlges is
what it renders best. Are you asking if OSG supports pure CSG primitives?
it does not, because OpenGL does not.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. Xenon at AlphaPixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Code Forensics • Digital Imaging • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161214/8d5c5c99/attachment-0003.htm>


More information about the osg-users mailing list