Coder Social home page Coder Social logo

Comments (9)

XFactHD avatar XFactHD commented on August 16, 2024 1

Most of these very detailed features are out of scope for FramedBlocks itself. I might make an add-on mod in the future dedicated to architectural features, though the blocks will be very blocky and not at all rounded.
I appreciate your offer with the OBJ models but unfortunately all models have to be generated fully in code (apart from most item models) due to how the mod works.

I will look into adding a grate style block similar to the iron bars including a horizontal variant.

from framedblocks.

XFactHD avatar XFactHD commented on August 16, 2024 1

Appreciate the interest, and thank you for investigating the iron bars! If you don't mind, I'd like to look into how the models are generated in code, and see if I can script up something to translate the OBJs to your code style.

The system is in theory very simple: I take the original block (cobblestone or whatever), get all quads, duplicate them and then manipulate them (cut, rotate, etc.) to create the desired shapes. If a quad fills the whole block face according to a block-specific Predicate, then it is excluded from the manipulation and gets passed through directly from the model of the "camo" block. This allows stuff like the ConnectedTexturesMod to atleast work on some of the block faces. This monstrosity contains all the manipulation helpers and this is a fairly simple example of those in action. This is one of the more "complex" models, as you can see the code gets fairly long with more faces.

I definitely get the desire to stay away from rounded shapes! This is the sort of thing I was thinking about:

This style of models would be a very good fit for an architecture themed add-on to FramedBlocks and the current systems would be able to handle that. I like it a lot.

(I'm of two minds on the Grate - should it be edge-aligned, like a trap door, or center-block, like a glass pane?)

My idea was to make the "Framed Bars" work equivalent to the Iron Bars.
The Framed Grate would be an additional block and would be placeable edge-aligned as well as centered on the block and would probably also be a prime feature for the architecure-themed add-on. In terms of model I would probably go for the grate with a frame, though I could also add both and allow the player to switch between the variants on a block-by-block basis.

from framedblocks.

Syndaryl avatar Syndaryl commented on August 16, 2024

Appreciate the interest, and thank you for investigating the iron bars! If you don't mind, I'd like to look into how the models are generated in code, and see if I can script up something to translate the OBJs to your code style.

(EDIT: The nice thing for me about OBJ is that it's a dead-simple text format, so trying to transform it doesn't need much research.)

I definitely get the desire to stay away from rounded shapes! This is the sort of thing I was thinking about:
image

from framedblocks.

Syndaryl avatar Syndaryl commented on August 16, 2024

Back left is a standard cobblestone block for comparison/size reference. Front left to right: Pillar, pillar with base, fluted pillar, fluted pillar with base, grate with no frame, then back center: large fluted pillar (can't have a base, it goes right to the block boundary) and then grate with frame.

from framedblocks.

Syndaryl avatar Syndaryl commented on August 16, 2024

(I'm of two minds on the Grate - should it be edge-aligned, like a trap door, or center-block, like a glass pane?)

from framedblocks.

Syndaryl avatar Syndaryl commented on August 16, 2024

from framedblocks.

XFactHD avatar XFactHD commented on August 16, 2024

Fixed the link. It's the "xfacthd.framedblocks.client.util.BakedQuadTransformer" class.

from framedblocks.

XFactHD avatar XFactHD commented on August 16, 2024

I have now added a Framed Pane block that works like the glass panes and a Framed Bars block that works exactly like the vanilla iron bars.
Any more detailed blocks like the grate and pillars discussed above will be added in the architecture themed addon when I get the time to start working on that.

from framedblocks.

XFactHD avatar XFactHD commented on August 16, 2024

I have finally found the time to start work in the architecture themed addon.
The blocks suggested in the screenshot above have been added.
Any further suggestions should be posted on the FramedArchitecture repository.

from framedblocks.

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.