Page 1 of 1

Adding a moon [Solved]

Posted: Tue Apr 14, 2009 6:10 pm
by YTGTangerine
How can I add a moon (in ZE it'd be a spotlight, right?) to my map? Search didn't help, nor did the docs.

Re: Adding a moon

Posted: Tue Apr 14, 2009 9:23 pm
by Maveritchell
YTGTangerine wrote:How can I add a moon (in ZE it'd be a spotlight, right?) to my map? Search didn't help, nor did the docs.
You don't need to make an actual light source, just add a skydome prop. Check out BF1 Kashyyyk for reference (or BF1/2 Yavin IV).

Re: Adding a moon

Posted: Tue Apr 14, 2009 11:03 pm
by YTGTangerine
Because your saying that I assume it's just in the Kashyyyk assets. Would I need to add anything to my LUA?

Re: Adding a moon

Posted: Tue Apr 14, 2009 11:08 pm
by Maveritchell
YTGTangerine wrote:Because your saying that I assume it's just in the Kashyyyk assets. Would I need to add anything to my LUA?
It's part of the skydome, and no, it's not just in the Kashyyyk assets - it just happens to be a moon specifically in those assets. All skydome props essentially work the same, though.

Re: Adding a moon

Posted: Tue Apr 14, 2009 11:11 pm
by YTGTangerine
Okay sorry but I'm confused. How do I add it in exactly?

Re: Adding a moon

Posted: Tue Apr 14, 2009 11:25 pm
by Maveritchell
I am assuming that you already know how to do a little bit of sky work, since I saw from your screenshots that you at least had a different sky. If you're not familiar with .sky work, make sure to do some searches and look around.

All you're doing is adding a skydome prop - something from the DomeInfo section of the kashyyyk sky (although I see now looking that the moon specifically isn't in there, but like I said, it doesn't matter as they're all added the same). All you do is make sure that you have the appropriate meshes and textures in your world1 folder and then add a section to your domeinfo that looks something like this:

Code: Select all

	DomeModel()
	{	
		Geometry("kas_moon");
		Offset(-50.0);
		MovementScale(0.995);
		Reflect();
	}

Re: Adding a moon

Posted: Tue Apr 14, 2009 11:29 pm
by YTGTangerine
Okay. I'm doing a search right now to get the textures, and I'll test soon.

EDIT: What are the textures? Search found nothing by the name of kas_moon.

Re: Adding a moon

Posted: Tue Apr 14, 2009 11:36 pm
by Maveritchell
YTGTangerine wrote:Okay. I'm doing a search right now to get the textures, and I'll test soon.

EDIT: What are the textures? Search found nothing by the name of kas_moon.
What's written above doesn't matter; it's just an example. (Besides, kas_moon is a geometry, as you can see if you look at what it's labeled as in the code above.)

Just browse through the various world assets, both BF1 and BF2, and you'll find various skydome props. You can look at them in mshviewer (or 3DOC or whatever) to see what they look like in the sky. They are set up like the above, where you just put the geometryname in as shown.

Re: Adding a moon

Posted: Tue Apr 14, 2009 11:48 pm
by YTGTangerine
I can't browse BF1 assets though. Can I download them somewhere?

Re: Adding a moon

Posted: Tue Apr 14, 2009 11:52 pm
by Maveritchell

Re: Adding a moon

Posted: Wed Apr 15, 2009 12:00 am
by MasterSaitek009
The Yavin IV world has the skydome planet prop and it's in the BF2 assets. It's the one I used for Cerea.
I can't seem to recall the prop name right now though. Ah well, just look through the Yavin .sky file and you'll find the name.

But you should look into getting the BF1 assets. There are some very useful props in there.