Re: [osg-users] [osgPlugins] Error when loading DirectX .x files

2010-08-17 Thread Robert Osfield
HI Tassilo,

Could you post fixes to the osg-submissions list (I believe you can do
it on the forum as well) and follow the submissions protocol:

   
http://www.openscenegraph.org/projects/osg/wiki/MailingLists/SubmissionsProtocol

Thanks,
Robert.

On Mon, Aug 16, 2010 at 6:08 PM, Tassilo Glander
 wrote:
> Hi all,
>
> as the bug is still in the reader, I would like to submit a fix that deals 
> with 2 more cases of how to format the material names. The current version 
> crashes when encountering materials as mentioned by Judy.
> I think, the format supported in the current version of mesh.cpp is not 
> correct, as the DirectX-Viewer included in DirectX-SDK (August 2009) cannot 
> read model files refering to materials without curly brackets.
>
> I would be happy, if someone could try the patch with other models.
>
> Thank you!
>
> Cheers,
> Tassilo
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=30800#30800
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/fix_x_plugindiff_312.txt
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPlugins] Error when loading DirectX .x files

2010-08-16 Thread Tassilo Glander
Hi all,

as the bug is still in the reader, I would like to submit a fix that deals with 
2 more cases of how to format the material names. The current version crashes 
when encountering materials as mentioned by Judy.
I think, the format supported in the current version of mesh.cpp is not 
correct, as the DirectX-Viewer included in DirectX-SDK (August 2009) cannot 
read model files refering to materials without curly brackets. 

I would be happy, if someone could try the patch with other models.

Thank you!

Cheers,
Tassilo

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30800#30800




Attachments: 
http://forum.openscenegraph.org//files/fix_x_plugindiff_312.txt


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


Re: [osg-users] [osgPlugins] Error when loading DirectX .x files

2009-09-15 Thread Jason Daly

Judy Hartley wrote:

Thanks, Ulrich!


That helps a lot.  I had finally found a different method use, i.e. converting 
the .x files into .obj files (of course I had to write a conversion script 
first) but the load time was getting bad.  Then I found the osgconv tool and 
converted all of my .obj files into .ive files and it's amazing how fast they 
load!

I'm going to test and see whether the .x files load faster, but I kind of doubt 
it.
  


Yeah, that's not likely.  The main purpose for the .ive format is to 
reduce load time  :-)


.ive is the native binary format for OSG, so it pretty much goes 
straight from disk to memory.


--"J"

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


Re: [osg-users] [osgPlugins] Error when loading DirectX .x files

2009-09-15 Thread Judy Hartley
Thanks, Ulrich!


That helps a lot.  I had finally found a different method use, i.e. converting 
the .x files into .obj files (of course I had to write a conversion script 
first) but the load time was getting bad.  Then I found the osgconv tool and 
converted all of my .obj files into .ive files and it's amazing how fast they 
load!

I'm going to test and see whether the .x files load faster, but I kind of doubt 
it.

Cheers,
Judy

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17390#17390





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


Re: [osg-users] [osgPlugins] Error when loading DirectX .x files

2009-09-15 Thread Ulrich Hertlein

Hi Judy,

On 11/09/09 4:28 PM, Judy Hartley wrote:

As I said, this error happens no matter which of the many .x files I use.  It's 
not
just a warning because it does not draw the object or objects.  It also happens 
no
matter how many materials are listed.  If there are 10 materials listed in the 
.x file,
the message would say:

DirectX Loader: Error reading material list; 10 instead of 0

I thought it might mean the list should not be zero based, but changing the 
numbers to
start at 1 rather than 0 doesn't help.  The message still says:

DirectX Loader: Error reading material list; 1 instead of 0

I'm attaching one of the .x files that I've tried. I had to change the 
extension to
".txt" in order to attach it here.


I had a look at the file you attached.  The file contains references to global materials 
that are referenced like '{ material-name }'.


The parser however expects materials to be without the curly braces around them (meaning 
if you remove the braces around the material name it works.)


The support for global materials was added later and I don't know which is the proper 
format.  Unfortunately the parser is not very flexible and AFAICS is not easily modified 
to handle this.


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


Re: [osg-users] [osgPlugins] Error when loading DirectX .x files

2009-09-11 Thread Judy Hartley
Hi,

Forgot to mention that I am using Visual Studios 9 (2008) for deveoping, so 
this is happening on a Windows machine.

Thanks!
Judy

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17286#17286





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


Re: [osg-users] [osgPlugins] Error when loading DirectX .x files

2009-09-11 Thread Ulrich Hertlein

On 11/09/09 9:35 AM, Ulrich Hertlein wrote:

On 10/09/09 10:10 PM, Judy Hartley wrote:

seem to be having some trouble. When I try to load any of my .x files,
I get the
following message:

DirectX Loader: Error reading material list; 1 instead of 0


The parser was expecting one material but didn't find any and is
complaining about that.


Mind you, that's only a warning (but indicates a parsing problem).

You need to be more precise about your actual problem;
'seem to be having some trouble' is absolutely devoid of any useful information

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


Re: [osg-users] [osgPlugins] Error when loading DirectX .x files

2009-09-11 Thread Ulrich Hertlein

Hi,

On 10/09/09 10:10 PM, Judy Hartley wrote:

seem to be having some trouble.  When I try to load any of my .x files, I get 
the
following message:

DirectX Loader: Error reading material list; 1 instead of 0


The parser was expecting one material but didn't find any and is complaining 
about that.


Does anyone have any ideas on what the problem might be?


Not without having a look at the offending file.

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