Jump to content

pWn3d

Forge Modder
  • Posts

    39
  • Joined

  • Last visited

Everything posted by pWn3d

  1. I know, I just wanted to bring a current example where there is no documentation. As for contributing, I could only write tutorials for 1.7 for now, which is unwanted I think?
  2. Is there any documentation on the new animation system for 1.10? Everything I could find was the example from forge which is very little information. When I look at the source code of other mods, the only thing I find are hacks to get ModelBase rendered ...
  3. For 1.7 it's not that hard to find information/tutorials, I had very little problems doing what I wanted to do. But 1.9/1.10 is in a horrible state when it comes to documentation. No wonder a lot of mods have not ported.
  4. I tried now to create an animation with the animation system, but that's pretty much not understandable. The whole example from forge has no comments and doesn't really explain much. Is there any proper explanation on how the animation system is used? What it can do, and what not? How to I "play" an animation on an item? I want IItemRenderer back :'(
  5. As I said in my first post, you can use a TESR ; though this is deprecated and marked for removal. You can register this TESR with ForgeHooksClient.registerTESRItemStack . There is no other way, the baked model and animation systems are the replacement for direct OpenGL rendering. A solution that will be removed soon is not really something I want, the moment this is gone I have an new problem :-/. The biggest problem with the new system is that there is very little documentation. I could not find a single example where a custom item with an .obj model is rendered. I got it to render the item as obj, but I have no Idea how all that animation stuff works. I have read everything you linked and looked at the forge interfaces, but the documentation is so minimal and the methods are all totally confusing. It can't be nobody uses 3d models for items. Edit: Ok, I can handle transformations in json, so I need to see how the animation system works. At least I can hold a m4 in my hand now:
  6. I give up, that's just hopeless. Staying with 1.7.10 it is then. Maybe there will be a solution at a later point. Edit: Is there really no way to get ModelBase rendered for items in 1.10?
  7. I got the model including texture working by manually writing the mtl definitions in the .obj file. At the beginning: mtllib <name_of_ml>.mtl usemtl <name_of_material_defined_in.mtl> I also had to resize the texture to quadratic and mirror it vertically. I was very close to saying "Fuck it, I'm staying on 1.7.10". I can understand anybody who has not updated yet. Let's see how the Transformations work out, I have a bad feeling about this...
  8. I think I'm hitting the wall with 1.10. Is it even possible to rotate/translate the model around like in IItemRenderer, not during initialization but during rendering? Example: Player fires gun. Client saves timestamp. In ItemRenderer the timestamp is used to calculate the recoilprogress, and then the model gets additionally rotated back a bit and then forward again. So, every Frame I need do calculate the rotations/translations the model has.
  9. I got the model loaded, but I can't get the Texture to work, how do I set the Texture for a .obj? Preferable I could change the texture from withing code (I had custom textures dependent on NBT tags).
  10. Thanks, that's definitely helpful, but this seems to be for Blocks only? I can't find an example what is needed to load an .obj for an item. How must the .json for the item look like? Do I need a blockstate definition for an model for a pure item (no ItemBlock, an item, that only has an item form)? This is quite confusing and all the examples are Blocks only?
  11. I want to start updating my mod (http://minecraft.curseforge.com/projects/techguns) to 1.10, but the biggest problem is item Rendering. There are many 3D gun models which all extend ModelBase (Techne models exported to java), They are alle rendered with IItemRender. So, what is the best way to even get 3D models for items in 1.10 and get the same features as in 1.7? It's really hard to find informations on that topic. I have read something about ItemOverrideList? but i can't find any proper documentation/tutorial on it? Also I would like to reuse the Models and not have to convert them to some other format, since this would be a lot of work. The Features I need: Render Item as 3D, Transform differenty depending on RenderType (Inventory, 1st Person, 3rd Person, Entity) and only render specific sub-parts (so I can apply different transformations on them, or hide a part in some cases). Just for Reference, this is the base gun renderer: PS: are there some good documentations about the new capability system? Especially in what cases to use it? Edit: typos
×
×
  • Create New...

Important Information

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