Giter Club home page Giter Club logo

commonmcobj's People

Contributors

erich666 avatar standingpadanimations avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

erich666

commonmcobj's Issues

Clarification of split block type

I don't understand:

OBJ exporters may split blocks into separate objects, where each block type is split as its own object.

What exactly does this mean? Please give an example or two, and these would be nice to add to the docs. I think the answer is "true" for Mineways, but I can't tell. What's the purpose?

In an OBJ file you can do things like:

g Stone
usemtl stone
f 7021/15/2 7011/132/2 7254/117/2 7263/1/2
...

g Grass_Block
usemtl grass_block_top
f 6915/15/5 6920/132/5 6919/117/5 6916/1/5
...
usemtl grass_block_side
f 6914/15/1 6915/132/1 6916/117/1 6913/1/1
...
usemtl dirt
f 6914/1/2 6913/15/2 6918/132/2 6917/117/2
...

Is this then a split block? I think so. I'm guessing that the "g" group attribute in an OBJ file means "true".

There are lots of variants here.

Requiring Exporting Proper Block State for All Blocks

One area where there seems to be a discrepancy between in-game and exported OBJs is with block states. Minecraft allows editing blocks state in-game for creativity purposes. Some examples include:

  • Preventing blocks such as walls, fences, and glass panes from being chained
  • Allowing blocks to float that normally wouldn't be allowed (take levers for instance)
  • Etc.

Although CommonMCOBJ states as a non-goal

  • Governing every behavior in Minecraft OBJ exporters; that would be hard to adopt and stifle experimentation,

I think an exception can be made here as it's a vanilla game feature with legitimate use, and expands creative opportunities for artists. Granted, it may cause exports to be slower, but ultimately, exports shouldn't look different from how they look in game.

As such, I propose we add the following section to CommonMCOBJ for V2 of the spec (2025):

Block States

OBJ exporters following the CommonMCOBJ spec shall export the proper block state for all blocks. If an option to only check a pre-determined list of blocks for states exists to speed up exports, it shall not be enabled by default.

EDIT 01/04/2024: if wanted, we could change the description of CommonMCOBJ to the following in V2:

CommonMCOBJ is a spec to allow exported Minecraft OBJs to be closer their in-game counterparts, by creating a common standard for OBJs and creating extra metadata for details that would otherwise be lost.

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.