Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [01:53:44] * FyberOptic (~gear@fybertech.net) has joined #minecraftforge
- [01:53:59] <shadekiller666> vuerfel
- [01:54:40] <FyberOptic> Anyone here knowledgeable about 1.8 and ISmartBlockModel?
- [01:56:14] * DemoXin (~demoxin@75-130-151-161.dhcp.spbg.sc.charter.com) Quit (Ping timeout: 200 seconds)
- [01:56:25] <shadekiller666> wuerfel*, if you look in the onBlockPlacedBy function in vanilla furnaces, there should be a statement that looks like "int l = (double)(MathHelper.floor_double(entityPlayer.rotationYaw * 4.0F / 360.0F) * 0.5D) & 3", copy that line, and "l" would be the direction the player is facing
- [01:56:41] <shadekiller666> 0=south, 1=west, 2=north, 3=east
- [01:56:44] * Darkhax_AFK is now known as Darkhax
- [01:56:48] * Lildirt (~Lildirt@lildirt.com) Quit (Read error: Connection reset by peer)
- [01:57:03] <shadekiller666> what about it fyber?
- [01:57:18] * LexManos (~Lex@50-76-111-34-static.hfc.comcastbusiness.net) has joined #minecraftforge
- [01:57:18] * MineBot sets mode: +o LexManos
- [01:57:29] * Lildirt (~Lildirt@lildirt.com) has joined #minecraftforge
- [01:58:08] <FyberOptic> So far, I created an ISmartBlockModel class, am using handleBlockState of course to receive state information, and them an setting variables in the ISmartModel class which are then passed out through the two methods to get quads.
- [01:58:11] * dmf444 (~dmf444@192-0-250-150.cpe.teksavvy.com) has joined #minecraftforge
- [01:58:42] <FyberOptic> Except now I've realized that this can't be thread safe at all because one thread could call handleBlockState again before another tried to get the quads.
- [01:59:26] <@LexManos> Good thing we only have one rendering thread.
- [01:59:46] <@LexManos> and if you wanted to make it thread safe, return a new object
- [02:00:08] * Geforce is now known as Geforce|Away
- [02:00:10] <FyberOptic> Are you sure there's only one chunk rendering thread?
- [02:00:25] <FyberOptic> And I thought about making a new object, but that's a new object every single time a block is rendered.
- [02:00:36] * CptAwayToaster is now known as CptRageToaster
- [02:00:38] <@LexManos> pretty sure there is
- [02:00:43] <@LexManos> either way meh talk to fry
- [02:01:20] <FyberOptic> I traced the path up to ChunkRenderDispatcher and it's making multiple ChunkRenderWorkers
- [02:02:14] <@LexManos> meh, then its not
- [02:02:19] <@LexManos> either weay its not that bif of a deal
- [02:03:25] <FyberOptic> handleBlockState being in the ISmartBlockModel doesn't really make much sense then, since the original iteration tied to the block is useless.
- [02:03:41] * Chimaine (~Chimaine@95.91.229.64) Quit (Ping timeout: 198 seconds)
- [02:04:12] <@LexManos> well its how it is there was plenty enough time for you to make comment when it was originally being discussed
- [02:04:14] <@LexManos> either way it works
- [02:04:26] <@LexManos> and you can do whatever you want in thread safe ways if you dont so it wrong
- [02:04:29] * Chimaine (~Chimaine@95.91.229.64) has joined #minecraftforge
- [02:04:43] * DemoXin (~demoxin@75-130-151-161.dhcp.spbg.sc.charter.com) has joined #minecraftforge
- [02:05:03] <FyberOptic> I never even looked at Forge for 1.8 until a few days ago, it's not my fault if the render path isn't adequate.
- [02:05:11] <FyberOptic> But I'm pointing out the issue.
- [02:05:50] <@LexManos> ya actually the fact that you took so long to look at it does mean its your fault for not speaking up. im tired of people bitching about things months after when its relevent
- [02:05:52] <@LexManos> either way
- [02:05:54] <@LexManos> it works
- [02:05:56] <@LexManos> its function
- [02:05:57] <@LexManos> al
- [02:06:05] <@LexManos> and if you have any issue talk to fry or figure it out
- [02:07:20] <FyberOptic> So you're blaming me for being too incompetent to create a proper render system. Classy.
- [02:07:25] * FyberOptic (~gear@fybertech.net) has left #minecraftforge
- [02:07:53] <matthew|gone> heh
- [02:07:57] * matthew|gone is now known as matthewprenger
- [02:08:03] <dmf444> ragequit?
- [02:08:13] <Zidane> wait what?
- [02:08:16] <Zidane> LOL
- [02:08:20] * DemoXin (~demoxin@75-130-151-161.dhcp.spbg.sc.charter.com) Quit (Ping timeout: 200 seconds)
- [02:08:54] <@LexManos> Yes bitching about things without being helpful is not well, helpful
- [02:09:10] <Zidane> Crybaby
- [02:09:12] <@LexManos> yes i dont fucking know rendering
- [02:09:19] <@LexManos> but from the looks of it it'll work JUST FINE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement