Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Here's a screenshot of the mod for context:

 

 

kECG6kX.png

 

 

Each double slab is created using a single blockID with textures assigned through a TileEntity. The main issue that I'm having is that all of the textures on the sides of the blocks are pre-made:

 

 

L5JKNXV.png

 

 

Because there are an exponentially large number of slab combinations added, I would much rather set things up so that the textures are created while the game is running. Ideally I would merge two preexisting textures on top of one another and use an alpha layer used to "erase" half of the top texture. Unfortunately I have very little experience with graphics programming, and so I have no idea how to start work on this, if it's the best approach to use, or if it's even possible to do in Java.

 

Please let me know if there's any other information I can provide. Any help will be greatly appreciated  :)

yeah it is, though if you have more then 16 different combinason youll have to use tile entities. then just use a tile entity special renderer and you're good to go

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

  • Author

yeah it is, though if you have more then 16 different combinason youll have to use tile entities. then just use a tile entity special renderer and you're good to go

At the moment I already have the combinations set up with a basic TileEntity, and have the textures assigned by using an instance of IBlockAccess from the getBlockTexture(...) method in my block class. Will this work, or do I need a TileEntitySpecialRenderer in order to combine multiple images into a single texture?

id honestly suggest TESR as it is way easier to do then making texture on the spot.

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

  • Author

id honestly suggest TESR as it is way easier to do then making texture on the spot.

Sorry if I'm missing something obvious, but I've been looking into it and I'm still completely lost as to how I can start writing the code for merging textures together. From your posts I'm guessing that there are methods I can use that are accessible with TESR? Or is there a different approach to the problem that using TESR would help with?

 

Edit: Scratch that. I'm guessing that the best way to implement the process of merging textures is to tie it to the rendering of the block, and so I need to set up a TESR for that purpose. As far as the merging itself, I need to study GL11 to find the correct methods to use. Is this correct?

well, yeah, but you wouldnt require a LOT of openGL. just a little, you could mostly do this using the tessellator. but with a TESR youwouldnt "merge texture" you would just sorta render 2 half slab on top of each other

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

  • 1 month later...

Have you have any luck with this?!  I would really love this mod and it looks like you had a nice start!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.