Tutorial - Rendering A Shadow Map

Post Reply
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: Tutorial - Rendering A Shadow Map

Post by wheels1758 »

Means your shadows.pgm is not the same size as your terrain.png...I think
Phathry25
Posts: 7481
Joined: Sat Dec 01, 2007 1:09 am
Team: No Frills Racing
Location: WI
Contact:

Re: Tutorial - Rendering A Shadow Map

Post by Phathry25 »

ffs it was one pixel off, and I just verified visually....

That said the shadows still didn't line up properly. :(
Phathry25
Posts: 7481
Joined: Sat Dec 01, 2007 1:09 am
Team: No Frills Racing
Location: WI
Contact:

Re: Tutorial - Rendering A Shadow Map

Post by Phathry25 »

Figured it out. :mrgreen:
BuddyTheElf
Posts: 2264
Joined: Tue Nov 29, 2011 10:47 pm
Team: Privateer
Location: UK

Re: Tutorial - Rendering A Shadow Map

Post by BuddyTheElf »

Can anyone help me with this? I removed the billboard files before exporting the track.pov and I've changed all the missing textures for the objects to the dummy.png but when I go to "run" it highlights the bit in yellow and I dont know what to do about that.

I've rendered shadows for a track before but it was ages ago and I dont remember getting an error like this.

Image
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Tutorial - Rendering A Shadow Map

Post by DJ99X »

Make sure you have this in the shadows.pov file

#macro hidden()
cylinder {
<0.0, 0.0, 0.0>, <0.0, 5.0, 0.0>, 0.75
no_shadow
}
#end

#macro _30sec_30()
hidden()
#end
BuddyTheElf
Posts: 2264
Joined: Tue Nov 29, 2011 10:47 pm
Team: Privateer
Location: UK

Re: Tutorial - Rendering A Shadow Map

Post by BuddyTheElf »

Sorry to be a complete moron but where exactly do I put that?
BuddyTheElf
Posts: 2264
Joined: Tue Nov 29, 2011 10:47 pm
Team: Privateer
Location: UK

Re: Tutorial - Rendering A Shadow Map

Post by BuddyTheElf »

Sorry I mis-read your comment. That appears to already be in the shadow.pov
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Tutorial - Rendering A Shadow Map

Post by DJ99X »

Hmmm. You're not running the track.pov file instead of the shadow.pov file are you?
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Tutorial - Rendering A Shadow Map

Post by DJ99X »

Yep, that's what you're doing
BuddyTheElf
Posts: 2264
Joined: Tue Nov 29, 2011 10:47 pm
Team: Privateer
Location: UK

Re: Tutorial - Rendering A Shadow Map

Post by BuddyTheElf »

Ok so I closed the track.pov and ran the shadow.pov and the yellow error bar moves down to the bit on the picture where it says _triplight_green()
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Tutorial - Rendering A Shadow Map

Post by DJ99X »

That's not defined in the shadows.pov file. Just remove both billboards and flaggers from your track and export track.pov again
BuddyTheElf
Posts: 2264
Joined: Tue Nov 29, 2011 10:47 pm
Team: Privateer
Location: UK

Re: Tutorial - Rendering A Shadow Map

Post by BuddyTheElf »

Thanks Dj, that did the trick :D
Mx-Team947
Posts: 65
Joined: Wed Feb 22, 2012 11:39 am
Team: Privateer

Re: Tutorial - Rendering A Shadow Map

Post by Mx-Team947 »

Hm.. Why i have a bad quality ?
Heelp Pliiz

http://img29.imageshack.us/img29/4845/shadowhd.png
yzmxer608
Posts: 15352
Joined: Mon Dec 29, 2008 4:30 am
Team: SYS
Location: Wisconsin, U.S.A

Re: Tutorial - Rendering A Shadow Map

Post by yzmxer608 »

You did it correctly, that's just how it looks, the rendered shadows are 100% black and no shadows are 100% white. If you put it in game it will look fine ;).
TeamHavocRacing wrote:If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.
Mx-Team947
Posts: 65
Joined: Wed Feb 22, 2012 11:39 am
Team: Privateer

Re: Tutorial - Rendering A Shadow Map

Post by Mx-Team947 »

Post Reply