terrain

How is a 3d perlin noise function used to generate terrain?

自作多情 提交于 2020-02-20 06:55:49
问题 I can wrap my head around using a 2D Perlin noise function to generate the height value but I don't understand why a 3D Perlin noise function would be used. In Notch's blog, he mentioned using a 3D Perlin noise function for the terrain generation on Minecraft. Does anyone know how that would be done and why it would be useful? If you are passing x , y , and z values doesn't that imply you already have the height? 回答1: Well, Minecraft is about Mines. So, what Notch tried to solve was: "How do

How is a 3d perlin noise function used to generate terrain?

纵然是瞬间 提交于 2020-02-20 06:54:48
问题 I can wrap my head around using a 2D Perlin noise function to generate the height value but I don't understand why a 3D Perlin noise function would be used. In Notch's blog, he mentioned using a 3D Perlin noise function for the terrain generation on Minecraft. Does anyone know how that would be done and why it would be useful? If you are passing x , y , and z values doesn't that imply you already have the height? 回答1: Well, Minecraft is about Mines. So, what Notch tried to solve was: "How do

How to merge multiple 3D objects as a single Mesh in order to remove a visual glitch?

◇◆丶佛笑我妖孽 提交于 2020-01-15 08:55:50
问题 I've been doing a lot of voxel terrain generation with JavaFX 3D. For some reason, whenever I generate a landscape, the right side of the landscape will always have these weird black lines. I've tried changing the PerspectiveCamera 's near and far clip values, but they seem to have no effect. In case you need it, my near clip value is set to 0.1 and my far clip value is set to 100000.0 . Here is a picture of my program, as you can see, there are clear visual glitches present mainly on the

navigating on cesium terrain map , corrupts position of graphics

a 夏天 提交于 2020-01-14 14:35:04
问题 i am using cesium on my gwt project and i am using cesium-terrain-server for terrain. (Not cesium-gwt , devoloping my own code with jsni) My problem : i am creating graphic on terrain (polygon , polyline) , when i navigate on map , graphics are moving from its position. is there any way to immobilize them on the point(s) which i selected before ? example code : var polygon = new Cesium.PolygonGraphics({ fill : true; material : Cesium.Color.BLUE.withAlpha(0.5), outline : true, hierarchy :{

navigating on cesium terrain map , corrupts position of graphics

。_饼干妹妹 提交于 2020-01-14 14:34:22
问题 i am using cesium on my gwt project and i am using cesium-terrain-server for terrain. (Not cesium-gwt , devoloping my own code with jsni) My problem : i am creating graphic on terrain (polygon , polyline) , when i navigate on map , graphics are moving from its position. is there any way to immobilize them on the point(s) which i selected before ? example code : var polygon = new Cesium.PolygonGraphics({ fill : true; material : Cesium.Color.BLUE.withAlpha(0.5), outline : true, hierarchy :{

Antialias height map edge using Java 2D

眉间皱痕 提交于 2019-12-25 01:46:03
问题 I'm using Java 2D to render a terrain map. Terrain Map looks like this: You can see how the edges are rather jagged. I want to render the edge of the terrain smoothly, but turning on antialiasing with RenderingHints doesn't work because I render the terrain map one column at a time. Here's my code to render the terrain: // terrainImageG2 renders to a BufferedImage, obtained via BufferedImage.createGraphics() terrainImageG2.setBackground(Color.WHITE); terrainImageG2.clearRect(0, 0, NUM_WIDE,

Is it possible to show terrain maps with Android MapView class

痴心易碎 提交于 2019-12-23 04:04:35
问题 Is it possible to show terrain maps similar to this http://maps.google.com/maps?hl=en&ie=UTF8&ll=45.699466,6.389236&spn=0.327066,0.861053&t=p&z=11 using MapView class? 回答1: You can swap styles of the map with .setSatellite(true or false); true for sattelite map false for road map. This style of map is not supported, yet. 来源: https://stackoverflow.com/questions/6795705/is-it-possible-to-show-terrain-maps-with-android-mapview-class

Cesium - drawing polygon using camera Lat-Lon-Alt positions

允我心安 提交于 2019-12-23 03:12:25
问题 This question is related to these two: Cesium how to scale a polygon to match Lat-Lon positions while zoom-in/zoom-out Cesium - using camera to scale a polygon to match Lat-Lon positions while zoom-in/zoom-out The sample code I am following to get lat-lon-alt positions from the camera is located in the gold standard that appears to be baked into the existing camera controller. With this code I can retrieve lat-lon-alt positions from the distance of the camera to get values that are almost

Multiple texture images blended together onto 3D ground

隐身守侯 提交于 2019-12-18 12:28:31
问题 How do computer games render their ground? I will be using a heightmap for geometry (though I will later optimize it) but I am wondering what the best technique is, for example, to 'paint' my ground; grass most everywhere, dirt paths here and there, gravel inside towns, and smooth transitions between each type of material. Do I just use a huge pre-baked texture? That seems very inefficient, when I could tile existing textures. So then do I use a huge alpha map for each existing texture? In

Basic Dual Contouring Theory

扶醉桌前 提交于 2019-12-17 17:36:07
问题 I've been searching on google, but cannot find anything basic. In it's most basic form, how is dual contouring (for a voxel terrain) implememted? I know what it does, and why, but cannot understand how to do it. JS or C# (preferably) is good.Has anyone used Dual contouring before and can explain it briefly? 回答1: Ok. So I got bored tonight and decided to give implementing dual contouring myself a shot. Like I said in the comments, all the relevant material is in section 2 of the following