917 reputation
37
bio website blog.ivank.net
location Prague, Czech Republic
age 23
visits member for 2 years
seen Sep 14 at 11:30

Sep
14
awarded  Yearling
Mar
17
comment HTML5 Canvas: Get rect coords after rotation (relative to screen)
I learned it at university. Maybe this will help you khanacademy.org/math/linear-algebra
Mar
16
comment HTML5 Canvas: Get rect coords after rotation (relative to screen)
You should learn some linear algebra and linear transformations. It will save you hundreds of questions like this in the future.
Sep
14
awarded  Yearling
Aug
15
revised Recreating this flat-shaded look
added 4 characters in body
Aug
15
answered Recreating this flat-shaded look
Aug
3
comment Algorithm to find all tiles within a given radius on staggered isometric map
What is your representation of tile map? If you have some graph topology above it, you can do BFS.
Aug
3
comment Algorithm to find all tiles within a given radius on staggered isometric map
To answer your question, you just simply loop through all the tiles and compute the distance between the center of that tile and your point. Then you compare that distance to your radius and decide, whether it is within the radius or not.
Aug
3
comment Algorithm to find all tiles within a given radius on staggered isometric map
In tile-based maps, people usually use "number of cells" as "radius". E.g. some "tower" has a range of 5 cells, which can be upgraded to 7 cells.
Jul
7
comment How to prevent clipping when moving through a tunnel?
Try to scale up the whole thing, so the clipped parts lie outside of projection rectangle.
Jun
21
comment How can I divide a 3D mesh into small pieces?
there are many "disjoint subsets of set". Which of them do you want?
Jun
20
comment How can I divide a 3D mesh into small pieces?
and small pieces should have a volume? Should small pieces for a cube be cubes, or 2 triangles for each cube face? Can you subdivide triangles?
Jun
20
comment How can I divide a 3D mesh into small pieces?
Does your model have a "volume"? Can it be a plane? Can it have "holes"?
Jun
18
comment How can I debug _why_ glDrawArrays is very slow?
Buy your customer a new computer. It will be much cheaper.
Jun
16
comment How do you triangulate an arbitrary polygon?
Here is the demo of ear clipping polyk.ivank.net/?p=demos&d=triangulate
Jun
15
comment TBN Matrix : Eye vs. World Space Conflict
@deniz you are welcome :) I just want you to close the browser and open some Math book :)
Jun
15
comment TBN Matrix : Eye vs. World Space Conflict
there is no tangent space or world space or eye space. In final, you always multiply by only one matrix, which can be product of 3, as well as 30000 matrices, since matrix multiplication is associative. You don't have to give each matrix the name. You should know some basic linear algebra and low-level shader programming, then you will understand everything.
Jun
12
comment How is good is Java as a language for browser based mmo games?
Actually, I know people who write some common algorithms in "exotic" languages much faster, than me in Java. Time and memory complexity is not dependent on language. And if by "time" you mean the real time of code execution, it is not the problem of language, but of compiler / interpreter / SDK. But I think OP really does not want to know that :-D
Jun
12
revised How is good is Java as a language for browser based mmo games?
added 135 characters in body
Jun
12
answered How is good is Java as a language for browser based mmo games?