OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

custom file


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
GeekOwl
Newbie


Joined: 15 Sep 2017
Posts: 1

PostPosted: Thu Oct 12, 2017 12:32 pm    Post subject:
custom file
Reply with quote

Hi,

At an old project we wish to move render platfrom to osg. The files associated with project have a custom format - it's more complicated than .obj file Sad(

Is there any example i can follow or just should i give up ?
...

Thank you!

Cheers,
Hakan
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11193

PostPosted: Thu Oct 12, 2017 2:08 pm    Post subject:
custom file
Reply with quote

Hi Hakan,

On 12 October 2017 at 13:32, Hakan Gedek < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
At an old project we wish to move render platfrom to osg. The files associated with project have a custom format - it's more complicated than .obj file Sad(

Is there any example i can follow or just should i give up ?


The OSG has over a hundred plugins for loading different types of image and 3d data, it's all open source, so there are plenty of real examples.   Each of these plugins provide one or more ReaderWriter subclasses that override the appropriate readNode/readImage() method to provide the hook to loading a file.



You can write a loader in the form of a plugin or just compile it directly into your application - the proxy object registration of ReaderWriter works in exactly the same way regardless of whether it's loaded as a plugin or compiled directly into an application.


So the hooks to getting the OSG to call your custom ReaderWriter are pretty minimal and straight forward - just look at the obj loader for example, so the bulk of the work will be parsing the file format and then converting the loaded data over into OSG specific data structures.  This part we can't help directly with - only your and your team know the specifics of your file format and what type of data it represents.


Robert.





 

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Tiff File to .Osg file conversion Latha Rani General 1 Tue Oct 24, 2017 7:06 am View latest post
No new posts How to open shape file (.shp) or open... GISDeveloper General 0 Thu Oct 05, 2017 3:30 pm View latest post
No new posts Passing input to viewer/camera (using... antiro42 General 2 Sat Sep 16, 2017 11:07 am View latest post
No new posts Passing input to viewer/camera (using... antiro42 General 0 Sat Sep 16, 2017 11:06 am View latest post
No new posts Custom data within nodes or drawables arennuit General 2 Thu Aug 24, 2017 9:52 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP