上传者: robbengy
|
上传时间:2020/1/11 18:08:02
|
文件大小:296KB
|
文件类型:rar
中文版ROAM及时动态LOD地形渲染代码
ROAMSimplisticImplementationByBryanTurnerbrturn@bellsouth.netJanuary,2000ProjectfileforMSVisualC++6.0.RequiresGLUTDLL(www.opengl.org)AdjustprogramconstantsinLandscape.handUtility.cpp.MAPS:DefaultmapisreadfromHeghtXXX.rawwhereXXXistheMAP_SIZE(asdefinedinLandscape.h).Ifthismapisnotfound,theprogramattemptstoopen"Map.ved",aTreadMarksmapfile.TreadMarksmapswillonlyworkforMAP_SIZE==1024.Also,theMULT_SCALEtoviewTreadMarksmapscorrectlyis"0.25f".(www.TreadMarks.com)CONTROLS:MOUSE-HoldLeftMouseButtontoRotateViewAngleQ-ChangeRenderingMode(Wireframe,Lit,Fill,Texture)O-ChangeViewMode(Observe,Follow,Drive,Fly)W/S-Moveforward/backA/D-Rotateleft/right(inObserveModeonly)F-StopAnimationR-ToggleFrustumDrawing0/9-More/LessTrianglesperframe1/2-AdjustFOV
本软件ID:998772