Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?

2008-11-24 Thread Paul Martz
 Hi Guys,
 
 I flagged this thread up as one that might produce a fix to 
 the OSG's OpenFlight plugin.  Has anything been done in this 
 direction yet?  If so please don't forgot to post it to 
 osg-submissions.
 
 Cheers,
 Robert.

Hi Robert -- After reviewing this thread, it looks like the major issue has
a workaround. It might be helpful to add an export option to disable
interpretation of Polygon Offset as a request for subfacing. Or, better yet,
it might be worthwhile to dig into why subfacing was breaking the external
reference in the first place.

Bottom line is that the exporter was designed to export scene graphs that
are very similar to those created by the importer, and supporting a clean
export of an arbitrary scene graph is way outside the scope of the exporter
as it currently exists.

However, contributions are welcome. :-)
   -Paul

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


Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?

2008-11-24 Thread Robert Osfield
Hi Guys,

I flagged this thread up as one that might produce a fix to the OSG's
OpenFlight plugin.  Has anything been done in this direction yet?  If
so please don't forgot to post it to osg-submissions.

Cheers,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?

2008-11-13 Thread Argentieri, John-P63223
Paul,
 
Sure enough, removing the PolygonOffset attribute and Polygon Offset
Fill mode permitted me to write a valid OpenFlight file. Thank you for
providing me with enough information to succeed at this task!!! I've
caught up on some serious lost sleep!
 
Just so you are aware, I think there are problems with not just the
Subfaces, but with external references also. I'm not sure, but I thought
I witnessed the FLT writer automatically making external references if a
subtree of what it's writing was read in from a FLT. I succeeded only
after converting all of my internal models to .osg format, then writing
the master file in FLT format.
 
Hope that is useful to you!
Your pal,
John Argentieri



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


Paul,
 
I tried to do setAttribute( m_pPolygonOffset, osg::StateAttribute::OFF
); but I suppose your code may still be able to detect that the
attribute is present. I forgot there was a removeAttribute. Do you think
it's worth a shot for me to code it up and try again? 
 
Thanks!
John



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


John -- Use of polygon offset controls whether the exporter uses
subfaces or not. It might be the case that the subface code has some
kind of problem with texture mapping.
 
One thing you can try is to go into expGeometryRecords.cpp and disable
use of subfaces by commenting out the SubfaceHelper instances at lines
934 and 1023. This will cause incorrect rendering of coplanar polygons,
of course, but if it changes the behavior of your texture mapping issue,
then this is a good indication of where the problem lies.
 
Let me know how it goes.
   -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

Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?

2008-11-12 Thread Stephen H. Westin

Argentieri, John-P63223 wrote:

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 you send me a (reasonably small) set of FLT files, I can take a look 
and perhaps get a bit more specific

than somehow broken.

We have many assets in OpenFlight format, so I perforce have learned 
some of the internals and built

a few tools to peer inside.

--
Stephen H. Westin
Software Engineer
Doron Precision Systems, Inc.
P. O. Box 400
Binghamton, NY 13902-0400

[EMAIL PROTECTED]

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


Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?

2008-11-12 Thread Paul Martz
John -- Use of polygon offset controls whether the exporter uses subfaces or
not. It might be the case that the subface code has some kind of problem
with texture mapping.
 
One thing you can try is to go into expGeometryRecords.cpp and disable use
of subfaces by commenting out the SubfaceHelper instances at lines 934 and
1023. This will cause incorrect rendering of coplanar polygons, of course,
but if it changes the behavior of your texture mapping issue, then this is a
good indication of where the problem lies.
 
Let me know how it goes.
   -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

Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?

2008-11-12 Thread Argentieri, John-P63223
Paul,
 
I tried to do setAttribute( m_pPolygonOffset, osg::StateAttribute::OFF
); but I suppose your code may still be able to detect that the
attribute is present. I forgot there was a removeAttribute. Do you think
it's worth a shot for me to code it up and try again? 
 
Thanks!
John



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


John -- Use of polygon offset controls whether the exporter uses
subfaces or not. It might be the case that the subface code has some
kind of problem with texture mapping.
 
One thing you can try is to go into expGeometryRecords.cpp and disable
use of subfaces by commenting out the SubfaceHelper instances at lines
934 and 1023. This will cause incorrect rendering of coplanar polygons,
of course, but if it changes the behavior of your texture mapping issue,
then this is a good indication of where the problem lies.
 
Let me know how it goes.
   -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

Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?

2008-11-12 Thread Paul Martz
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

Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?

2008-11-12 Thread Argentieri, John-P63223
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

Re: [osg-users] BUG FOUND: FLT Writer Duplicate Node Names?

2008-11-11 Thread Paul Martz
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