http://openig.compro.net

A Opensource Image generator for the masses !
It is currently Mon Oct 18, 2021 9:10 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed May 27, 2015 5:46 am 
Offline

Joined: Tue May 26, 2015 5:46 am
Posts: 21
Dear OpenIG developers,

what is the procedure to load a different .flt than the demo one?

I see there is a default.txt file that seems to be running some script that loads .osg files.

Is there a how to on how to setup loading .flts?

Thanks in advance,
congratulations for OpenIG!


Top
 Profile  
 
PostPosted: Wed May 27, 2015 6:08 am 
Offline

Joined: Tue May 12, 2015 6:11 pm
Posts: 16
Hi baggiodlb,

you found the right place for setting up the scene. You can do it from within a script, like the default.txt is, or programatically with

ig->addEntity(the_entity_ID, the_file_name, optional_options);

If you are doing it from the default.txt, you can also use optional string to offset your database (this was introduced for visual databases that have large coordinates to avoid precision errors in the rendering). For example, in the provided code and sample dataset to be used, this is how the terrain is added:

addentity 0 /usr/local/database/terrain/OPEN_IG_Demo_NO_UTM31N_r5/master.flt.osg 0 0 0 0 0 0 -1.20639e+06,-5.099e+06,0

Here -1.20639e+06,-5.099e+06,0 is the offset string, to make the specified location to show at the origin (0,0,0).

If you are new user of OpenIG then maybe you spend some time wondering around in the provided Demo application code to understand the ID concept for models for the scene.

Also, OpenFlight is good for visual content creation and exchange, however we advice for much better performances to use the native OSG .osgb format. The OSG distribution provides utility for conversion, osgconv, so we advice you to convert your visual database. NOTE: The next distribution of OpenIG will have it's own tools for this purpose

Please give it a try, and if any issues please ping us again !!

Cheers & Thanks !

Nick


Top
 Profile  
 
PostPosted: Wed May 27, 2015 9:58 am 
Offline
Site Admin

Joined: Tue May 12, 2015 10:50 am
Posts: 18
Hello Mr. Baggio,

The steps that Nick provided are correct.

Here is a little more on the general process we use:


If your Openflight database is not too big you can load by calling the master.flt directly from the default.txt as Nick pointed out above. (need to get offset correct as well)


However,  if it is a large area then the tiles will over-run your memory.  To overcome this we make the the openflight tiles "page-able".

In addition to page-able we choose to make the OSG Binaries (.osgb) so the speed is also optimized.

All this is done with a script.  In the script you run against the directory with the openflight database and it will step through each .flt and make an .osgb.  Then it converts the Master.flt to make a master.flt.osg.


Now your database can be loaded by calling the master.flt.osg and it will tile just like the old terrapage format.

At this time, the script runs on linux so if you have a linux box. I can make a quick movie to show the steps as well.  If you do not have access to Linux box then I can offer to convert for you if you can ftp to us and I will have it converted to demo on Tuesday.

Hope this helps.

Keith


Top
 Profile  
 
PostPosted: Tue Jun 02, 2015 1:41 pm 
Offline

Joined: Tue May 26, 2015 5:46 am
Posts: 21
Thanks for the info, it worked fine :)

Thanks Nick, thanks Keith.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group