Jump to content

Mambo_Dancer

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by Mambo_Dancer

  1. 17 minutes ago, Matryoshika said:

     

    so it worked, particularry, it doesnt want to rotate, and i have annoying name hovering above block when u lookng on block (container.infusionaltar) tried to look where it is called but my mission failed)
    i do not know about forge modding so much stuff, could you recommend me some stuff where i can learn more about? thanks for help btw

  2. 54 minutes ago, Matryoshika said:

    You are rendering your item outside the pushed matrix. Move it to be rendered inside of it.

    TESR's are also singletons. There is only one TESR that does the work for rendering every single tile-entity that it is bound to. If there are several loaded at the same time, then you need to compensate the rotation, either by using a variable from the TE itself, or any other "outside" data, otherwise it'll speed up by +1x times for each tile.

    I would also recommend that you start to undo whatever you rendered after you are done. "Artifacts" are a type of behaviour when rendering isn't stopped once you think it has, and starts interfering with other's rendering. OpenGL artifacts are annoying and hard to track down. GLStateManager helps out a bit, but in the end artifacts shouldn't exist.

    An example of "undoing" would be to translate your TESR to where you want it, render the item, then translate again with negative values, to reset it. This goes for every action you do with OpenGL.


    I have a TESR that spins in all axii, as well as bobbing up and down here. You can take a look and see where your code differentiates. Do note, I'm calling other methods as well so a pure copy/paste will lead to unintended behaviour.

    and i will be very happy if you help me with that fast rotation, cant get rid of it too((

  3. 36 minutes ago, Matryoshika said:

    You are rendering your item outside the pushed matrix. Move it to be rendered inside of it.

    TESR's are also singletons. There is only one TESR that does the work for rendering every single tile-entity that it is bound to. If there are several loaded at the same time, then you need to compensate the rotation, either by using a variable from the TE itself, or any other "outside" data, otherwise it'll speed up by +1x times for each tile.

    I would also recommend that you start to undo whatever you rendered after you are done. "Artifacts" are a type of behaviour when rendering isn't stopped once you think it has, and starts interfering with other's rendering. OpenGL artifacts are annoying and hard to track down. GLStateManager helps out a bit, but in the end artifacts shouldn't exist.

    An example of "undoing" would be to translate your TESR to where you want it, render the item, then translate again with negative values, to reset it. This goes for every action you do with OpenGL.


    I have a TESR that spins in all axii, as well as bobbing up and down here. You can take a look and see where your code differentiates. Do note, I'm calling other methods as well so a pure copy/paste will lead to unintended behaviour.

    Still cant get rid of no particles, moved to inside matrix (x=0,y=0.4,z=0) and trouble still in

  4. 11 minutes ago, Matryoshika said:

    You are rendering your item outside the pushed matrix. Move it to be rendered inside of it.

    TESR's are also singletons. There is only one TESR that does the work for rendering every single tile-entity that it is bound to. If there are several loaded at the same time, then you need to compensate the rotation, either by using a variable from the TE itself, or any other "outside" data, otherwise it'll speed up by +1x times for each tile.

    I would also recommend that you start to undo whatever you rendered after you are done. "Artifacts" are a type of behaviour when rendering isn't stopped once you think it has, and starts interfering with other's rendering. OpenGL artifacts are annoying and hard to track down. GLStateManager helps out a bit, but in the end artifacts shouldn't exist.

    An example of "undoing" would be to translate your TESR to where you want it, render the item, then translate again with negative values, to reset it. This goes for every action you do with OpenGL.


    I have a TESR that spins in all axii, as well as bobbing up and down here. You can take a look and see where your code differentiates. Do note, I'm calling other methods as well so a pure copy/paste will lead to unintended behaviour.

    thanks alot, but most of it seems to be hard to understand coz im a beginner, i will appreciate any help with undoing as example

  5. 1 minute ago, Draco18s said:

    What?

    ive got a bit of progress, now its hovering properly, but all particles are disapearing when i am looking on this block, and when i place >2 of this blocks only 2 blocks are rendering with TESR

  6. 1 minute ago, Draco18s said:

    Done.

    If you still have a problem, what is the problem?

    which of the characters H O W you couldnt understand?

    so, ive been making my furnace by tutorial, and now i dont understand how to add more slots in code, not in gui

    i want to extend my 2 input recipe furnace to 5

    my problem is i dont know how to properly add to the InfusionAltarRecipes, when I trying to add more ItemStacks to table, cant add more than 3

    so i want to know how to recode and add it in right way

  7. On 08.03.2018 at 4:49 PM, Mambo_Dancer said:

    So i have a few questions to you. 
    So firstly I want to ask you how do I change my furnace(infusion altar) from 2 inserts to 5.

    Secondly I still cant understand how to properly  create JSON recipes (uninfused star doenst want to craft)

    Im a novice in mc moddev, so any help and advices would be great

     

    1 hour ago, Draco18s said:

    I don't know, you haven't told me what the problem is.

    I think you should to read again the SECONDLY part of my question

  8. 6 hours ago, diesieben07 said:
    • Do not create your block and item instances in a static initializer. setRegistryName does not work reliably there.
    • You never register your gui handler.
    • You cannot have ModelRegistryEvent in a common class, you will crash a server.
    • Code style, issue 1.
    • Problematic code, issue 10.
    • Please use the new JSON system to register recipes.

    Thanks a lot, called to preInit(i think this is its place) guihandler. So what i need to do with json recipes? one is working, other are not

  9.  

    44 minutes ago, diesieben07 said:
    • Do not create your block and item instances in a static initializer. setRegistryName does not work reliably there.
    • You never register your gui handler.
    • You cannot have ModelRegistryEvent in a common class, you will crash a server.
    • Code style, issue 1.
    • Problematic code, issue 10.
    • Please use the new JSON system to register recipes.

    dunno why but only one of my JSON recipes is working, thanks for help,ill try to fix then reply

×
×
  • Create New...

Important Information

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