How to add shadows

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
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

How to add shadows

Post by modmaster13 »

Hey I would like to know how to add shadows.
CT-26-6958_Hevy
Rebel Sergeant
Rebel Sergeant
Posts: 193
Joined: Sat Jul 10, 2010 5:30 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: Behind enemy lines

Re: How to add shadows

Post by CT-26-6958_Hevy »

You have to add a light.
Look a the "Everything you need Thread" in the Mapping part.
Or download Fierfeks Mappingtutorial
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: How to add shadows

Post by DarthD.U.C.K. »

create a directional light with cause shadows and specular enabled and put it in the list of the two worllights?! on the right
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Re: How to add shadows

Post by fasty »

Or you could make a shadow region.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How to add shadows

Post by AQT »

^ Shadow regions are meant to change the lighting under them and prevent shadows from casting.
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: How to add shadows

Post by modmaster13 »

Well I am trying to convert Rhen Var: Citadel and the shadows are directly under the unit. Is there a way that I can edit that to make it look like the Corusant shadows? :?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How to add shadows

Post by AQT »

Increase the angle of your directional lighting, perhaps? The greater the angle, the more stretched out your shadows will be.
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: How to add shadows

Post by modmaster13 »

Uh................ :faint:

How do I do that?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How to add shadows

Post by AQT »

Please actively read the following shipped documentation: ZeroEditor_guide.doc and BF2_lighting.doc.
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: How to add shadows

Post by modmaster13 »

Ok ill study it. Just trying to get used to coding because I am new to modding. :cpu:
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: How to add shadows

Post by [TFA]Padawan_Fighter »

You shouldn't really have to use ANY coding to change the direction of a light. Just click on the light you have already, and rotate it. Simple.
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: How to add shadows

Post by modmaster13 »

Would I be doing this in the zero editor?
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: How to add shadows

Post by [TFA]Padawan_Fighter »

Yes...... :roll:
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: How to add shadows

Post by THEWULFMAN »

click on your light, and press and hold the "x" key, use you mouse buttons to spin it to whatever direction you want.
I do not think this needs to be spelled out anymore than that.
User avatar
Tardis
I got banned!
I got banned!
Posts: 18
Joined: Wed Oct 27, 2010 4:50 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2-SWRC-SWEAW

Re: How to add shadows

Post by Tardis »

This to me seems like your light is allready there. First you have to do what everyone else has been saying, re-angle your light. You could do that or just delete that light and go again. If you do that this is what you need to do.

First you might want to make a hill in your map if you don't allready have one so that you can test your light and shadows.

1) Open the light tab in ZE.
2) On the left side panel set the lighting type to DIR, and select cast shadows.
3) Now place your light anywhere you want on your map and name it whatever you want.
4) Now angle your light on a good downward angle, for me 45 degrees is the best, but it's totaly up to you.
5) Then on the right side panel under Directional Light 1 Name: , enter the name of your light.

Now you should have character shadows with your map.

If you placed that hill or if you already had one, you should see some shadows coming from your hill. These are what I call terrain shadows. If you like these and want them in your map, this is what you have to do.

Assuming that you have done all the steps above, you now have to click on the Image button at the top right of your ZE window. From here there are two functions. The first is Burn Terrain which is what we are going to use. The other one is a good tool to use if your making a mini map. Anyways, click on Burn Terrain, let it do its work and then your done!
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: How to add shadows

Post by modmaster13 »

Ok it says

Cast Shadow?
Yes No

Would I click yes if I want shadows?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: How to add shadows

Post by Fiodis »

What do you think?

With questions like that, you should pick the most obvious answer, test, and if it doesn't work just choose the other option.
User avatar
Tardis
I got banned!
I got banned!
Posts: 18
Joined: Wed Oct 27, 2010 4:50 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2-SWRC-SWEAW

Re: How to add shadows

Post by Tardis »

I said yes... :roll:
Post Reply