Well, I found at leats a way to get rid of stuff on a starsphere that you do not like. Want a starsphere with some black hole,in the background(there are a couple in stock), but without the nebula?
Easy.
Open the starsphere (better yet: a copy with a new name!) with UTF_edit and browse for the Material_Libary.
Most materials are self-explaining. Things like "edge" or "crow" are nebula. If you expand their subnodes and mark the "type" node, you will see the text "nebula" in the right, too. Those are for example your nebula. Now delete all the subnodes of that "edge", "crow" or whatever. That means all kind of "type", "dt_name" etc.
Then create the following subnodes instead:
Type
Oc
Dc
Under "type", enter in string mode:
DcDtOcOt
Under "Oc", enter in float array mode:
0.000000
0.000000
Under "Dc", enter in float array mode:
0.000000
0.000000
0.000000
0.000000
It will erase the texure of that particular part and replace it with a color texture with the color black and the opacity 0, i.e. totally transparent.
Example: Starsphere_St01.cmp after "erasing" all nebula and the smaller stars:
In theory, this would work in any UTF formatted file to make stuff transparent. You can erase nebula, the stars, certain background objects as well as the textures on your favourite ship to make it invisible.
A note to all wannabe-cheat-modders: It will make that stuff invisible to YOU, not to the others.
This is the first majhor step toward customizing the backgrounds, as some of you know I am planning to make a starsphere with the sun image and the stars only. I will now have to look through the starspheres to find one with a simple rectangular shape at the equator and erase all except that shape, and replace that shape's texture with an image of the sun.
A few hours of work later...
...
I made it. Not only did I make it to modify an existing starsphere so that I have the stars and then, instead of nebula, an image of the sun. It was alot of work, because normally the nebula overlay the stars no matter what you do with the textures, the stars get simply cut off where the nebula shape is.
Now, how did I get around this?
What I did, not even expecting it would work:
In opened Milkshape, created a single triangle, moved it insanely far out. Applied a material (no image file) with name glass, so I need no file but MS makes a glass texture automatically (just the fastest way... since I do not want this face to be shown anyway).
I exported the CMP, updated the MAT into the cmp. Then opened the thing in UTF. I exported the VMeshPart/VMeshRef data. Then opened the starsphere, added a new part below the list, named the same as the new cmp thingy: dumpface.3db. Added the nodes andf imported the VMeshRef into it, then added the glas material with the same name etc (or FL would just crash if it cannot find a material).
Then, I took all the entries in Cmpnd and changed the filenames of all the nebula to dumpface.3db. Removed the old nebula 3db and textures totally. What is left is 2 dumpfaces(cuz there were 2 nebula in the original starsphere) that are too far out, tiny and see-through, and a (almost) rectangular shape onto which I put the sun image (which is still not perfect, just so see that it works). And it worked! Stars and sun.
I have to make a better image for the sun yet and deform it a bit, because the "rectangle" is a bit deformed too.
While playing around, I found something out. At least in starsphere, the VMeshData section defines the subparts and their position, orientation, and (!) scale/distortion sort of. Because, I tried setting the sun image thing'S filename for each of the nebula, and HArdCMP showed 3 shapes with sun texture, however at different size, position, orientation and, at leats it looked so, the shapes were distored like parallelogramms. I am not sure about this distortion, but scale and position and orientation is defined there. That is the limit so far. YOu cannot edit those directly. I will give it a try however at creating a custom starsphere. From all I have seen now, I have ther strong feeling it might work. Even if not, by adjusting ng the image correctly in PSP, I will have a starsphere as desired.
Edited by - Mephistopheles on 2/15/2005 8:58:58 AM