Tutorial - Rendering A Shadow Map

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

Re: Tutorial - Rendering A Shadow Map

Postby jlv » Sun Jun 01, 2014 3:04 am

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: 904
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Postby slowngreen » Mon Jun 09, 2014 1:15 am

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: 12281
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Tutorial - Rendering A Shadow Map

Postby jlv » Mon Jun 09, 2014 2:38 am

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: 904
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Postby slowngreen » Tue Jul 15, 2014 12:15 am

Well Im having trouble again.

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

Image
Image

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

Re: Tutorial - Rendering A Shadow Map

Postby jlv » Tue Jul 15, 2014 2:26 am

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: 904
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Postby slowngreen » Tue Jul 15, 2014 2:52 am

No. Should it? Is that the problem?
Image

slowngreen
Posts: 904
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Postby slowngreen » Tue Jul 15, 2014 3:23 pm

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: 904
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Postby slowngreen » Tue Jul 15, 2014 3:51 pm

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: 12281
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Tutorial - Rendering A Shadow Map

Postby jlv » Tue Jul 15, 2014 11:00 pm

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: 904
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Postby slowngreen » Tue Jul 15, 2014 11:10 pm

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: 6046
Joined: Fri Feb 18, 2011 6:03 pm
Team: me
Location: Charleston, SC

Re: Tutorial - Rendering A Shadow Map

Postby barrington314 » Wed Jul 16, 2014 3:01 am

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: 904
Joined: Mon Sep 02, 2013 6:18 pm
Team: MotoPin Racing
Location: idaho

Re: Tutorial - Rendering A Shadow Map

Postby slowngreen » Wed Jul 16, 2014 3:05 am

Ok awesome thanks. Appreciate you guys taking the time to help, a map with shadows is so much more complete in my opinion.
Image

User avatar
MXfish
Posts: 103
Joined: Thu Feb 26, 2015 7:54 pm
Team: Blume Racing
Location: Germany
Contact:

Re: Tutorial - Rendering A Shadow Map

Postby MXfish » Wed Oct 28, 2015 8:02 pm

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

Image
Image

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

Re: Tutorial - Rendering A Shadow Map

Postby jlv » Thu Oct 29, 2015 12:50 am

"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.

User avatar
MXfish
Posts: 103
Joined: Thu Feb 26, 2015 7:54 pm
Team: Blume Racing
Location: Germany
Contact:

Re: Tutorial - Rendering A Shadow Map

Postby MXfish » Thu Oct 29, 2015 8:44 am

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


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest