Giter Site home page Giter Site logo

fkclient's People

Contributors

emch avatar

Watchers

 avatar  avatar

fkclient's Issues

Optimize Chunk rendering

When polygon mode is disabled, rendering seems a lot slower ...
Solutions :

  • Do not render blocks which won't be visible on screen
  • Backface culling is already used
  • ?

Check normals and indices

Seems to have problems with vertices numbering when wireframe mode is deactivated (polygons do not join awaited vertices).

glDrawArrays failing to draw Chunk

If GL_POINTS, only one point is rendered at (0,0,0) (or all points ?)
If GL_TRIANGLES, nothing is rendered (cf. all points rendered at the same place)

Optimize size of arrays in Mesh

See corresponding bug (solved).

Calculate the exact number of vertex to be stored in a chunk's mesh and adapt size of arrays accordingly.

Fix size of storing arrays in Mesh

Wrong size allocated to arrays storing vertices data in Mesh object.

Edit : AddVertex in cause (see VertexArray, NormalArray and ColorArray sizes)

Edit2 : when increasing MAX_VERTICES, problem is "delayed"

Use glDrawElements instead of glDrawArrays

Seems to reduce the number of required vertices (so the size of storing arrays)
IndexArray is used in this case (not in glDrawArrays case)
glDrawElements(GL_POINTS, This._mesh->GetNumVertices(), GL_INT, This._mesh->GetIndexArray()) '' not working in current state

Manage multiple SDL_KEYDOWN

Implement a keystate/keyconf object using booleans to determine which keys are pressed at any moment (state is toggled on SDL_KEYDOWN or SDL_KEYUP)

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.