Kart Racing Pro Official Forum

Mods => Track Editing => Topic started by: franmedo on January 30, 2012, 03:54:39 PM

Title: Shadows
Post by: franmedo on January 30, 2012, 03:54:39 PM
Hello!

I read that everything will cast shadows and it does, except my cones. I already named them different (also the textures) but it doesnt help.

Also the verges on the sand (which have CK like on essays sand) doesnt receive shadows( a tirewall is next to it so i can see that ) I already called it shad_verge but it also doesnt help.

Any suggestions please? Looks pretty ugly with this problems

Thanks in advance!!
Title: Re: Shadows
Post by: PiBoSo on January 30, 2012, 04:04:24 PM
Quote from: franmedo on January 30, 2012, 03:54:39 PM
Hello!

I read that everything will cast shadows and it does, except my cones. I already named them different (also the textures) but it doesnt help.

Also the verges on the sand (which have CK like on essays sand) doesnt receive shadows( a tirewall is next to it so i can see that ) I already called it shad_verge but it also doesnt help.

Any suggestions please? Looks pretty ugly with this problems

Thanks in advance!!

Polygons mapped with textures with alpha channel will not receive shadows.
Title: Re: Shadows
Post by: franmedo on January 30, 2012, 04:08:58 PM
Ok thanks, hopefully you can fix this in beta 6.
You have and idea on the other problem?
And how can i can tell a objects that it should not cast shadow?:D
Title: Re: Shadows
Post by: Nitrox on January 30, 2012, 04:13:27 PM
Just remove alpha channel and you'll be fine :)
Title: Re: Shadows
Post by: franmedo on January 30, 2012, 04:16:26 PM
Quote from: Nitrox on January 30, 2012, 04:13:27 PM
Just remove alpha channel and you'll be fine :)
What do you mean? Remove alpha channel on a verge? But then the verge is useless.
And the cones have no alpha channel. ;)
Title: Re: Shadows
Post by: Nitrox on January 30, 2012, 06:02:25 PM
Yes I mainly referred to the cones. Concerning the verge it depends on how you built it, you could have also blend the texture itself or use bump map. It might be difficult though.. All in all, I don't think you will even notice shadow on cones while racing ;)
Title: Re: Shadows
Post by: franmedo on January 30, 2012, 08:04:45 PM
My cones have no alpha channel. And yes you won't notice it while racing but its a nice detail i want to have :P I mean, everything is casting shadows!
And how you mean it to blend the texture itself instead of alpha channel?
thx in advance
Title: Re: Shadows
Post by: franmedo on February 01, 2012, 02:10:00 PM
bump
Title: Re: Shadows
Post by: maxrod on February 01, 2012, 05:59:35 PM
Do you mean they are not createing a shadow or receive shadow, Have you tried to place them in a different place to see if they make a shadow somewhere else, can you rebuild them as a cone is i simple object to create.
Title: Re: Shadows
Post by: franmedo on February 01, 2012, 06:26:42 PM
Quote from: maxrod on February 01, 2012, 05:59:35 PM
Do you mean they are not createing a shadow or receive shadow, Have you tried to place them in a different place to see if they make a shadow somewhere else, can you rebuild them as a cone is i simple object to create.

They do not creating shadows. They are placed around the track, but non of the cones cast shadows. I also  have 2 different cone styles, so i already build "antoher one". I already called them and their textures completly different but they just dont cast shadows, i have no fucking idea whats going wrong!

Also can someone tell me what can i do to force an object that it should not cast shadows? On some things its useless and ugly
Title: Re: Shadows
Post by: whitham69 on February 02, 2012, 08:46:48 PM
make a shadow tga and model and use the decal prefix to add them to the track, it wont move around but you got a shadow
Title: Re: Shadows
Post by: EVO on February 02, 2012, 11:49:05 PM
never thought of that great idea
Title: Re: Shadows
Post by: franmedo on February 03, 2012, 09:34:25 AM
Thanks but i dont want to improvise. The Main questions is: how can i make a object NOT casting shadows?
Please help piboso!
Title: Re: Shadows
Post by: PiBoSo on February 03, 2012, 11:00:13 AM
Quote from: franmedo on February 03, 2012, 09:34:25 AM
Thanks but i dont want to improvise. The Main questions is: how can i make a object NOT casting shadows?
Please help piboso!

It is not possible at the moment.
Title: Re: Shadows
Post by: franmedo on February 03, 2012, 11:14:53 AM
Thanks for the answer! And how do you explain that my cones do not cast shadow?:(
Title: Re: Shadows
Post by: whitham69 on February 04, 2012, 01:53:22 PM
Could be a model size related issue. There has to be something writen to stop small objects casting shadow or every small step curve would cast and could cause FPS issue. But that just my guess.
Title: Re: Shadows
Post by: franmedo on February 04, 2012, 03:54:55 PM
Thx for the answer. My cones are not very high poly, much more high polied objects cast shadow on my track....
Title: Re: Shadows
Post by: whitham69 on February 04, 2012, 04:37:30 PM
sorry not the amount of polys, the pysical size of the object,  A 10 meter high pole might cast a shadow a 1 meter high pole might not, i've never check it only a guess.
Title: Re: Shadows
Post by: franmedo on February 05, 2012, 10:26:32 AM
Ah ok. Well but on lonato/essay tracks the cone cast shadows!
Title: Re: Shadows
Post by: EVO on February 06, 2012, 11:07:04 AM
Here two cones with great texture that show shadows in game
http://www.mediafire.com/?ymk2ctg5vyhznfa
Title: Re: Shadows
Post by: PiBoSo on February 09, 2012, 08:03:17 PM
Quote from: franmedo on February 03, 2012, 09:34:25 AM
Thanks but i dont want to improvise. The Main questions is: how can i make a object NOT casting shadows?
Please help piboso!

Actually, it IS possible. Adding the SKIDS prefix to an object's name should disable shadow casting.
Title: Re: Shadows
Post by: franmedo on February 09, 2012, 08:10:40 PM
cool, thanks!