instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 17, 2018, 02:32:32 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: How to write and use own 3D loader?  (Read 3030 times)
avg
Newbie
*
Posts: 32


View Profile
« on: January 07, 2011, 03:58:29 pm »

Well, the subject says it; are there any examples or tutorials on the topic?

Many thanks in advance,

navg
Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #1 on: January 07, 2011, 04:56:21 pm »

If it's only about geometry (and you don't use any external lib whose license forbids further usage), you can contribute by adding an additional file loader in OpenSG 1.8x (the old CVS version on SourceForge -- not to be confused with OpenSceneGraph). However, since you're probably not allowed to check it in, you should post it on the OpenSG mailing list for approval.
Logged
avg
Newbie
*
Posts: 32


View Profile
« Reply #2 on: January 10, 2011, 04:30:21 pm »

yes, in particular I would just extend the NRRD-loader to follow the standard in regard to the so called "separate headers".
Still two questions:
  1. if I contribute to OpenSG how quick this contribution would propagate "down" to instantPlayer?
  2. Could you suggest a place to start (file, directory?)? You probbably know already (the architecture of) OpenSG, while I am a "complete stranger"...

navg
Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #3 on: January 10, 2011, 05:24:13 pm »

The NRRD loader belongs to images and can be found here:

OpenSG/Source/System/Image/OSGNRRDImageFileType.*

If you have commit rights (but probably not), then the changes are included in the next daily build (given it builds on all platforms). Otherwise you can either post your changes on the OpenSG mailing list or directly here, so that we can approve the code and commit the changes (in this case, a testfile is helpful).

Bye
Yvonne
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines