收起左侧

rmRiverCreate数据测试

[复制链接]
こはね发表于 2022-8-9 00:37:44
rmRiverCreate(int areaID, string waterType, int breaks, int offset, int minR, int maxR): make a river dude. 
rmRiverCreate(int areaID, 河流类型, 漩涡半径(也有可能是湍急程度?数值越大礁石越多、漩涡半径越大),半径扩大倍数(公式应该为“河流半径+漩涡半径*半径扩大倍数”,注:当漩涡半径为0时,半径扩大倍数大于0,河流将会消失) , 最小半径, 最大半径)

int breaks漩涡半径与 int offset扩大系数是否如上述所说有待验证

测试语句:
// ---------------------------------------------------------------- River 1 ------------------------------------------------------------------
float MinRadius = 6.5; float MaxRadius = 7; float ShallowsRadius = 3;

int River1ID = rmRiverCreate(-1, "Pampas River", 1, 0, MinRadius, MaxRadius);
rmRiverAddWaypoint(River1ID, 0.79, 1.00 );
rmRiverAddWaypoint(River1ID, 0.74, 0.965 );
rmRiverAddWaypoint(River1ID, 0.73, 0.96 );
rmRiverAddWaypoint(River1ID, 0.72, 0.90 );
rmRiverAddWaypoint(River1ID, 0.715, 0.87 );
rmRiverAddWaypoint(River1ID, 0.71, 0.83 );
rmRiverAddWaypoint(River1ID, 0.71, 0.80 );
rmRiverAddWaypoint(River1ID, 0.715, 0.77 );
rmRiverAddWaypoint(River1ID, 0.715, 0.74 );
rmRiverAddWaypoint(River1ID, 0.71, 0.70 );
rmRiverAddWaypoint(River1ID, 0.695, 0.67 );
rmRiverAddWaypoint(River1ID, 0.69, 0.64 );
rmRiverAddWaypoint(River1ID, 0.68, 0.60 );
rmRiverAddWaypoint(River1ID, 0.67, 0.57 );
rmRiverAddWaypoint(River1ID, 0.65, 0.55 );
rmRiverAddWaypoint(River1ID, 0.64, 0.54 );
rmRiverAddWaypoint(River1ID, 0.63, 0.52 );
rmRiverAddWaypoint(River1ID, 0.63, 0.50 );
rmRiverAddWaypoint(River1ID, 0.61, 0.48 );
rmRiverAddWaypoint(River1ID, 0.61, 0.44 );
rmRiverAddWaypoint(River1ID, 0.62, 0.42 );
rmRiverAddWaypoint(River1ID, 0.615, 0.40 );
rmRiverAddWaypoint(River1ID, 0.62, 0.375 );
rmRiverAddWaypoint(River1ID, 0.65, 0.35 );
rmRiverAddWaypoint(River1ID, 0.66, 0.33 );
rmRiverAddWaypoint(River1ID, 0.67, 0.32 );
rmRiverAddWaypoint(River1ID, 0.71, 0.27 );
rmRiverAddWaypoint(River1ID, 0.74, 0.24 );
rmRiverAddWaypoint(River1ID, 0.76, 0.21 );
rmRiverAddWaypoint(River1ID, 0.76, 0.20 );
rmRiverAddWaypoint(River1ID, 0.77, 0.17 );
rmRiverAddWaypoint(River1ID, 0.765, 0.10 );
rmRiverAddWaypoint(River1ID, 0.765, 0.06 );
rmRiverAddWaypoint(River1ID, 0.745, 0.04 );
rmRiverAddWaypoint(River1ID, 0.73, 0.00 );
rmRiverSetBankNoiseParams(River1ID,0.00, 0, 0.0, 0.0, 0.0, 0.0);
rmRiverAddShallows(River1ID, 3, ShallowsRadius);
rmRiverBuild(River1ID);

测试结果:

11111.jpg
11112.jpg
11113.jpg
11114.jpg
11115.jpg
11116.jpg
11117.jpg

跳转到