[osg-submissions] FLT export: minor fixes
Paul Martz
pmartz at skew-matrix.com
Mon Mar 31 09:40:33 PDT 2008
Thanks Brede and Gordon --
No sweat, Gordon -- osgSim::LightPoint objects are already supported in the
exporter.
I guess my dilemma at this point, which might not have been clear in my last
post, is this: If I am to rewrite the backend of the exporter to provide
better and more efficient Mesh support, then why would I ever need to export
a Face record? And consequently, why would I use the Vertex Palette?
And it turns out I need to use the Face record for Billboards, and also use
the Vertex Palette to store the vertices of Light Points. In a separate
thread, Jason Daly (I think) pointed out that I could also support POINTS as
1-vertex Face records. Similarly, I could support LINES, TRIANGLES, QUADS,
and POLYGONS as 2-, 3-, 4-, and n-vertex Face records. Pretty much
everything else would be a Mesh.
Does this sound like the right way to go? Diving into the code today,
hopefully (though I'm fighting off a cold, so who knows how much progress
I'll make).
-Paul
> -----Original Message-----
> From: osg-submissions-bounces at lists.openscenegraph.org
> [mailto:osg-submissions-bounces at lists.openscenegraph.org] On
> Behalf Of Gordon Tomlinson
> Sent: Monday, March 31, 2008 9:52 AM
> To: 'OpenSceneGraph Submissions'
> Subject: Re: [osg-submissions] FLT export: minor fixes
>
> Err 'light point record' ?
>
> Theres extra work to save in to the file as a light point is
> more than just a vert in OpenFLight...
>
> ( see pages 38-42, 146-150 of the 16-3a spec , op code 130,111,131)
>
> -----Original Message-----
> From: osg-submissions-bounces at lists.openscenegraph.org
> [mailto:osg-submissions-bounces at lists.openscenegraph.org] On
> Behalf Of Jason Daly
> Sent: Monday, March 31, 2008 11:33 AM
> To: OpenSceneGraph Submissions
> Subject: Re: [osg-submissions] FLT export: minor fixes
>
> Paul Martz wrote:
> > The warning about GL_POINTS is valid -- No way to create point prim
> > itives in a FLT file, so they get dropped with warning messages.
> >
>
> I thought a point was just a face record with one vertex. I
> don't know for sure that the format works that way, but
> that's how it works in Creator...
>
> --"J"
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-o
> penscenegraph.
> org
>
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-o
> penscenegraph.org
More information about the osg-submissions
mailing list