Lighting to one area

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Lighting to one area

Post by Grev »

Is it possible to add lighting to one area of a map? Im working on a mustafar map, and having a lava texture for lava is kind of bland. So I wondered if it was possible to add a glow by either ze lighting, or possibly something else? It was done in the stock mustafar, so I wondered how?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Lighting to one area

Post by Maveritchell »

Omni or spot lights can be used for specific areas.
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Lighting to one area

Post by Grev »

Ok, so its possible, but can someone explain how that would be done?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Lighting to one area

Post by Maveritchell »

Add an omni or a spot light. Size it/point it where/however. It's in the lighting tab. Pretty self-explanatory.
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Lighting to one area

Post by Grev »

Is there any renaming neccasary? And any settings that must be used? Or just select the color, place, name something, and munge?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Lighting to one area

Post by Maveritchell »

Grev wrote:Or just select the color, place, name something, and munge?
Bingo. You'll probably want to "burn objects to terrain" under the image tab (upper right), but other than that it's a pretty simple process.
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Lighting to one area

Post by Grev »

Thanks man! One more question, to get shadows, do I put just one light or a light behind everything that needs a shodow?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Lighting to one area

Post by DarthD.U.C.K. »

yes, but make shure the cast-shadow-option is turned on and the objects have a shadowvolume
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Lighting to one area

Post by Grev »

DarthD.U.C.K. wrote:yes, but make shure the cast-shadow-option is turned on and the objects have a shadowvolume

First of all, yes to what? And whats the shadow volume?
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Lighting to one area

Post by woner11 »

Grev wrote:a light behind everything that needs a shodow
Yes to that. And shadow volume, I beleive, is the shadow itself in the shape of the object.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Lighting to one area

Post by FragMe! »

Shadow volume is a lowresolution version of the model that is part of the mesh. So if you had a model of a house with all sorts of windows and fancy things on it the shadow volume for that would be nothing more than a box with a pointy bit on top for the roof.

The artguide.doc file in documents explains it a bit better. You can also create a shadow volume via a msh.option file and the -hireshadow option. More info on this can be found in the miscdocumentation.doc
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Lighting to one area

Post by Grev »

Do the shipped assets all have that? If Im using naboo shipped assets, from Bf1 and 2, would I need to create new shadow volumes?
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Lighting to one area

Post by FragMe! »

Unfortunately no not all assets have a shadowvolume.
If you don't have a program like object converter to look at msh files you could open them with a hex editor and do a search for _sv and that will at least let you know if the msh has a shadow volume.

The other way is put a directional light on a map, put the objects in question in the map, munge, start game put lighting quality to high and look at the objects and see if they cast shadows. I know that sounds silly but it works and it is relatively easy to do.
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: Lighting to one area

Post by Taivyx »

To generate a hi-res shadowvolume, you'd make a msh.option file with this in it:

Code: Select all

-hiresshadow <int>
<int> means the LOD distance the shadow can be viewed from.

I have no idea how much this adds to the munge time, but it's worth a try.
Post Reply