Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. [01:53:44] * FyberOptic (~gear@fybertech.net) has joined #minecraftforge
  2. [01:53:59] <shadekiller666> vuerfel
  3. [01:54:40] <FyberOptic> Anyone here knowledgeable about 1.8 and ISmartBlockModel?
  4. [01:56:14] * DemoXin (~demoxin@75-130-151-161.dhcp.spbg.sc.charter.com) Quit (Ping timeout: 200 seconds)
  5. [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
  6. [01:56:41] <shadekiller666> 0=south, 1=west, 2=north, 3=east
  7. [01:56:44] * Darkhax_AFK is now known as Darkhax
  8. [01:56:48] * Lildirt (~Lildirt@lildirt.com) Quit (Read error: Connection reset by peer)
  9. [01:57:03] <shadekiller666> what about it fyber?
  10. [01:57:18] * LexManos (~Lex@50-76-111-34-static.hfc.comcastbusiness.net) has joined #minecraftforge
  11. [01:57:18] * MineBot sets mode: +o LexManos
  12. [01:57:29] * Lildirt (~Lildirt@lildirt.com) has joined #minecraftforge
  13. [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.
  14. [01:58:11] * dmf444 (~dmf444@192-0-250-150.cpe.teksavvy.com) has joined #minecraftforge
  15. [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.
  16. [01:59:26] <@LexManos> Good thing we only have one rendering thread.
  17. [01:59:46] <@LexManos> and if you wanted to make it thread safe, return a new object
  18. [02:00:08] * Geforce is now known as Geforce|Away
  19. [02:00:10] <FyberOptic> Are you sure there's only one chunk rendering thread?
  20. [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.
  21. [02:00:36] * CptAwayToaster is now known as CptRageToaster
  22. [02:00:38] <@LexManos> pretty sure there is
  23. [02:00:43] <@LexManos> either way meh talk to fry
  24. [02:01:20] <FyberOptic> I traced the path up to ChunkRenderDispatcher and it's making multiple ChunkRenderWorkers
  25. [02:02:14] <@LexManos> meh, then its not
  26. [02:02:19] <@LexManos> either weay its not that bif of a deal
  27. [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.
  28. [02:03:41] * Chimaine (~Chimaine@95.91.229.64) Quit (Ping timeout: 198 seconds)
  29. [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
  30. [02:04:14] <@LexManos> either way it works
  31. [02:04:26] <@LexManos> and you can do whatever you want in thread safe ways if you dont so it wrong
  32. [02:04:29] * Chimaine (~Chimaine@95.91.229.64) has joined #minecraftforge
  33. [02:04:43] * DemoXin (~demoxin@75-130-151-161.dhcp.spbg.sc.charter.com) has joined #minecraftforge
  34. [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.
  35. [02:05:11] <FyberOptic> But I'm pointing out the issue.
  36. [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
  37. [02:05:52] <@LexManos> either way
  38. [02:05:54] <@LexManos> it works
  39. [02:05:56] <@LexManos> its function
  40. [02:05:57] <@LexManos> al
  41. [02:06:05] <@LexManos> and if you have any issue talk to fry or figure it out
  42. [02:07:20] <FyberOptic> So you're blaming me for being too incompetent to create a proper render system. Classy.
  43. [02:07:25] * FyberOptic (~gear@fybertech.net) has left #minecraftforge
  44. [02:07:53] <matthew|gone> heh
  45. [02:07:57] * matthew|gone is now known as matthewprenger
  46. [02:08:03] <dmf444> ragequit?
  47. [02:08:13] <Zidane> wait what?
  48. [02:08:16] <Zidane> LOL
  49. [02:08:20] * DemoXin (~demoxin@75-130-151-161.dhcp.spbg.sc.charter.com) Quit (Ping timeout: 200 seconds)
  50. [02:08:54] <@LexManos> Yes bitching about things without being helpful is not well, helpful
  51. [02:09:10] <Zidane> Crybaby
  52. [02:09:12] <@LexManos> yes i dont fucking know rendering
  53. [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