I must admit I'm stumped, John. From looking at the code in the exporter, I
can't see how it could possibly clear the texture palette override flag when
writing the external reference record. The spec says that when the flag is
set, the child FLT file should use it's own palette. So this should work.
 
I advise you to export to FLT under the debugger and step through
FltExportVisitor::writeExternalReference (expPrimaryRecords.cpp line 411)
and make sure that the "flags" written to the record really does contain the
bit for the texture palette.
   -Paul
 


  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Argentieri,
John-P63223
Sent: Wednesday, November 12, 2008 9:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?


Paul,
 
I'm not sure what the problem is, but I can see that when I create a scene
graph with ProxyNodes in memory, and write that scene graph to an OpenFlight
file using 2.6.1, the external references are somhow broken with respect to
textures. If I convert that  to an .osg and back to .flt using osgconv from
the command line, it seems to work in the 2.6.1 reader, all the way down to
OSG 1.2's primary reader when osgdb_flt.dll was mostly phased out.
 
However, none of the OpenFlight files generated by 2.6.1 can be opened using
the FLT reader in OSG 1.0 / osgdb_flt.dll. Do you have any idea why that is?
I get a single group node, so nothing even gets drawn in this case.
 
Thanks,
John
 
  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Martz
Sent: Tuesday, November 11, 2008 4:32 PM
To: 'OpenSceneGraph Users'
Subject: Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?


Thanks, John. If you fix this, please post the fix to osg-submissions.
   -Paul
 


  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Argentieri,
John-P63223
Sent: Tuesday, November 11, 2008 11:35 AM
To: [EMAIL PROTECTED]
Subject: Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?


Paul,
 
Attached is an example of a bug I found in the FLT writer. If the
GL_POLYGON_OFFSET remains inside of extref.osg, then converting it to FLT
using osgconv will cause the texture of the external reference to disappear.
If the GL_POLYGON_OFFSET is removed from extref.osg, then extref.osg is
converted to FLT using osgconv, the texture on the external reference
remains.
 
Thanks,
John Argentieri

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Argentieri,
John-P63223
Sent: Tuesday, November 11, 2008 12:29 PM
To: [EMAIL PROTECTED]
Subject: Re: [osg-users] FLT Writer Duplicate Node Names?


Guys,
 
Has anyone used the ProxyNode in this way, in OpenFlight files? My primary
file and my externally referenced file are both OpenFlight files. The
externally referenced file gets loaded, but the texture is incorrect. The
texture applied to the model, in my case, is the only one that is used
internally in the primary OpenFlight file. For example, my terrain surface
is internal and textured as grass. My externally reference tree models are
shaped like trees, but also textured in grass. I've tried moving the tree's
texture files around to be sure that it wasn't a path issue. It didn't work.
 
Is there anyone that can help me to resolve the issues I am having? All I
want to do is write an OpenFlight file that contains several clones of
another OpenFlight file. The straightforward approach breaks -- not for the
current OSG loader, but for other loaders that expect node names to be
unique.
 
Your friend,
John Argentieri
 
  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Martz
Sent: Friday, November 07, 2008 1:51 PM
To: 'OpenSceneGraph Users'
Subject: Re: [osg-users] FLT Writer Duplicate Node Names?


The exporter writes an external reference record when it encounters a
ProxyNode. The importer should do the inverse operation.
 
I searched for the error text you mentioned, but could not find any code in
OSG that displays that error, so I can't really help you with that.
   -Paul
 


  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Argentieri,
John-P63223
Sent: Friday, November 07, 2008 11:42 AM
To: [EMAIL PROTECTED]
Subject: Re: [osg-users] FLT Writer Duplicate Node Names?


Paul,
 
Is there a way that I can place multiple instances of an external .flt file
into another .flt file? I'm trying to use ProxyNode, but still getting these
errors:
 
Non primary record found as child. op=19
Non primary record found as child. op=19
Non primary record found as child. op=20
Non primary record found as child. op=20
 
Thanks,
John
 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Martz
Sent: Friday, November 07, 2008 12:51 PM
To: 'OpenSceneGraph Users'
Subject: Re: [osg-users] FLT Writer Duplicate Node Names?


The exporter dumps the Node name to the FLT record name, just as the
importer does the inverse operation. I don't believe there is any code to
check for and avoid duplicate node names.
 
I'd think it would be up to the application to specify unique Node names, as
the exporter has no other way to know what text should be written to the FLT
record name. I can see how it might be useful to have a "I don't care what
you name it, just make sure it's unique" mode. Currently, this doesn't
exist. You are welcome to add it.
   -Paul
 


  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Argentieri,
John-P63223
Sent: Friday, November 07, 2008 8:41 AM
To: [EMAIL PROTECTED]
Subject: [osg-users] FLT Writer Duplicate Node Names?


Hello all.
 
Does the FLT writer create duplicate node names for nodes with multiple
transforms as parents? We're having trouble sharing a single model inside of
multiple transforms scattered about. Some older OpenFlight software we are
interfacing to does not like this. Any thoughts guys?
 
Thank you,
John Argentieri 
Software Engineer 
GENERAL DYNAMICS 
C4 Systems 
[EMAIL PROTECTED] 

"This email message is for the sole use of the intended recipient(s) and may
contain GDC4S confidential or privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not an
intended recipient, please contact the sender by reply email and destroy all
copies of the original message."

 

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to