chaosfire / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

changing shadow type from none to depth and vice versa cause the grass to be lost #114

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
if you open the game in a shadow on or off setting everything looks good ,once 
you change the shadow type the grass goes missing 

Original issue reported on code.google.com by a.isma...@gmail.com on 23 Nov 2011 at 4:31

GoogleCodeExporter commented 8 years ago
Yeah. I know, this is bad. (Actually it will be there again after starting a 
new game or F5, but applying it on-the-fly does not work)

Another issue is that trees will not update (i.e. if you turn shadows off, 
trees still have shadow on them)

All this is probably caused by the fact that paged-geom clones all its 
materials, thus changing the original materials has no effect. But I have no 
clue why the grass disappears. 

(As a side note for next time, Type-Defect label is for reports from users, we 
as developers use Type-Problem)

Original comment by scrawl...@gmail.com on 23 Nov 2011 at 5:57

GoogleCodeExporter commented 8 years ago

Original comment by scrawl...@gmail.com on 23 Nov 2011 at 5:57

GoogleCodeExporter commented 8 years ago
Ok grass was easy, just had to update the shader params after the material 
changed.

Original comment by scrawl...@gmail.com on 23 Nov 2011 at 6:09

GoogleCodeExporter commented 8 years ago
i believe this is now fixed ,reopen if needed

Original comment by a.isma...@gmail.com on 27 Nov 2011 at 3:02