Home
last modified time | relevance | path

Searched refs:heightMap (Results 1 – 25 of 98) sorted by relevance

1234

/dports/games/spring/spring_98.0/AI/Skirmish/HughAI/src-ai/hughai/mapping/
H A DHeightMap.java149 return heightMap[heightMapPos.x][heightMapPos.y]; in getElevationAt()
235 if( heightMap != null ) { in GetHeightMap()
236 return heightMap; in GetHeightMap()
239 return heightMap; in GetHeightMap()
243 return heightMap; in GetHeightMap()
248 return heightMap; in GetHeightMap()
255 heightMap = new float[mapwidth + 1][ mapheight + 1]; in calculateHeightMap()
260 heightMap[x][ y] = gameMap.getElevationAt(x in calculateHeightMap()
275 heightMap = (float[][])storedHeightMap; in LoadCoreStorage()
339 objectOutputStream.writeFloat( heightMap[x][y] ); in SaveCache()
[all …]
H A DSlopeMap.java121 HeightMap heightMap = playerObjects.getMaps().getHeightMap(); in GetSlopeMap() local
136 heightMap.getElevationAt( new HeightMapPos( x - 1, y - 1 ) ) in GetSlopeMap()
137 - heightMap.getElevationAt( new HeightMapPos( x + 3, y - 1) ), in GetSlopeMap()
142 heightMap.getElevationAt( new HeightMapPos( x - 1, y - 1 ) ) in GetSlopeMap()
143 - heightMap.getElevationAt( new HeightMapPos( x - 1, y + 3) ), in GetSlopeMap()
153 heightMap.getElevationAt( new HeightMapPos( x + 3, y + 3 ) ) in GetSlopeMap()
154 - heightMap.getElevationAt( new HeightMapPos( x - 1, y + 3) ), in GetSlopeMap()
159 heightMap.getElevationAt( new HeightMapPos( x + 3, y + 3 ) ) in GetSlopeMap()
160 - heightMap.getElevationAt( new HeightMapPos( x + 3, y - 1 ) ), in GetSlopeMap()
H A DMaps.java34 HeightMap heightMap; field in Maps
49 heightMap = new HeightMap(playerObjects); in Maps()
76 return heightMap; in getHeightMap()
/dports/misc/dartsim/dart-6.11.1/dart/collision/ode/detail/
H A DOdeHeightmap-impl.hpp115 const dynamics::HeightmapShape<S>* heightMap) in OdeHeightmap() argument
118 assert(heightMap); in OdeHeightmap()
121 const auto& scale = heightMap->getScale(); in OdeHeightmap()
122 const auto& heights = heightMap->getHeightField(); in OdeHeightmap()
131 heightMap->getWidth(), in OdeHeightmap()
132 heightMap->getDepth(), in OdeHeightmap()
137 mOdeHeightfieldId, heightMap->getMinHeight(), heightMap->getMaxHeight()); in OdeHeightmap()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/angle/third_party/glmark2/src/data/shaders/
H A Dterrain-normalmap.frag3 uniform sampler2D heightMap;
9 float val = texture2D( heightMap, vUv ).x;
11 float valU = texture2D( heightMap, vUv + vec2( 1.0 / resolution.x, 0.0 ) ).x;
12 float valV = texture2D( heightMap, vUv + vec2( 0.0, 1.0 / resolution.y ) ).x;
/dports/benchmarks/glmark2/glmark2-2021.12/data/shaders/
H A Dterrain-normalmap.frag3 uniform sampler2D heightMap;
9 float val = texture2D( heightMap, vUv ).x;
11 float valU = texture2D( heightMap, vUv + vec2( 1.0 / resolution.x, 0.0 ) ).x;
12 float valV = texture2D( heightMap, vUv + vec2( 0.0, 1.0 / resolution.y ) ).x;
/dports/graphics/qgis-ltr/qgis-3.16.16/src/3d/terrain/
H A Dqgsdemterraintilegeometry_p.cpp146 static bool hasNoData( int i, int j, const float *heightMap, int resX, int resZ ) in hasNoData() argument
148 return std::isnan( heightMap[ ijToHeightMapIndex( i, j, resX, resZ ) ] ) || in hasNoData()
149 std::isnan( heightMap[ ijToHeightMapIndex( i + 1, j, resX, resZ ) ] ) || in hasNoData()
150 std::isnan( heightMap[ ijToHeightMapIndex( i, j + 1, resX, resZ ) ] ) || in hasNoData()
151 std::isnan( heightMap[ ijToHeightMapIndex( i + 1, j + 1, resX, resZ ) ] ); in hasNoData()
154 static QByteArray createPlaneIndexData( int res, const QByteArray &heightMap ) in createPlaneIndexData() argument
168 const float *heightMapFloat = reinterpret_cast<const float *>( heightMap.constData() ); in createPlaneIndexData()
218 , mHeightMap( heightMap ) in PlaneVertexBufferFunctor()
253 explicit PlaneIndexBufferFunctor( int resolution, const QByteArray &heightMap ) in PlaneIndexBufferFunctor() argument
255 , mHeightMap( heightMap ) in PlaneIndexBufferFunctor()
[all …]
H A Dqgsterraindownloader.cpp93 void QgsTerrainDownloader::tileImageToHeightMap( const QImage &img, QByteArray &heightMap ) in tileImageToHeightMap() argument
101 heightMap.resize( sizeof( float ) * count ); in tileImageToHeightMap()
102 float *hData = reinterpret_cast<float *>( heightMap.data() ); in tileImageToHeightMap()
154 QByteArray heightMap; in getHeightMap() local
155 tileImageToHeightMap( img, heightMap ); in getHeightMap()
172 …sterIO( GDALGetRasterBand( hSrcDS.get(), 1 ), GF_Write, 0, 0, res, res, heightMap.data(), res, res… in getHeightMap()
/dports/graphics/qgis/qgis-3.22.3/src/3d/terrain/
H A Dqgsdemterraintilegeometry_p.cpp146 static bool hasNoData( int i, int j, const float *heightMap, int resX, int resZ ) in hasNoData() argument
148 return std::isnan( heightMap[ ijToHeightMapIndex( i, j, resX, resZ ) ] ) || in hasNoData()
149 std::isnan( heightMap[ ijToHeightMapIndex( i + 1, j, resX, resZ ) ] ) || in hasNoData()
150 std::isnan( heightMap[ ijToHeightMapIndex( i, j + 1, resX, resZ ) ] ) || in hasNoData()
151 std::isnan( heightMap[ ijToHeightMapIndex( i + 1, j + 1, resX, resZ ) ] ); in hasNoData()
154 static QByteArray createPlaneIndexData( int res, const QByteArray &heightMap ) in createPlaneIndexData() argument
168 const float *heightMapFloat = reinterpret_cast<const float *>( heightMap.constData() ); in createPlaneIndexData()
218 , mHeightMap( heightMap ) in PlaneVertexBufferFunctor()
253 explicit PlaneIndexBufferFunctor( int resolution, const QByteArray &heightMap ) in PlaneIndexBufferFunctor() argument
255 , mHeightMap( heightMap ) in PlaneIndexBufferFunctor()
[all …]
H A Dqgsterraindownloader.cpp93 void QgsTerrainDownloader::tileImageToHeightMap( const QImage &img, QByteArray &heightMap ) in tileImageToHeightMap() argument
101 heightMap.resize( sizeof( float ) * count ); in tileImageToHeightMap()
102 float *hData = reinterpret_cast<float *>( heightMap.data() ); in tileImageToHeightMap()
154 QByteArray heightMap; in getHeightMap() local
155 tileImageToHeightMap( img, heightMap ); in getHeightMap()
172 …sterIO( GDALGetRasterBand( hSrcDS.get(), 1 ), GF_Write, 0, 0, res, res, heightMap.data(), res, res… in getHeightMap()
/dports/games/7kaa/7kaa-2.15.4p1/src/
H A DOGENMAP.cpp88 Plasma heightMap; in generate_map() local
90 heightMap.init(max_x_loc, max_y_loc); in generate_map()
91 heightMap.generate( misc.random(2), 5, misc.rand() ); in generate_map()
132 heightMap.stat(2, heightLimit, heightFreq); in generate_map()
162 heightMap.stat(2, heightLimit, heightFreq); in generate_map()
167 heightMap.add_base_level(initHeightLimit - heightLimit[1]); in generate_map()
181 for(short y = 0; y <= heightMap.max_y; ++y) in generate_map()
182 for(short x = 0; x <= heightMap.max_x; ++x) in generate_map()
184 remove_odd(heightMap, x, y, 5); in generate_map()
197 heightMap.shuffle_level(TerrainRes::min_height(TERRAIN_OCEAN), in generate_map()
[all …]
/dports/misc/orion/orion-1.6.7-12-gec8400c/src/qml/components/
H A DCustomFlow.qml43 var heightMap = {}
47heightMap[visibleChild.y] = Math.max(heightMap[visibleChild.y] || 0, visibleChild.implicitHeight |…
52 visibleChildren[i].height = heightMap[visibleChildren[i].y];
57 … visibleChildren[i].y += (heightMap[visibleChildren[i].y] - visibleChildren[i].height);
62 … visibleChildren[i].y += (heightMap[visibleChildren[i].y] - visibleChildren[i].height) / 2;
/dports/games/spring/spring_98.0/rts/Map/
H A DHeightMapTexture.cpp61 const float* heightMap = readMap->GetCornerHeightMapUnsynced(); in Init() local
65 GL_LUMINANCE, GL_FLOAT, heightMap); in Init()
85 const float* heightMap = readMap->GetCornerHeightMapUnsynced(); in UnsyncedHeightMapUpdate() local
96 const void* src = heightMap + rect.x1 + (z + rect.z1) * xSize; in UnsyncedHeightMapUpdate()
/dports/graphics/libQGLViewer/libQGLViewer-2.7.2/examples/contribs/terrain/
H A Dterrain.cpp31 if (heightMap.arrayHeightMap) in LoadHeightMap()
42 heightMap.arrayHeightMap = new unsigned char[size * size]; in LoadHeightMap()
44 if (heightMap.arrayHeightMap == NULL) in LoadHeightMap()
50 in >> heightMap.arrayHeightMap[i]; in LoadHeightMap()
68 if (heightMap.arrayHeightMap == NULL) in SaveHeightMap()
73 out << heightMap.arrayHeightMap[i]; in SaveHeightMap()
81 if (heightMap.arrayHeightMap) { in UnloadHeightMap()
82 delete[] heightMap.arrayHeightMap; in UnloadHeightMap()
185 if (heightMap.arrayHeightMap) in MakeTerrainFault()
191 heightMap.arrayHeightMap = new unsigned char[sizeHeightMap * sizeHeightMap]; in MakeTerrainFault()
[all …]
H A Dterrain.h73 HEIGHTMAP heightMap;
134 heightMap.arrayHeightMap[(Z * sizeHeightMap) + X] = height; in SetHeightAtPoint()
139 return (heightMap.arrayHeightMap[(Z * sizeHeightMap) + X]); in GetTrueHeightAtPoint()
147 return ((float)(heightMap.arrayHeightMap[(Z * sizeHeightMap) + X]) * in GetScaledHeightAtPoint()
/dports/games/opencity/opencity-0.0.6.5stable/src/mapgen/
H A Dmapmaker.cpp49 const string heightMap, in MapMaker() argument
71 if( heightMap != "" ) { in MapMaker()
72 _loadMap( heightMap ); in MapMaker()
125 void MapMaker::_loadMap( const string heightMap ) in _loadMap() argument
130 generator = new HeightMap( heightMap ); in _loadMap()
H A Dmap.cpp112 SDL_Surface* heightMap = SDL_CreateRGBSurfaceFrom( buffer, _w, _h, 3*8, _w*3, 0, 0, 0, 0); in save() local
114 if( heightMap == NULL ) in save()
121 if( png_save_surface( (file+".png").c_str(), heightMap ) == 0 ) in save()
132 SDL_FreeSurface( heightMap ); in save()
/dports/graphics/krita/krita-4.4.8/libs/image/lazybrush/
H A DKisWatershedWorker.cpp152 KisSequentialConstIterator mapIt(heightMap, rc); in mergeHeightmapOntoStroke()
169 KisPaintDeviceSP heightMap, in parseColorIntoGroups() argument
175 mergeHeightmapOntoStroke(stroke, heightMap, strokeRect); in parseColorIntoGroups()
211 KisPaintDeviceSP heightMap; member
268 m_d->heightMap = heightMap; in KisWatershedWorker()
311 if (!m_d->heightMap) return; in run()
317 m_d->heightMap, in run()
387 KisSequentialConstIterator heightMapIt(heightMap, rc); in initializeQueueFromGroupMap()
642 levelIt = heightMap->createRandomConstAccessorNG(); in processQueue()
907 KisSequentialConstIterator heightIt(heightMap, boundingRect); in dumpGroupMaps()
[all …]
/dports/x11-toolkits/qt5-datavis3d/kde-qtdatavis3d-5.15.2p2/src/datavisualization/data/
H A Dqheightmapsurfacedataproxy.h45 Q_PROPERTY(QImage heightMap READ heightMap WRITE setHeightMap NOTIFY heightMapChanged)
59 QImage heightMap() const;
/dports/games/doomsday/doomsday-2.3.1/doomsday/sdk/libgui/src/graphics/
H A Dheightmap.cpp81 QImage const &heightMap = d->heightImage; in makeNormalMap() local
83 QImage img(heightMap.size(), QImage::Format_ARGB32); in makeNormalMap()
85 int const w = heightMap.width(); in makeNormalMap()
86 int const h = heightMap.height(); in makeNormalMap()
/dports/misc/dartsim/dart-6.11.1/dart/collision/ode/
H A DOdeCollisionObject.cpp236 auto heightMap = static_cast<const HeightmapShapef*>(shape); in createOdeGeom() local
237 geom = new detail::OdeHeightmapf(collObj, heightMap); in createOdeGeom()
241 auto heightMap = static_cast<const HeightmapShaped*>(shape); in createOdeGeom() local
242 geom = new detail::OdeHeightmapd(collObj, heightMap); in createOdeGeom()
/dports/graphics/ogre3d/ogre-1.11.6/Samples/EndlessWorld/src/
H A DPerlinNoiseTerrainGenerator.cpp51 float* heightMap = OGRE_ALLOC_T(float, terrainSize*terrainSize, MEMCATEGORY_GEOMETRY); in define() local
61 heightMap[i*terrainSize + j] = produceSingleHeight( revisedValuePoint ) * mHeightScale; in define()
63 terrainGroup->defineTerrain(x,y,heightMap); in define()
64 OGRE_FREE(heightMap, MEMCATEGORY_GEOMETRY); in define()
/dports/graphics/ogre3d19/sinbad-ogre-dd30349ea667/Samples/EndlessWorld/src/
H A DPerlinNoiseTerrainGenerator.cpp51 float* heightMap = OGRE_ALLOC_T(float, terrainSize*terrainSize, MEMCATEGORY_GEOMETRY); in define() local
61 heightMap[i*terrainSize + j] = produceSingleHeight( revisedValuePoint ) * mHeightScale; in define()
63 terrainGroup->defineTerrain(x,y,heightMap); in define()
64 OGRE_FREE(heightMap, MEMCATEGORY_GEOMETRY); in define()
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/client/net.dengine.client.test.pack/testmodel.pack/
H A DInfo13 heightMap = "bodyheights.png"
17 # heightMap = "bodyheights.png"
/dports/misc/dartsim/dart-6.11.1/dart/collision/bullet/
H A DBulletCollisionDetector.cpp101 const HeightmapShapeT* heightMap);
655 const auto heightMap = static_cast<const HeightmapShapef*>(shape.get()); in createBulletCollisionShape() local
657 return createBulletCollisionShapeFromHeightmap(heightMap); in createBulletCollisionShape()
1025 const HeightmapShapeT* heightMap) in createBulletCollisionShapeFromHeightmap() argument
1028 const auto& scale = heightMap->getScale(); in createBulletCollisionShapeFromHeightmap()
1029 const auto minHeight = heightMap->getMinHeight(); in createBulletCollisionShapeFromHeightmap()
1030 const auto maxHeight = heightMap->getMaxHeight(); in createBulletCollisionShapeFromHeightmap()
1043 heightMap->flipY(); in createBulletCollisionShapeFromHeightmap()
1045 const auto& heights = heightMap->getHeightField(); in createBulletCollisionShapeFromHeightmap()
1051 heightMap->getWidth(), // Width of height field in createBulletCollisionShapeFromHeightmap()
[all …]

1234