Shadows Not Showing Up (Solved)
Moderator: Moderators
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Shadows Not Showing Up (Solved)
Well, I created my first model in Maya, then sent it to Softimage, textured it, added a shadowvolume, then exported it to SWBF2. It shows up great, looks good, but there isn't a shadow.(the model is the plant)
If you want to see my hierarchy of stuff, here it is.
I've also tried renaming my shadowvolume to sv_grass_blade but that didn't work either. Adjusting the light source's angle did not do anything. I'm probably doing something wrong that's super obvious. Any help is much appreciated.
Hidden/Spoiler:
Hidden/Spoiler:
Last edited by Noobasaurus on Sun Apr 07, 2013 5:27 pm, edited 1 time in total.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Shadows Not Showing Up
Your model might be too thin for the game to generate a noticable shadow. Try shifting the light source around to see if anything emerges.
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Shadows Not Showing Up
I moved the light around, nothing.
Hidden/Spoiler:
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Shadows Not Showing Up
Export a cube with a shadowvolume using the same process you did with the grass blades and see if it works.
- Cleb
- Lieutenant General

- Posts: 711
- Joined: Sun Jun 17, 2012 10:12 pm
- Projects :: Learning how to use 3DS Max
- xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
- Location: Somewhere
- Contact:
Re: Shadows Not Showing Up
To possibly confirm the proposition that the grass is too thin, you could try adding something wider (like a standard cube) temporarily to your model to see if it casts a shadow. If it does, then your model is too thin. If it doesn't, then something is wrong with your shadowvolume.
Edit: ninja'd
Edit: ninja'd
-
Loopy53
- 1st Lieutenant

- Posts: 456
- Joined: Thu Nov 01, 2012 2:27 am
- Projects :: Earth Apocalypse
- xbox live or psn: Dont have one
- Location: On earth, I guess.
Re: Shadows Not Showing Up
I assume your using ZE tools right? I think thats the only exporter that works for shadow meshes. Anyhow, your shadowvolume needs to be renamed to sv_grass_blade; same as the normal visible mesh name, and then it should work. Refer to Darth Duck's making models look as good/better than pandemics tutorial for more information on shadowvolume and many other helpful topics.
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Shadows Not Showing Up
Got the shadows working for the placed plants by naming the shadowvolume sv_grass_blade. Thanks guys! I also made the cube and that's what told me that it needed to be sv_whatev. I had done that before, but I don't know why it didn't work.
Now here's the problem: I used the foliage layer to place all my grass, and none of the grass placed by the foliage layer have shadows. Here's my .prp file:
Now here's the problem: I used the foliage layer to place all my grass, and none of the grass placed by the foliage layer have shadows. Here's my .prp file:
Code: Select all
Layer(0)
{
SpreadFactor(0.2);
Mesh()
{
File("grass_blade.msh", 200);
Frequency(100);
Scale(0.7);
Lighting(1);
Stiffness(0.0);
}
}
-
Loopy53
- 1st Lieutenant

- Posts: 456
- Joined: Thu Nov 01, 2012 2:27 am
- Projects :: Earth Apocalypse
- xbox live or psn: Dont have one
- Location: On earth, I guess.
Re: Shadows Not Showing Up
Noobasaurus wrote:Got the shadows working for the placed plants by naming the shadowvolume sv_grass_blade. Thanks guys! I also made the cube and that's what told me that it needed to be sv_whatev.
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Shadows Not Showing Up
You posted as I was testing and I didn't refresh the page until after I got it working.Loopy53 wrote: I believe I told you to name it to sv_grass_blade one post above yours.
Endor is purely foliage but everything has shadows. The weird part is that Endor's .prp file does not have the "Lighting" line anywhere in it.Loopy53 wrote:As for the foliage, Im not sure if swbf2 grass has shadows (I could check and see) so im not sure if it is supported, although it probably is. I didnt see anything unusual right away in the prop file other than the lighting feature. Try changing that number to 0, then make it a decimal or make it really high and see if that changes anything.
EDIT: Actually, no. Endor's foliage does not have shadows. They used a shadowmap and put it over the whole thing and tricked me.
-
Loopy53
- 1st Lieutenant

- Posts: 456
- Joined: Thu Nov 01, 2012 2:27 am
- Projects :: Earth Apocalypse
- xbox live or psn: Dont have one
- Location: On earth, I guess.
Re: Shadows Not Showing Up
Ah I see. My bad. If endor is purely foliage and has shadows try removing the line altogether and see if that works. Something of interest might be the misc documentation on google sites. I didnt find anything of that particular topic on physc0fred's site, but I will keep looking.Noobasaurus wrote:You posted as I was testing and I didn't refresh the page until after I got it working.Loopy53 wrote: I believe I told you to name it to sv_grass_blade one post above yours.
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Shadows Not Showing Up
My conclusion is that foliage does not have shadows. I looked at a bunch of stock maps that have different types of foliage and none of them have shadows.
This means if I want shadows on my grass I have to place it manually.
This means if I want shadows on my grass I have to place it manually.
-
Loopy53
- 1st Lieutenant

- Posts: 456
- Joined: Thu Nov 01, 2012 2:27 am
- Projects :: Earth Apocalypse
- xbox live or psn: Dont have one
- Location: On earth, I guess.
Re: Shadows Not Showing Up
Alright then. Placing them manually wont be too hard if you have several clumps of grass together in XSI exported as one object. Good luck! 
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Shadows Not Showing Up
A lot of objects in the SWBF2 assets use the 'shadowvolume' naming convention(ex: rep_walk_atte, imp_fly_tiebomber, geo_bldg_bunker...). It looks like this was the method originally used from the SWBF1 days but still works for SWBF2. The 'sv_' naming convention appears to be the newest method implemented by Pandemic which requires less steps and works from the naming alone.Loopy53 wrote:...your shadowvolume needs to be renamed to sv_grass_blade; same as the normal visible mesh name, and then it should work...
The msh files that use the 'shadowvolume' naming convention have an additional chunk in the header when set up by the instructions provided by Pandemic. The SHVO chunk is only present when you follow this instruction prior to export:
I don't think ZETools was programmed to pull the 'shadowvolume' Custom Parameter data for producing the extra chunk which the game likely needs to recognize the shadow geometry. If you use ZETools to export just use 'sv_' naming.[color=#FF8040]art_guide.doc[/color] wrote:...
2. Once created, name the shadowvolume mesh "shadowvolume". If there is more than one, name them "shadowvolume", "shadowvolume1", "shadowvolume2", etc.
3. Make the shadowvolume mesh a child of the actual mesh to which it is related.
4. Select the shadowvolume mesh.
5. In the Animate module, select Create > Parameter > New Custom Parameter.
6. In the dialogue box, rename the Parameter Name to shadowvolume. Uncheck the Animatable Characteristic Button.
...
-
Loopy53
- 1st Lieutenant

- Posts: 456
- Joined: Thu Nov 01, 2012 2:27 am
- Projects :: Earth Apocalypse
- xbox live or psn: Dont have one
- Location: On earth, I guess.
Re: Shadows Not Showing Up (Solved)
Ah, I see. Thanks for the info!
