Questions tagged [tiling]

Use this tag for questions about tessellations as well as figuratively the optimization technique of loop tiling.

175 questions
4
votes
1 answer

No performance gain with transpose of large 2d Matrix using Loop tiling

Transposing global 2D Square Matrix/Array of size 1 gb with tiling approach(Cache Aware) has no performance gain in single threaded execution over Normal transpose method. Not discussing the transpose speed up using AVX,SSE(SIMD) or any other cache…
Dhiraj
  • 61
  • 10
4
votes
1 answer

How to draw a tiled triangle with python turtle

I am trying to draw a tiled equilateral triangle that looks like this using python's turtle. I would like to be able to have either 16,25,36,49 or 64 triangles. My initial attempts are clumsy because I havent figured out how to neatly move the…
user2175783
  • 1,291
  • 1
  • 12
  • 28
4
votes
1 answer

Scroll 2D/3D background via texture offset

I have been trying to make an infinite scrolling 2D background in Unity using a quad to display a Texture. My idea was to change the offset of the quad depending on the player's position. For some reason when I change the offset my image does not…
TommyE
  • 338
  • 4
  • 7
  • 18
4
votes
1 answer

Tiling, how to use recursion in this case?

I am trying to make an algorithm that's able to solve a big tileset in the tiling problem. Right now it's able to find the correct Tiles to place based on their width and height, but there are some problems with making it properly recursive. As you…
L.B
  • 139
  • 2
  • 12
4
votes
2 answers

Reshape to vertically tile blocks of columns below previous ones

In my script I generate a matrix where each column is coupled with at least another one. For example, column 1 is coupled with column 2, column 3 is coupled with column 4, etc... But I could also couple columns 3 by 3 or 4 by 4 or any other…
gaborous
  • 15,832
  • 10
  • 83
  • 102
4
votes
6 answers

slicing up a very big jpg map image , 49000* 34300 pixel

i want to write a mapviewer, i must to work small tile of big map image file and there is need to tiling the big image, the problem now is to tiling big image to small tiles (250 * 250 pixel or like this size) so on, i used ImageMagic program to do…
sirvan
  • 321
  • 1
  • 8
  • 21
4
votes
4 answers

How can I efficiently store a grid of rectangles?

So I was thinking about making a building game with different shaped rectangles instead of just squares, but I can't figure out an efficient way to do this. For example, I don't want to have a grid of tiles like tetris that make up each shape. I…
4
votes
1 answer

Tetromino space-filling: need to check if it's possible

I'm writing a program that needs to quickly check whether a contiguous region of space is fillable by tetrominoes (any type, any orientation). My first attempt was to simply check if the number of squares was divisible by 4. However, situations like…
Archagon
  • 2,470
  • 2
  • 25
  • 38
4
votes
2 answers

How to improve performance with caching technique

Hello I am trying to run a program that finds closest pair using brute force with caching techniques like the pdf here: Caching Performance Stanford My original code is: float compare_points_BF(int N,point *P){ int i,j; float distance=0,…
BugShotGG
  • 5,008
  • 8
  • 47
  • 63
4
votes
1 answer

Pattern Repeat on Object Scaling in fabric JS

Is there any way to repeat the pattern inside an object in fabric JS. Suppose i have a rectangle filled with a pattern. I want the pattern to be repeated when i scale the rectangle. Right now it is zooming when i scale it. Thanks
user2571818
  • 273
  • 4
  • 9
4
votes
7 answers

How do I convert a 2X2 matrix to 4X4 matrix in MATLAB?

I need some help in converting a 2X2 matrix to a 4X4 matrix in the following manner: A = [2 6; 8 4] should become: B = [2 2 6 6; 2 2 6 6; 8 8 4 4; 8 8 4 4] How would I do this?
anubhav
  • 643
  • 3
  • 9
  • 19
4
votes
5 answers

How do I make divs of 150x150 squares along the screen

*and to start new rows as they fill each previous row? this should work but doesnt for me, html:
width:150px; height:150px;
width:150px; height:150px;
3
votes
1 answer

Creating a tiled multi-dimensional array while removing the sub element of the I'th index of axis0?

I was trying to tile an array where each index is multi-diminsional. I then remove the i'th sub element from each index. For example, starting with this array: >>> a = np.array([[ 1. , 7. , 0. ], [ 2. …
Logic1
  • 1,806
  • 3
  • 26
  • 43
3
votes
0 answers

How can I create tilings (Tessellation) with code?

I'm trying to write code that will generate tilings that look like this: http://tilings.math.uni-bielefeld.de/substitution_rules/2_component_rauzy_fractal_dual https://en.wikipedia.org/wiki/List_of_convex_uniform_tilings Any sort of pointers are…
3
votes
2 answers

Find the center point of a UIScrollView while zooming

I'm having difficulties getting a tiled UIScrollView to zoom in and out correctly with pinch zooming. The issue is that when a pinch-zoom occurs, the resulting view is usually not centered in the same region. Details: The app starts with a tiled…
Rob
  • 7,377
  • 7
  • 36
  • 38
1 2
3
11 12