• Content count

  • Joined

  • Last visited

Community Reputation

254 Neutral

About glararan

  • Rank
  1. Tessellation tiles gaps

    That's not actually my problem like in video.. I don't have these problems with terrain
  2. Tessellation tiles gaps

    So I should change TES shader. If I understand correct, I have to change following code: // Calculate the normal // This could be moved to a one-time pre-process step to create a normal map. // This would be a good candidate for a compute shader. // For deformable terrain, would need re-generating when terrain is modified const ivec3 offset = ivec3(-1, 0, 1); // Texel offsets float delta = 2.0 * horizontalScale / textureSize(heightMap, 0).x; // Horizontal displacement in world coords float left = textureOffset(heightMap, Out.texCoords, offset.xy).r; float right = textureOffset(heightMap, Out.texCoords, offset.zy).r; float top = textureOffset(heightMap, Out.texCoords, offset.yz).r; float bottom = textureOffset(heightMap, Out.texCoords, offset.yx).r; vec3 x = normalize(vec3(delta, right - left, 0.0)); vec3 z = normalize(vec3(0.0, top - bottom, delta)); vec3 n = cross(z, x);
  3. Hi there,   I'm looking for solution few months but still nothing. Last week I found new articles about this problematic. 2 articles saying there is problem with tessellation outer level. I set that settings for 0-3 to 7.0 but nothings changed.   What I tried for: 1) Set same height at neighbours... result: terrible! Look: Red thing mean border between tile.   2) Draw another thing "neighbour-fixer?" Result? Some camera angles destroy effect "it's part of original tile". Check top right corner of green thing.. Another thing... its using a lot of vertices.. I mean it's bit inefficient but better than nothing.   3) Shader solution? I mean my shaders are written bad so there is bug but I don't know how to solve it.   So my real question is... Is third mark possible to fix this whole problem? Can be shaders written incorrect and can be written correct to fix this thing?   Original screen problem:   All images were posted with tess level outer I mentioned.   Width, height of map: 1024x1024 Tiles: 16 (256x256)   Articles:     Or do you have any other solution?     Vertex: Geom: TCS: TES:   Thanks for reply and help!
  4. Wou! Dostal jsem #HeroesOfTheStorm pozvánku! Jde se pa?it dneska... práce jde stranou :))
  5. RT @joebelfiore: And... if you're on the Developer Preview, go CHECK FOR UPDATES! WP8.1 Update is now live around the world!
  6. Porting application to Linux under than 30 minutes with external libraries.. result: #OpenGL4 #Qt5 #Linux #Windows
  7. QEditor alfa verze venku s trailerem :)
  8. RT @Wladass: Dp? se mi to samo p?eplo na ten novej vzhled. #fuckTwitter
  9. Hi,   I have terrain based on level of detail. I'm using tessellation and I have cracks between each map. I have no idea how to fix this.   If someone have an idea please, share it with me. Thanks!   Below you can see cracks between map (red lines mean border of each map)  
  10. Hello,   I'm coming for advice how to make flatten tool with option angle.   What I have done? Simple, I have whole function for making flat terrain, also in following picture you can see its working.   I'm using following formula to making terrain flatten: // @change(float) = pow(0.2f, dt) // @mapData[index](float): heightmap // @y(float): height at cursor position float changeFormula = change * mapData[index] + (1 - change) * y; mapIndex[index] = changeFormula; // sending mapIndex[index] to repaint Now what I want to do with terrain? Simple again... following picture for better describing   Biggest trouble for me is making formula, I don't know how to make it. If you are math genius tell me please what I need or if its very easy for you if you can solve it.   Thanks.
  11. Batman Arkham Origins dohráno :)
  12. WOW už se t?ším na BlizzCon! Schedule list už je hotový! #WoW