| Poster | : Shamun | | Posts | : 2 | | Country | : | | City | : |
| | | | Posted by Shamun on 15/06/2007 at 16:17:18
| | | I can't see the lighting I tried to copy the code from the tutorial but I see the same terrain. What should I do? | |
|
|
| |
| |
| Poster | : boabmcb | | Posts | : 1 | | Country | : uk | | City | : Edinburgh |
| | | | Posted by boabmcb on 28/12/2008 at 15:40:38
| | Can I second this post as have copied the code also but cannot see any lighting :-(
Any suggestions ?
Thanks | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 14/01/2009 at 14:01:07
| | If you had commented out the following lines in teh fx file,
if (xEnableLighting)
Output.LightingFactor = saturate(dot(Normal, -xLightDirection));
Uncomment them and it will work. It seems there is a problem that effects older video cards, in earlier chapters. I don't know enough about the hardware to offer any better solutions, but when we were not using lighting earlier, for some reason that line in the effects file would prevent the image from appearing. now when we are, it works fine. | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 14/01/2009 at 14:01:43
| | If you had commented out the following lines in teh fx file,
if (xEnableLighting)
Output.LightingFactor = saturate(dot(Normal, -xLightDirection));
Uncomment them and it will work. It seems there is a problem that effects older video cards, in earlier chapters. I don't know enough about the hardware to offer any better solutions, but when we were not using lighting earlier, for some reason that line in the effects file would prevent the image from appearing. now when we are, it works fine. | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 04/05/2010 at 13:15:25
| | My problem was opposite, i had to comment that if statement to get lightning work
----Cut----
//if (xEnableLighting)
Output.LightingFactor = saturate(dot(Normal, -xLightDirection));
---Paste---
//Hannu | |
|
|