资源简介
基于osgOcean代码修改的基于河流渲染的代码。它有以下特点:
可以控制流向。
可以用颜色来反映河水的深度。
可以认为是迄今为止最好的河流模拟效果。
代码片段和文件信息
#include
#include
using namespace osgRiver;
/*
//
vector RiverSegment::CreateFromPoints(RiverFunction& riverFunction vector points RiverControlPoint curvePoint) {
}
//
vector RiverSegment::MergeRiverSegments(vector branch1 vector branch2 RiverControlPoint nextControlPoint) {
vector total;
RiverSegment* last1 = branch1[branch1.size()-1];
RiverSegment* last2 = branch2[branch2.size()-1];
RiverControlPoint lastControl1 = last1->getControlPoint3();
RiverControlPoint lastControl2 = last2->getControlPoint3();
RiverControlPoint lastControlAvg = (lastControl1 + lastControl2) * 0.5;
RiverControlPoint nextControl1 = last1->getControlPoint3() + (last1->getControlPoint3() - last1->getControlPoint2());
RiverControlPoint nextControl2 = last2->getControlPoint3() + (last2->getControlPoint3() - last2->getControlPoint2());
RiverControlPoint nextControlAvg = (nextControl1 + nextControl2) * 0.5;
RiverSegment* nextRiverSegment = new RiverSegment(last1->getRiverFunction() lastControlAvg nextControlAvg nextControlPoint);
last1->addChild(nextRiverSegment);
last2->addChild(nextRiverSegment);
for (size_t i = 0; i < branch1.size(); i++) {
total.push_back(branch1[i]);
}
for (size_t i = 0; i < branch2.size(); i++) {
total.push_back(branch2[i]);
}
total.push_back(nextRiverSegment);
return total;
}
*/
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1527650 2010-06-09 23:13 bin\Debug\libfftw3f-3.dll
文件 1527650 2010-06-09 23:13 bin\Release\libfftw3f-3.dll
文件 1518 2010-06-09 23:26 include\OceanExample\SkyDome.h
文件 1650 2010-06-09 23:26 include\OceanExample\SphereSegment.h
文件 1851 2010-06-09 23:26 include\osgOcean\Cylinder
文件 2706 2010-06-09 23:26 include\osgOcean\DistortionSurface
文件 1560 2010-06-09 23:26 include\osgOcean\Export
文件 19090 2010-06-09 23:26 include\osgOcean\FFTOceanSurface
文件 3389 2010-06-09 23:26 include\osgOcean\FFTSimulation
文件 5202 2010-06-09 23:26 include\osgOcean\GodRayBlendSurface
文件 6043 2010-06-09 23:26 include\osgOcean\GodRays
文件 3581 2010-06-09 23:26 include\osgOcean\MipmapGeometry
文件 26133 2010-06-10 00:43 include\osgOcean\OceanScene
文件 3981 2010-06-09 23:26 include\osgOcean\OceanTechnique
文件 5675 2010-06-09 23:26 include\osgOcean\OceanTile
文件 2040 2010-06-09 23:26 include\osgOcean\RandUtils
文件 7429 2009-12-16 19:30 include\osgOcean\RiverSurface
文件 1537 2010-06-09 23:26 include\osgOcean\ScreenAlignedQuad
文件 2892 2010-06-09 23:26 include\osgOcean\ShaderManager
文件 9372 2010-06-09 23:26 include\osgOcean\SiltEffect
文件 1138 2010-06-09 23:26 include\osgOcean\Version
文件 2390 2010-06-09 23:26 include\osgOcean\WaterTrochoids
文件 1858 2010-03-09 23:07 include\osgRiver\BezierFunction.h
文件 536 2010-03-09 23:55 include\osgRiver\CubicEquationSolver.h
文件 1560 2010-02-28 21:02 include\osgRiver\Export.h
文件 1197 2010-03-01 00:57 include\osgRiver\RenderSegment.h
文件 1555 2010-03-09 20:32 include\osgRiver\River.h
文件 906 2010-02-28 21:47 include\osgRiver\RiverControlPoint.h
文件 2052 2010-03-01 00:15 include\osgRiver\RiverDebugNode.h
文件 1702 2010-03-09 23:07 include\osgRiver\RiverFunction.h
............此处省略271个文件信息
相关资源
- OSG3.6 API开发手册
- vs2010编译osg3.2.1,带有osgQtd.lib和osgQ
- 路径漫游中使用到的ceep.ive数据
- osgb.osg.ive.obj互转工具
- osgb/ive/osg/obj模型格式互转工具
- OpenSceneGraph3Cookbook
- 倾斜摄影数据,osgb格式的
- osg3.6.4-osgEarth2.10.2-x86-x64-VS2019开发库
- CISSP Official Study Guide Eighth Edition(OS
- OSG阴影数据模型
- CISSP 官方习题集(英文版)
- Osg3.4和OsgEarth2.8编译库_x64.7z
- OSGi原理与最佳实践(完整版).PDF
- OpenSceneGraphReferenceDocs-3.4.0.chm
- 整合了OSG引擎demo
- ceep.ive 模型
- VS2013+OSG 下编译好的ffmpeg插件
- OSG3.2.1帮助文档chm格式
- OSGEarth2.8 CHM帮助文档
- OSG虚拟驾驶仿真
- osgb转换工具
- osgDesinger-0.1.2(OSG编辑器)
- osg通过ffmpeg插件加载视频需要的全部
- OSG3.4帮助文档
- OSG For VS2015编译好的库
- OSGExp1.5.1Install_x64.exe
- QGIS1.7.1源代码
- osg论坛上72集视频的所有
- osg3.4.0帮助文档
- OSGopenVR工具
评论
共有 条评论