GithubHelp home page GithubHelp logo

Comments (3)

TokisanGames avatar TokisanGames commented on June 2, 2024 1

Texels are pixels on a texture, as opposed to pixels on a screen. It doesn't have density by itself.
Density is a ratio, and in the case of the mesh, it is the vertices per unit distance.
The only things that exist in this context are the heightmap texture and the mesh.
You can already import a heightmap of any size up to 16k.
It's only the density ratio of 1 texture pixel to 1 mesh vertex that is fixed. #131 allows this to be adjustable, so this ticket is a duplicate as was #198.

@tcoxon has a pending branch to enable transformation controls.

from terrain3d.

TokisanGames avatar TokisanGames commented on June 2, 2024

Is there any reason this is not a duplicate of #131 or #77? Also see #198.

UV = v_vertex.xz;

This has to do with the scaling of the textures on the terrain and will do nothing to scale the mesh or heightmap. You can see it is reduced and used here:

uv *= .5; // Allow larger numbers on uv scale array - move to C++

This might be the much more difficult task.

It is indeed not trivial.

from terrain3d.

ludwigseibt avatar ludwigseibt commented on June 2, 2024

I did not see #198 while searching because it was closed, sorry about that. That issue sounds like pretty much the same thing.

#131 talks about mesh density, not texel density. Mesh density can be independent of texel density, but I think the texel density could be added to the issue as the two are related.

#77 to my understanding talks about the size of the regions, not the texel density of the heightmap or the density of the mesh.

Sorry about the misunderstandings, this issue is hard to talk about because of wording (texel, texture, mesh, density, size, scale, etc).

I am unsure if thats viable, but making the default Godot Transformation controls work on the Terrain node would enable us to change these densities all together. In HTerrain, thats how I can achieve different densities.

from terrain3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.