Giter VIP home page Giter VIP logo

api.sprax2013.de's Introduction

GitHub metrics

  • Iโ€™m currently working on SkinDB.net and with an massively growing database
  • My favorite languages are Java and TypeScript
  • Other skills: Linux, Git, SQL, HTML
  • Using Linux for nearly everything

๐Ÿ”— My Website | Twitter | Discord | Patreon

api.sprax2013.de's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar fossabot avatar nudelerde avatar spraxdev avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

fossabot nwcpadme

api.sprax2013.de's Issues

Render Blocks (3D)

Is your feature request related to a problem? Please describe.
-

Describe the solution you'd like

  • Rendering Blocks as they appear in the vanilla client (inventory and placed)
  • Support for different Resource Packs
  • Support for different versions (https://mcasset.cloud/)
  • Support for file-upload (texture)
  • Support for blocks with multiple faces (eg. Furnace with front, side, ...)

Describe alternatives you've considered
MineRender allows rendering GUIs. Sadly only Client-Side and Block-Items are not rendered 3D as the vanilla client does (maybe create PR when renderer is done?)

Additional context
-

Skins with transparent first layer are rendered wrong

Describe the bug
When you have a skin with transparent pixels (e.g. https://cdn.skindb.net/skins/2297506840247797003) in the first layer, it is no longer being rendered as the minecraft client does.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://api.sprax2013.de/mc/skin/x-url/body?size=128&url=https://cdn.skindb.net/skins/2297506840247797003 or https://api.sprax2013.de/mc/skin/x-url/body/3d?size=128&url=https://cdn.skindb.net/skins/2297506840247797003 for the 3d-version

Expected behavior
The first skin layer should be put 100% non-transparent for 2d and 3d version. Maybe add a function to the Image class to return a new image that removes alpha from the first-layer

Screenshots, Videos, Logs or Errors
https://api.sprax2013.de/mc/skin/x-url/body/3d?size=128&url=https://cdn.skindb.net/skins/2297506840247797003 for the 3d-version

Skins are rendered wrong

Describe the bug
The 2D Renderer has problems with skin overlays having an alpha of below 100% replacing the pixel underneath it instead of still showing the one below.

The 3D Renderer has a simillar problem, where rendering such overlay, not showing what's behind that pixel.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://api.sprax2013.de/mc/skin/x-url/body?url=https://cdn.skindb.net/skins/2258170679830512715 and https://api.sprax2013.de/mc/skin/x-url/body/3d?url=https://cdn.skindb.net/skins/2258170679830512715
  2. 2d 2D version has white (transparent) pixels around the goggles (less than 100% alpha, but fully replacing the pixel underneath it)
  3. 3d 3D version has a large transparent area around its neck that should not be there

Fetch skins from database instead of downloading

Cache skins on drive to reduce traffic and speed up response time for known skins

Every skin requested for rendering should be imported into the database if required and fetches from the database instead of downloading them.

Why?

  • Reduces Traffic
  • Improves response time
  • More skins for SkinDB \o/

Why not?

  • Skins may have been deleted my Mojang so maybe we should check if they have been deleted and return 404 but that shouldn't be that much of a problem when it is introduced afterwards.

Render Skins in 3D

/skin/:user? and /skin/:user?/:skinArea? should be able to respond with an 3D version

More detailed error message

Describe the solution you'd like

  • Show the full path that is expected so the user knows not only what argument is requred but where it belongs (e.g. /mc/skins) can be confusing if you don't know where the username is supposed to be or the area you want to have rendered.
  • Maybe a link to documentation to get more information about the used route

3D Minecraft Skins are rendered wrong

Describe the bug
Some skin parts are rendered wrong in the 3D version as they are getting mirrored.

To Reproduce
Take a look at the face. The front of the body is falsely mirrored too but I can't find an example for that at the moment. 2D Version is how it is supposed to be looking.

3D Version (src-1, src-2):
3d-1 lowres 3d-2 lowres

2D Version (src-1, src-2):
body-1 lowres body-2 lowres

Original (src-1, src-2):
skin-1 skin-2

Complete recode (Pre-Release of version 1.0)

SkinDB ist nearly finished (included in Api.Sprax2013.de) and I just feel like the current version of the Mojang-API-Mirror or just Mojang-route of my api, is not as great as it could and should be.

Release v1.0 includes:

  • Recode in TypeScript for better readability and maintainability.
  • Rename routes ('/mojang' for example to '/mc') because it only contains Minecraft related stuff and would get too large if other stuff is added there too.
  • Automatically store everything minecraft related into a database for caching and projects like SkinDB
  • ...

And while at it:

  • improve performance and response time
  • Minimise the need for external Software (e.g. SkinDB-Backend or dependencies)
  • Introduce detailed monitoring to my edge server (not Api.Sprax2013.de) for better analysis of what could be improved.
  • ...

See the full list at #44

Add cooldown on connection issues with LabyMod and OptiFine

OptiFine sometimes has troubles too but LabyMod a noticeable lot more.

Bot services got trouble keeping their SSL and DNS running and up-to-date... Sometimes their servers are down.

Things happen, but the API should not have troubles and deal with these errors to reduce spam-like error reporting and not affect response times too much.

This requires the documentation to be updated to cover for cases where data could not be fetched but the most important did (= HTTP Status 200).

Screenshot

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.