Hi, all
My name’s Stef and I am a newbie in scenery design (this is my first post ever). I’d like to learn to tweak the source code to get better results.
In Gmax, I have created a simple sphere, applied a material to it and exported it as a Flightsim Scenery Object (*.MDL) in this folder:
Flight Simulator 9\Addon Scenery\scenery ; so in this folder the following files reside:
Sphere_0.asm
Sphere.asm
Sphere.mdl
Sphere.XML
In the same folder there are also BGLComp.exe and BGLC_9.exe
If I don’t want to tweak the sphere_0.asm file, I use the following sequence:
I simply open the Sphere.XML, remove the comments, save it, and drag’n’drop it over BGLComp.exe to get the desired Sphere.bgl; this way, the sphere appears at the default location included in the .XML file (at KSEA). So far so good.
Of course, I don’t need any sphere at KSEA; all this is just to learn the tweaking procedure.
If I want to tweak the sphere_0.asm file, I use the following sequence:
1) Open sphere_0.asm file in NOTEPAD to tweak its parameters (i.e. changing one of the rgb values for the diffuse channel in the applied material) and save it.
2) Erase the Sphere.mdl created by Makemdl.exe (I do this because I think that having changed even a single parameter in the sphere_0.asm the .mdl file isn’t updated)
3) In DOS I launch BGLC_9.exe to compile Sphere.asm (with the \MDL option) and get the new updated Sphere.mdl
4) I drag’n’drop Sphere.XML over BGLComp.exe to get Sphere.bgl file.
Nevertheless, in FS the sphere isn’t changed (I mean its color is unchanged). Obviously, the sphere appearance is not important, I just want to know if my sequence is correct. Maybe the sequence is correct but I can’t change the diffuse color this way I don’t know.
I have also tried to compile Sphere.asm (with the \BGL option this time, ignoring the .XML file)
to get Sphere.bgl.
But here is what happens;
I double-click FS 2004.exe icon and a warning window appears stating “Your computer has run out of available memory. FS will now exit. You may not have enough space on your hard drive ……. “, leaving me no other possibility than click OK and exit; but this warning is definitely FALSE because my HD is 49% full and 51% empty.
By the way, is it correct to tweak a *_0.asm file by means of NOTEPAD changing the parameters you want (of course if you know the BGLC code) and save it ? Or is there a special utility\tool\program for the tweaking task?
So, What is the right sequence to tweak the code of a Gmax modeled and exported scenery object?
I’m a bit confused; if I could have a clear step-by-step solution to this problem, I could begin to learn and put to practice the source code tweaking.
One last thing, I’m an expert in 3D modeling having used 3DS MAX for more than 3 years;
having discovered that Gmax is a much simpler tool than 3DS, I will be very glad to put my skills to anyone’s disposal in order to solve modeling issues
Any help to my problem will be very very appreciated, thanks in advance
Regards, Stef
My name’s Stef and I am a newbie in scenery design (this is my first post ever). I’d like to learn to tweak the source code to get better results.
In Gmax, I have created a simple sphere, applied a material to it and exported it as a Flightsim Scenery Object (*.MDL) in this folder:
Flight Simulator 9\Addon Scenery\scenery ; so in this folder the following files reside:
Sphere_0.asm
Sphere.asm
Sphere.mdl
Sphere.XML
In the same folder there are also BGLComp.exe and BGLC_9.exe
If I don’t want to tweak the sphere_0.asm file, I use the following sequence:
I simply open the Sphere.XML, remove the comments, save it, and drag’n’drop it over BGLComp.exe to get the desired Sphere.bgl; this way, the sphere appears at the default location included in the .XML file (at KSEA). So far so good.
Of course, I don’t need any sphere at KSEA; all this is just to learn the tweaking procedure.
If I want to tweak the sphere_0.asm file, I use the following sequence:
1) Open sphere_0.asm file in NOTEPAD to tweak its parameters (i.e. changing one of the rgb values for the diffuse channel in the applied material) and save it.
2) Erase the Sphere.mdl created by Makemdl.exe (I do this because I think that having changed even a single parameter in the sphere_0.asm the .mdl file isn’t updated)
3) In DOS I launch BGLC_9.exe to compile Sphere.asm (with the \MDL option) and get the new updated Sphere.mdl
4) I drag’n’drop Sphere.XML over BGLComp.exe to get Sphere.bgl file.
Nevertheless, in FS the sphere isn’t changed (I mean its color is unchanged). Obviously, the sphere appearance is not important, I just want to know if my sequence is correct. Maybe the sequence is correct but I can’t change the diffuse color this way I don’t know.
I have also tried to compile Sphere.asm (with the \BGL option this time, ignoring the .XML file)
to get Sphere.bgl.
But here is what happens;
I double-click FS 2004.exe icon and a warning window appears stating “Your computer has run out of available memory. FS will now exit. You may not have enough space on your hard drive ……. “, leaving me no other possibility than click OK and exit; but this warning is definitely FALSE because my HD is 49% full and 51% empty.
By the way, is it correct to tweak a *_0.asm file by means of NOTEPAD changing the parameters you want (of course if you know the BGLC code) and save it ? Or is there a special utility\tool\program for the tweaking task?
So, What is the right sequence to tweak the code of a Gmax modeled and exported scenery object?
I’m a bit confused; if I could have a clear step-by-step solution to this problem, I could begin to learn and put to practice the source code tweaking.
One last thing, I’m an expert in 3D modeling having used 3DS MAX for more than 3 years;
having discovered that Gmax is a much simpler tool than 3DS, I will be very glad to put my skills to anyone’s disposal in order to solve modeling issues
Any help to my problem will be very very appreciated, thanks in advance
Regards, Stef

