Tutorial - Rendering A Shadow Map

jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Tutorial - Rendering A Shadow Map

Post by jlv »

Hard to say without anything specific. Do the shadows that do show up match the bales exactly?
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
slowngreen
Posts: 907
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Post by slowngreen »

Never saw your reply JLV. I just tried it all again and there is no shadows at all even though it does a render. The ones I thought were faint shadows were actually spots on my screen :lol:

Any ideas? Everything is working like it should except there are no visable shadows in the render.
Image
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Tutorial - Rendering A Shadow Map

Post by jlv »

There are a lot of ways to get a blank render. There's no way to guess without seeing the files.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
slowngreen
Posts: 907
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Post by slowngreen »

Well Im having trouble again.

Im doing a 1025x1025 map this time and keep getting this error...

Image
Image
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Tutorial - Rendering A Shadow Map

Post by jlv »

Does track.pov end with a } character?
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
slowngreen
Posts: 907
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Post by slowngreen »

No. Should it? Is that the problem?
Image
slowngreen
Posts: 907
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Post by slowngreen »

Just noticed when I cursor to the bottom corner of my map its the 2044 but my terrain.png is 1025x1025? Think Im getting really confused on this one...
Image
slowngreen
Posts: 907
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Post by slowngreen »

Ok JLV I got it to render but in game the shadows are way off but to the inside of the trees this time...Since my terrain is 1025, I did the 1638.4. Then resized the png to 1025.
This is what is in my terrain.hf since you asked last time...9 2.000000 -546.916382 7.866072

Image
Image
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Tutorial - Rendering A Shadow Map

Post by jlv »

Your scale is set to 2, so you'd want 2048 instead of 1638.4. You might find this shadows.pov file easier to modify since you just set the "#declare SCALE" line and let the script figure out the size for the field and camera.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
slowngreen
Posts: 907
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Post by slowngreen »

OK that did it, thanks once again sir. Just so I know, where do you find or how to you see what scale it is? And how is it changed? Since last time I had you help me it was 1 and now its 2?
Image
barrington314
Posts: 6614
Joined: Fri Feb 18, 2011 6:03 pm
Team: me
Location: Charleston, SC

Re: Tutorial - Rendering A Shadow Map

Post by barrington314 »

slowngreen wrote:9 2.000000 -546.916382 7.866072
jlv wrote:Your scale is set to 2
2nd number.

To get the 2048 like JLV told you; (Resolution -1) x scale. So in your case (1025-1)x2.
slowngreen
Posts: 907
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Post by slowngreen »

Ok awesome thanks. Appreciate you guys taking the time to help, a map with shadows is so much more complete in my opinion.
Image
MXfish
Posts: 112
Joined: Thu Feb 26, 2015 7:54 pm
Team: Blume Racing
Location: Germany
Contact:

Re: Tutorial - Rendering A Shadow Map

Post by MXfish »

I'm getting this error: Not sure what to do.

Image
Image
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Tutorial - Rendering A Shadow Map

Post by jlv »

"statues" should have been defined in "track.pov", so the problem is likely in "track.pov".
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
MXfish
Posts: 112
Joined: Thu Feb 26, 2015 7:54 pm
Team: Blume Racing
Location: Germany
Contact:

Re: Tutorial - Rendering A Shadow Map

Post by MXfish »

Yes, I accidentely deleted #declare statues = union { when I was removing the startinggate lines from the track.pov.
Now it ia working fine :D
Image
Post Reply