Posted August 3, 201510 yr how do I draw triangles with ISmartBlockModel? or is there an alternative?
August 3, 201510 yr Author I know but, 1) wouldn't that be a waste if gpu power? (not that I think my gpu can't handle it but.) 2) how? if we use list.add(faceBakery.makeBakedQuad(new Vector3f(6.0F, 10.0F, 10.0F), new Vector3f(10.0F, 10.0F, 16.0F), face, redstoneTexture, EnumFacing.UP, modelRot, null, true, true)); we specify 2 points not 4. or can we create our own BakedQuad? and if so how?
August 3, 201510 yr Opposite corners are enough to define a quad which is axis-aligned. BakedQuad's constructor is public. An example of constructing BakedQuads is here: https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/java/minecraftbyexample/mbe15_item_smartitemmodel/ChessboardSmartItemModel.java Not sure why TGG doesn't use FaceBakery. Maybe because #makeBakedQuad wants a BlockPartRotation and BlockPartFace, which in turn wants a BlockFaceUV ...
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.