Thanks Paul. Yes, I see what you mean. The code does indeed serve as a
format spec. I'm going work on Robert's visitor-node suggestion this
weekend,  but having insight into the underlying format makes things a
lot easier.

BTW, on the subject of Java/.NET wrappers I've had a lot of success with
IKVM in the last year. 
http://www.ikvm.net/index.html
That is, maintaining code in java and compiling the jars into CLR
assemblies.  I haven't tried it with JNI, but IKVM supports JNI, so it
might be possible to maintaining a single OSG wrapper library for both
runtimes. IKVM is a great tool, but its important to use it
appropriately. I use it for class loaders, and helper classes. I
wouldn't use it for rendering.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Speed
Sent: Wednesday, September 24, 2008 1:11 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Extracting embedded Textures


I almost hate to draw attention to this but just in case it ever
matters...

For various reasons, I ended up writing some IVE readers in Java. 
Mostly because I had some .ive files that no version of OSG I had 
available would load correctly.  And partly because this is the sort of 
thing that feeds an odd manic part of my brain.

At any rate, the stuff is implemented to allow code configurable 
profiles because I was pretty sure I was going to have to hack a 
non-standard version.  The result of which is something that is almost 
like documentation... in code:
http://meta-jb.cvs.sourceforge.net/meta-jb/sandbox/src/java/org/progeeks
/osg/io/StandardIveConfiguration.java?revision=1.11&view=markup

Each supported object type has an individual object profile with field 
types added (with an optional version designator).

I never finished it so there are some objects that aren't defined yet 
but I got it to the point that it could load all of my own IVE files and

I was able to determine more about what was wrong with my bad ones. 
There have also been some changes in the IVE format that are harder to 
configure this way (byte ordering changes, etc.)... one day I may even 
get back to it.

Not sure it's at all useful, but it does centrally describe (in a way) 
the IVE format... with a little translation.  Other than that, it's 
probably only useful to me. :)

-Paul

Evans, Frank wrote:
> Thanks once again for the incredibly fast response. Up to now I've
been
> using the OsgDotNet wrappers, so writing a Custom Visitor class means
> maintaining and updating the wrappers as well. At least, if I
understand
> the solution correctly. I will of course make every effort to leverage
> the native loader.
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
Robert
> Osfield
> Sent: Tuesday, September 23, 2008 12:53 PM
> To: OpenSceneGraph Users
> Subject: Re: [osg-users] Extracting embedded Textures
> 
> 
> On Tue, Sep 23, 2008 at 5:45 PM, Evans, Frank <[EMAIL PROTECTED]>
wrote:
>> Thanks Robert, grinding through the learning curve now. Getting to
the
>> vertices was easy (getVertexArray). Was looking for something similar
>> for image/textures.
> 
> It's straight forward, just look at the NodeVisitor examples I
> mentioned.
> 
>> Is there any documentation on the IVE format? A spec file?
> 
> No there is no spec file, it is not meant to be read in a non native
> way like an interchanges format such Collada.
> 
> Given you have a perfectly serviceable loader it'd be madness to try
> and read it by hand, please just use my suggestion.
> 
> Robert.
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
> g
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g

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

Reply via email to