-
Posts
8 -
Joined
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
DefectiveProgram's Achievements
Tree Puncher (2/8)
3
Reputation
-
[1.14.4][RESOLVED] OBJ Models: How to Get Started
DefectiveProgram replied to TheMikeste1's topic in Modder Support
Hmmm... Those values work just fine for me... Don't know what could be the issue there... Back in 1.13, Mojang dropped the plural off alot of the directories. So textures/blocks is now textures/block. -
[1.14.4][RESOLVED] OBJ Models: How to Get Started
DefectiveProgram replied to TheMikeste1's topic in Modder Support
What is your "Kd" property set to in the .mtl? -
[1.14.4][RESOLVED] OBJ Models: How to Get Started
DefectiveProgram replied to TheMikeste1's topic in Modder Support
This thread was made before Forge blockstates were fixed for 1.14.4. With their introduction, manually stitching the texture and loading the block model is no longer necessary as those were workarounds. Item blocks (probably items as well) still need to use the ModelBakeEvent though. For item blocks it would seem you can just grab the model from the model registry, as it appears to be loaded before the event fires. Then pass it through a PerspectiveMapWrapper to apply the perspective transforms. And just put the PerspectiveMapWrapper into the model registry with the inventory variant. And here are the item block transforms to pass into the PerspectiveMapWrapper: private static final TRSRTransformation THIRD_PERSON_BLOCK = Transforms.convert(0, 2.5f, 0, 75, 45, 0, 0.375f); private static final ImmutableMap<TransformType, TRSRTransformation> BLOCK_TRANSFORMS = ImmutableMap.<TransformType, TRSRTransformation>builder() .put(TransformType.GUI, Transforms.convert(0, 0, 0, 30, 225, 0, 0.625f)) .put(TransformType.GROUND, Transforms.convert(0, 3, 0, 0, 0, 0, 0.25f)).put(TransformType.FIXED, Transforms.convert(0, 0, 0, 0, 0, 0, 0.5f)) .put(TransformType.THIRD_PERSON_RIGHT_HAND, THIRD_PERSON_BLOCK) .put(TransformType.THIRD_PERSON_LEFT_HAND, Transforms.leftify(THIRD_PERSON_BLOCK)) .put(TransformType.FIRST_PERSON_RIGHT_HAND, Transforms.convert(0, 0, 0, 0, 45, 0, 0.4f)) .put(TransformType.FIRST_PERSON_LEFT_HAND, Transforms.convert(0, 0, 0, 0, 225, 0, 0.4f)) .build(); Yeah, the blockstate loader seems to completely ignore the textures tag. (I haven't experimented with items, so I can't help as much there.) -
[1.14.4][RESOLVED] OBJ Models: How to Get Started
DefectiveProgram replied to TheMikeste1's topic in Modder Support
You can use "TextureStitchEvent.Pre" to load the texture. And the z-fighting is either an issue with your model or the parser. -
[1.14.4][RESOLVED] OBJ Models: How to Get Started
DefectiveProgram replied to TheMikeste1's topic in Modder Support
Try using a vanilla texture (Also without ".png" as that appears to be automatically appended.) I'm guessing the texture isn't being loaded. -
DefectiveProgram changed their profile photo
-
[1.14.4][RESOLVED] OBJ Models: How to Get Started
DefectiveProgram replied to TheMikeste1's topic in Modder Support
Try removing ".png" from the texture path in your .mtl maybe? -
[1.12.2] Entity texture not displaying
DefectiveProgram replied to ScootMcShoot's topic in Modder Support
Look very closely at the path in your renderer and the path on disk. -
[1.11.2] Server won't let me update my teleport position
DefectiveProgram replied to Triphion's topic in Modder Support
You're trying to call a client only function on the server. @Nullable @SideOnly(Side.CLIENT) public RayTraceResult rayTrace(double blockReachDistance, float partialTicks) { Vec3d vec3d = this.getPositionEyes(partialTicks); Vec3d vec3d1 = this.getLook(partialTicks); Vec3d vec3d2 = vec3d.addVector(vec3d1.xCoord * blockReachDistance, vec3d1.yCoord * blockReachDistance, vec3d1.zCoord * blockReachDistance); return this.world.rayTraceBlocks(vec3d, vec3d2, false, false, true); }