Hallo,
I didn't succed to upload in the wiki. Login problem.
So I place it here. If It's a bad idea, I'll delete the post later. Hoping for help in my efforts.
Goal is placing lightlanterns in P3D.
I've studied forumthreats, without result.
I started this procedure with a house, because that is more visible and more custom than lanterns.
But I didn't get what I had in mind. That's why I describe every step to be taken. It can serve as a tutorial as well.
1. I made a house in sketchup. This was exported as
purmerendhuis.dae file. Added in the texture folder were nighttextures.
2. The purmerendhuis.dae got imported in ModelconverterX.
3. In MCX the nighttextures are coupled to the house. All
textures are saved as DDS in ../P3D/textures. So the warnings
for power of 2 images are solved.
UNTILL HERE : FOR A TUTO D'ARNO
http://www.fsdeveloper.com/wiki/index.php?title=Build_your_house_using_SketchUp
4. In MCX a light effect is added to the house.
In effect parameters it was set to DAY=0;NIGHT=1.
****Question: Switching from day to night v.v. did not have any
affect on the presence of the effect. At Daytime too it was
visible. How can I solve this. *****
5. The object is exported as purmerendhuis.MDL and as
purmerendhuis.BGL. In the event log no warnings.
6. Purmerendhuis.MDL is imported in the Library Creator
XML ( = LCX) and saved as purmerendhuis.XML and ...BGL.
7. From now I needed to follow the steps in the Microsoft ESP
SDK tutorial -> Editing the default.XML File -> adding a new
autogen class. (
https://msdn.microsoft.com/en-us/library/cc526979.aspx)
A thumbnail ( 256x256) of purmerendhuis is created and
placed in the renders folder of autogen SDK.
Step 1, 2 and 3 are allready done untill 3.4.
Step 3.4 is copy the purmerendhuis.BGL to Environment Kit
autogen SDK folder and to ..P3D\addon scenery\scenery
folder.
So now I arrived at "add a new class in the default.XML
file". Step 4.
The default.XML file is taken from ..P3D\autogen and copied
in the environment kit\ autogen.sdk folder.
Step 4.4
The autogeneditor.exe.config file is opened. The term
"purmerendhuis.bgl" is added like shown here: <setting
name = "ObjectsPath....\scenery
\autogen.bgl;purmerendhuis.bgl</value>
The file is saved. It shows in this file that purmerendhuis.bgl
should be present in P3D\....\scenery\global\scenery too. So
that done too.
Open the autogeneditor and load default.XML from the SDK
Step 4.7 The purmerendhuis shows up.
Step 4.8 A class is created and given the name purmerendhuis.
Depth and Width are set to 8x8.
The picture is dragged and dropped in Library Objects.
The default.XML is saved and should be copied to P3D
\autogen.
Done.
Now is the time to see the result. The annotator must be
opened and the underlying scenery must be loaded. I loaded
from NL2000 the fototexture for my village Purmerland.
I added my purmerendhuis with the controlstrip. In library
objects I looked for class purmerend1 in which the
purmerendhuis resides. And the result was satisfactory. The
houses were visible in the simulator.
But not the effect. In the night the effect is invisible too.
****Question: How can I solve this. *****
I did this in order to place lightlanterns along the roads. It
was a exercise to be sure that the purmerendhuis could show
up as an autogenobject. So from here I could try to place
houses along roads instead of lanterns.
The SPC for the
scenproc is shown in the screenshot. As Arno pointed out, I started entering the guid of purmerendhuis by typing the name of the class Purmerend1. (For transfering the guid from the default.xml file to a FSX-guid to enter in Scenproc you can use the guid-converter in MCX.)
After a run the event log shows, that it placed objects and created agn files. These agnfiles are placed in the texturefolder of the fototexture.BGL of
NoordHolland. And can be seen in the simulator.
One more question, beyond the problems above. Is it possible to delete elements in the amsterd.BGL in scenery/ Eurw / scenery? And how should that be done?
One last question: I see three apartments near the NovaCollege Burgemeester Roëllstraat in Amsterdam, which i didn't put there. I can't find them in the texture of scenery/eurw/texture. How can i put nighttexture to these buildings?
Kind regards
Arjo