Tutorial - Rendering A Shadow Map

Post Reply
warrior462
Posts: 369
Joined: Thu May 06, 2010 10:51 pm

Re: Tutorial - Rendering A Shadow Map

Post by warrior462 »

Alright, got past that, I now have the bitmap file, but when I get it in photoshop I can't save it as a pgm. I got shadows.pgm.bmp, a bitmap file, when I tried. How do I save it as a pgm?
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 »

Should be listed under portable bitmap, think it's .pbm, but just change the extension and it'll work still.
TeamHavocRacing wrote:If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.
warrior462
Posts: 369
Joined: Thu May 06, 2010 10:51 pm

Re: Tutorial - Rendering A Shadow Map

Post by warrior462 »

I don't have that as an option, using photoshop 6.0. I tried saving it as raw, and was able to make it a pgm file from there, but the game couldn't read it and wouldn't open the track with that in the folder.
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 »

TeamHavocRacing wrote:If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.
warrior462
Posts: 369
Joined: Thu May 06, 2010 10:51 pm

Re: Tutorial - Rendering A Shadow Map

Post by warrior462 »

Thanks a ton man, I assumed with photoshop I would never have to bother with Gimp, guess I was wrong.
yz171kx12
Posts: 631
Joined: Thu Feb 17, 2011 11:21 pm
Location: Southern California

Re: Tutorial - Rendering A Shadow Map

Post by yz171kx12 »

Why does this happen? It just stays like this when I add the shadows file. I know this was already mentioned, but I don't get how to make it work.
Image
alien10swe
Crushed Dissenter
Posts: 52
Joined: Thu Oct 06, 2011 1:56 pm
Team: V-Image

Re: Tutorial - Rendering A Shadow Map

Post by alien10swe »

please help me it always fucks upp
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 »

Thanks for giving us info on errors or anything at all that could tell us what's going wrong!

:roll:
TeamHavocRacing wrote:If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.
rafagas
Posts: 381
Joined: Sat Dec 31, 2011 12:53 pm
Location: Barcelona, Spain

Re: Tutorial - Rendering A Shadow Map

Post by rafagas »

yzmxer608 wrote:Thanks for giving us info on errors or anything at all that could tell us what's going wrong!

:roll:
Nah, is your fault for not being a fortune teller lol
Image
dempamxr
Posts: 254
Joined: Mon Jan 03, 2011 1:01 pm
Team: I hate people

Re: Tutorial - Rendering A Shadow Map

Post by dempamxr »

im a total newb at this but what should i do here

// PUT SUN CO-ORDINATE IN THE ARROW BRACKETS
parallel
point_at <0, 0, 0>
} and here?

how do i get to know what to there? :(
Image
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 »

Take the sun_vector coordinates from the lighting file and put them in the brackets next to point_at.
DJ99X wrote: Lighting
sun_vector [ 1.00 1.00 1.00 ] (Vector of the sun, [x y z])
sun_color [ 1.00 1.00 0.50 ] (Floating-point colour value, [Red Green Blue]. Equivalent to RGB values in photoshop divided by 255)
ambient [ 0.25 0.25 0.50 ] (Ditto)
TeamHavocRacing wrote:If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.
dempamxr
Posts: 254
Joined: Mon Jan 03, 2011 1:01 pm
Team: I hate people

Re: Tutorial - Rendering A Shadow Map

Post by dempamxr »

yzmxer608 wrote:Take the sun_vector coordinates from the lighting file and put them in the brackets next to point_at.
DJ99X wrote: Lighting
sun_vector [ 1.00 1.00 1.00 ] (Vector of the sun, [x y z])
sun_color [ 1.00 1.00 0.50 ] (Floating-point colour value, [Red Green Blue]. Equivalent to RGB values in photoshop divided by 255)
ambient [ 0.25 0.25 0.50 ] (Ditto)
thanks :D
Image
NAUpoiss75
Posts: 1226
Joined: Tue Jul 27, 2010 9:28 am
Team: Spazztic
Location: Estonia

Re: Tutorial - Rendering A Shadow Map

Post by NAUpoiss75 »

Mine says that cannot open PPM image startgate.ppm?
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Tutorial - Rendering A Shadow Map

Post by DJ99X »

Search and replace ppm "startgate.ppm" with png "dummy.png" (as mentioned in the tute)
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 »

72Motox72 wrote:Umm I need some help here.
when i put shadows.pgm into my tack folder and start to open my track in game it comes up with this.

Image

Does anyone know what i need to do to fix this ?.

P.S Sorry for all the posts.
Having the same issue as this guy, minus the stolen game...

Any idears?
Post Reply