Giter VIP home page Giter VIP logo

Comments (13)

kumavis avatar kumavis commented on July 25, 2024

Interesting question -- The game engine is not really suited for this, if you are just looking for rendering voxels there is more freedom.
This isn't exactly straightforward but take a look at this:
https://github.com/mikolalysenko/voxel-mipmap-demo/blob/master/lib/createMesh.js

from voxel-engine.

ctzurcanu avatar ctzurcanu commented on July 25, 2024

Thank you. Rendering is the main intent. But it would not hurt to have the whole engine able to render cuboids..

from voxel-engine.

kumavis avatar kumavis commented on July 25, 2024

it would be a significant change as the block shape is assumed in a range of systems like physics, position/distance calculation, etc

from voxel-engine.

kumavis avatar kumavis commented on July 25, 2024

@mikolalysenko do we have a generic voxel renderer for stackgl?

from voxel-engine.

ctzurcanu avatar ctzurcanu commented on July 25, 2024

@kumavis I am surprised that such variable has not been abstracted out into some kind of general settings :( yet..

from voxel-engine.

mikolalysenko avatar mikolalysenko commented on July 25, 2024

@kumavis not anything usable out of the box, but you can probably patch up ao-mesher/ao-shader for this purpose. Going forward it would probably be better to move the shader bits into separate modules and make them directly requirable in stackgl. If anyone is interested in taking on this project I can offer some help.

from voxel-engine.

ctzurcanu avatar ctzurcanu commented on July 25, 2024

how about if I do not need a texture map for those cuboids? (at least for a first version) I would love to have it with just a plain color with high transparency and no shade. (maybe transparency on voxels also has issues.. I will check on voxel-glass proj)

from voxel-engine.

mikolalysenko avatar mikolalysenko commented on July 25, 2024

Another option is you can check out the surface-nets module, which extracts isosurfaces from volumes in any dimension:

https://github.com/mikolalysenko/surface-nets

from voxel-engine.

kumavis avatar kumavis commented on July 25, 2024

@ctzurcanu ah, this is the old mesher -- built for use with Three.js https://github.com/maxogden/voxel-mesh

from voxel-engine.

kumavis avatar kumavis commented on July 25, 2024

@ctzurcanu the status of the voxel.js project is that we were rewriting the scene-graph/rendering system and then got stuck b/c interest/free-time fizzled.

from voxel-engine.

ctzurcanu avatar ctzurcanu commented on July 25, 2024

yes.. I can understand that the scene graph is more of a general concern. Let leave this issue open and we get to solve it when there is time for it. I may return to look into it myself if it becomes a nuisance. For the moment, I have more important blockers on my plate too.

from voxel-engine.

kumavis avatar kumavis commented on July 25, 2024

Sorry I think I'll label this as wontfix, I think it is a fringe concern for a project with an unclear survival status.

Though I encourage you to open up this issue on a general voxel mesh generator such as https://github.com/mikolalysenko/ao-mesher

from voxel-engine.

ctzurcanu avatar ctzurcanu commented on July 25, 2024

Ups. I was not aware that is the only place that needs a change for this to work. Thank you for clarification.

from voxel-engine.

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.