Game Development Community

CG Water and Minimap woes

by Gavin Bunney · in RTS Starter Kit · 06/17/2006 (8:52 pm) · 0 replies

I've almost completed putting the CG water resource (www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10357) into the RTS Kit, but am running into a few difficulties with regards to ye old minimap.

Just integrating the resource crashes the engine - I've isolated the problem down to the minimap. More specifically when it attempts to render any water blocks, it crashes.

Commenting out the water block rendering, about line 166 in guiMapHudGen.cc changing

gClientSceneGraph->renderScene(TerrainObjectType | WaterObjectType);

to

gClientSceneGraph->renderScene(TerrainObjectType);

allows the game to load up and I get the following result:

www.irombu.com/theseven/CGWater.Minimap.png

Which means the actual CG water is working fine, but alas no water block is rendered on the minimap! So has anyone had any success in integrating the CG water into the RTS kit? I've tried various things, such as disabling the CG (setting cg_enable = false; in fluidrender.cc) but everything i try, if i still leave the WaterObjectType in the renderScene call it just crashes :(

Any ideas? :)