A new way to add custom symbols as Location

Post requests, images, descriptions and reports about work in progress here.
Avatar
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 8 months
Location: Thyrrenian sea

A new way to add custom symbols as Location

Post #1by Fenerit » 27.11.2009, 22:05

Suppose one got a table actually found here: http://finder.geocommons.com/search?query=tag%3Arefinery in CSV format. The table can be reduced, after the copy/paste of the entire columns as below (shorten)

Code: Select all

Production BpD   longitude   latitude
30000   48,53422306   28,40713293
85000   13,37947104   43,6387004
90000   54,4926182   24,43695581
280000   52,71988072   24,1246249
.
.
.


in which the Production can be assigned as radius to a 3d marker (made by you) after to have reduced the values by 1000; that is 30000/1000; 85000/1000 and so on. Then the result let be assigned to a SurfaceObject .SSC:

Code: Select all

SurfaceObject "" "Sol/Earth"
{
     Class "surfacefeature"
     Visible true

     Mesh "mark.cmod"
     Radius  30.0
     Orientation [ 90 1 0 0 ]

     FixedPosition { Planetographic [ 48.53422306 28.40713293 0 ] }
     FexedAttitude { Heading 0 }
}

SurfaceObject "" "Sol/Earth"
{
     Class "surfacefeature"
     Visible true

     Mesh "mark.cmod"
     Radius  85.0
     Orientation [ 90 1 0 0 ]

     FixedPosition { Planetographic [ 13.37947104 43.63870040 0 ] }
     FexedAttitude { Heading 0 }
}

SurfaceObject "" "Sol/Earth"
{
     Class "surfacefeature"
     Visible true

     Mesh "mark.cmod"
     Radius  90.0
     Orientation [ 90 1 0 0 ]

     FixedPosition { Planetographic [ 54.49261820 24.43695581 0 ] }
     FexedAttitude { Heading 0 }
}
.
.
.


In this way should be as a 3d model were a "location" avoiding the tedious modelling into the 3d program. For instance, the example above is showed below:

Image

in which the radius is the refinery's capacity. The procedure can be done also for a "true" location .ssc files in order to have the numeric values upon the 3d models (indeed is just one 3d model, repeated in different places) although in this case can be a bit confusionary (too much plants near the same places), but for other cases not.

If someone wish to test it:

http://marauder.webng.com/files/global_oil_refineries.zip

For whom are instered about the automatic procedure with which the main SSC file is made, let consider this topic as discussion's place.
Never at rest.
Massimo

Avatar
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 8 months
Location: Thyrrenian sea

Re: A new way to add custom symbols as Location

Post #2by Fenerit » 28.11.2009, 11:10

Mmmm... found a limit. For long entry values the framerate falls noteworthy, even with low resolution 3d model. Beyond 5000 SurfaceObject directives this method is unsuitable. :x
Never at rest.
Massimo


Return to “Add-on development”