• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

P3D v4 Belgium Photoreal - Version 2

The lights shouldnt be autogens i dont add them to the annotator

They're library objects though, right? Sceneproc has to read them from the default.xml in order to "see" them and compile a BGL ( or AGN )
 
They're library objects though, right? Sceneproc has to read them from the default.xml in order to "see" them and compile a BGL ( or AGN )
no, you mustn't that's why it doesn't work for you :p
you just make the library and use place XML lib object instead of agn and that will do the work, and ofc export as BGL

like me :
the guid is manualy set
Code:
CreateXMLLibObj|PLC="placei"|{c1aa6f3a-5880-4aa2-ab77-a5d236954878}|HDG|55|0|NOCRASH;NOAUTOGENSUPPRESSION
 
no, you mustn't that's why it doesn't work for you :p
you just make the library and use place XML lib object instead of agn and that will do the work, and ofc export as BGL

like me :
the guid is manualy set
Code:
CreateXMLLibObj|PLC="placei"|{c1aa6f3a-5880-4aa2-ab77-a5d236954878}|HDG|55|0|NOCRASH;NOAUTOGENSUPPRESSION

Okay, this sounds awesome but there's nothing in the manual refering to a placei command, so I don't know how to organise the folders in order to get it to write what I need. I've tried writing to the scenery folder, to a spare folder ( both with my own 3D light model BGL inside ). The code detects the points, but doesn't write any XML objects? It's very hard to understand what to do when there's no workflow in the manual for this.
 
Here's my code;

Code:
IMPORTOGR|roads.shp|*|type|AUTODETECT
#
PlacePointsAlongLine|FTYPE=LINE|CONTINUOUS|50;50|5;5|0|type|light|hdg
#
CreateXMLLibObj|PLC=placei|{88a4b4ff-e44c-475c-a281-43618fb113d0}|HDG|55|0|NOCRASH;NOAUTOGENSUPPRESSION
#
ExportBGL|FSX|Costa_lights_New|D:\Program Files\Lockheed Martin\Prepar3D v4\Addon Scenery\Flightbeam - MROC\scenery
 
no placei is an attribute that i invented
if you look at the entire code you'll get it

here is the complete code , in scenproc we can create our own attributes to make the work easier

Code:
ImportOGR|C:\Users\picos info\Downloads\algeria lights\gis.osm_landuse_a_free_1.shp|*|*|+proj=longlat +datum=WGS84 +no_defs

PlacePointsInPolygon|fclass="residential"|0.001;0.0008|0.8;0.6
PointToPolygon|FTYPE="POINT"|5;5|HDG|String;PLC|place
CreateXMLLibObj|PLC="place"|{c1aa6f3a-5880-4aa2-ab77-a5d236954878}|HDG|55|0|NOCRASH;NOAUTOGENSUPPRESSION

PlacePointsInPolygon|fclass="industrial"|0.003;0.003|0.8;0.6
PointToPolygon|FTYPE="POINT"|5;5|HDG|String;PLC|placei
CreateXMLLibObj|PLC="placei"|{c1aa6f3a-5880-4aa2-ab77-a5d236954878}|HDG|55|0|NOCRASH;NOAUTOGENSUPPRESSION

#ImportOGR|C:\Users\picos info\Downloads\algeria lights\gis.osm_roads_free_1.shp|*|*|+proj=longlat +datum=WGS84 +no_defs

#PlacePointsAlongLine|FROMFILE="gis.osm_roads_free_1.shp"|CONTINUOUS|200;300|0;0|5|String;PLC|road|HDG2
#PointToPolygon|PLC="road"|5;5|HDG2|String;PLC|roda
#CreateXMLLibObj|PLC="roda"|{a7e2b7af-b5fa-4390-8e32-1d6bc85f6fdc}|HDG2|80|0|NOAUTOGENSUPPRESSION;NOCRASH

ExportBGL|FSX|ALGERIA_LIGHTS|E:\BPW\Algeria lights\scenery|KEEPXML
 
in that code you can understand that i make an attribute called PLC and i asign the value to "Place" for residential and "placei" for industrial
 
@RED COOL I can see what you're saying but my shp data needs me to place points along a line, which in your code is # so it's not being used. I'll have a go with my 3D lights again and try some combinations based on what you've shared. Thanks by the way, I'll get it in the end, I can follow the code but it's baby steps for me at the moment :)
 
the part that is # was cacelled for performance issues as my pc couldn't handle the entire country
 
the part that is # was cacelled for performance issues as my pc couldn't handle the entire country

Okay, but I can no longer use Point to Polygon as it's not recognised. I can see how you're using three steps to place the light, but I can't follow those same three steps in the same way as Sceneproc won't allow it due to the step not being recognised. Must be another that can be used?
 
i can remake it if you want a brand new code! cus this is from 2 years ago

Thanks, but I'm not sure whether there's anything wrong with the code. I got the BGLs to compile but once again, nothing shows in the sim despite a 2MB BGL in the scenery folder, and of course the model's source BGL. I tried the same code with an ORBX light that's already displaying elsewhere, and still nothing. I'm beginning to think that there must be something else stopping the models displaying, so I'd better figure out if that's the case before anybody spends too much more time on this. Thanks for your help though, I'm getting there ( slowly ) :)
 
have you got the lastest scenproc version ? with the update ?

I believe so, it's set to alert to new versions and it's not doing so - v1.1x64

I'll keep plugging away at it. Sceneproc is placing everything else just fine, it just won't place any kind of streetlight, mine or ORBX. I'll try with some other object types today and see what happens...
 
@MatthiasKNU @RED COOL Cracked it chaps! :wizard:

Created a brand new scenery folder, ran the script there, added the scenery as normal and bingo, millions of streetlights and zero performance hit! Thank you very much for all your help, another process and workflow ( finally) understood :)
 
Hi guys!

Some of you might remember this project...
As announced elsewhere, I started working on it again and created a new version. Version 2.
Meanwhile there are already the first pictures:
2020-2-12_15-53-19-548nkrf.jpg


2020-2-12_15-53-34-97rmjvr.jpg


2020-2-12_15-57-5-656onjdh.jpg


2020-2-12_15-57-34-60arka4.jpg


2020-2-12_15-58-59-37dqkdg.jpg





I hope that Belgium v2 goes online this week!
2020-2-12_15-59-34-35yjjb0.jpg


2020-2-12_16-0-43-802ujj91.jpg


2020-2-12_16-1-54-47931jam.jpg


2020-2-12_16-3-49-43ezkj2.jpg


2020-2-12_16-5-56-87ruk4u.jpg


2020-2-12_16-8-45-33908k89.jpg


2020-2-12_16-6-54-903zijal.jpg
 
Back
Top