Ok we're trying to use shadow shading in our game but for some reason, on 1 of the 3 cars, the shadow is backwards...
(Ignore the wheels, they are separate objects with their own shadow shading)
Screenshot:
What causes this and how can we fix it?
(It works fine on the other 2 cars, which were made in Deled, but this car was made in C4D.)
EDIT:
Also for no apparent reason, on this car alone, the back left wheel is ignoring commands to use shadow shading. - Which is odd because the back left wheel is exactly the same model as the back right wheel which
is accepting shadow shading.
Code for back left wheel:
// DYNAMIC BACK LEFT WHEEL
load object "Data\Object data\"+CAR$+"\Back.x",6
scale object 6,20,20,20
xrotate object 6,180
zrotate object 6,-90
position object 6,STARTX#-4,STARTY#-1,STARTZ#-5.5
set object effect 6,1
texture object 6,1,SHADER+1
texture object 6,2,SHADER+2
set shadow shading on 6
phy make rigid body dynamic capsule 6,BACKMAT
phy set rigid body mass 6,500
phy set rigid body angular damping 6,10
phy make revolute joint 3,3,6,1,0,0,object position x(6),object position y(6),object position z(6)
Code for back right wheel:
// DYNAMIC BACK RIGHT WHEEL
load object "Data\Object data\"+CAR$+"\Back.x",7
scale object 7,20,20,20
zrotate object 7,-90
position object 7,STARTX#+4,STARTY#-1,STARTZ#-5.5
set object effect 7,1
texture object 7,1,SHADER+1
texture object 7,2,SHADER+2
set shadow shading on 7
phy make rigid body dynamic capsule 7,BACKMAT
phy set rigid body mass 7,500
phy set rigid body angular damping 7,10
phy make revolute joint 4,3,7,1,0,0,object position x(7),object position y(7),object position z(7)
Now, I've tried importing and exporting the car body through Deled and that sorts out the shadow shading takes out the part to automatically load the texture. I tried this with the back wheel model to see if that would fix it too, but no, strangely enough the back left wheel still doesn't have a shadow. :S
For anyone who wants to see this game for themselves please download it from:
http://www.soharix.homestead.com/World_Off_Road.rar
The car in question is called Rumbler and was made by
Blobby 101