How does one fix the H-sync of a renderer?

So, a continuation of my previous question. I've fixed the get problem, and I have variables that define the size of the chunks. It basically divides the size by that. Now my H-sync is all messed up. How do I fix this?

(((i/3)/((height)/w)+x)*w))+(x),(((((i/3)-(h))%((height)/h))*h))+(y)

Answers

  • We have no idea what you have done.

    We have no idea what you are trying to do.

    We have no idea how to help you.

    Please post your entire current code.

    Make sure you format it properly for the forums.

    Then tell us what you are trying to accomplish.

    Let us know what works, and what doesn't.

    Then - maybe - we can start to help you.

  • This question is dependent enough on details of your previous question that it might make sense to ask it as a follow up on that thread (and provide an MCVE, as TfGuy44 suggests) -- or at least link back to it.

    https://forum.processing.org/two/discussion/27797/why-does-get-return-a-negative-value#latest

    What is a chunk? What are you trying to do? It looks like maybe you want to divide the screen into tiles like on a checkerboard, pass in a tile number i and a location on the tile x,y (or should it be a tile x,y and a pixel index on the tile i?) and get back the pixels[] index number. But trying to just guess what you are trying to do is hard.

Sign In or Register to comment.