Questions tagged [tiling]

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

175 questions
0
votes
1 answer

How to do tile based collision

I am trying to make a simple platform game, and obviously I need tile collision. The problem with the code I have so far is that it moves the character first, then checks to see if it is colliding with something, but sometimes it thinks its…
0
votes
1 answer

Imagemagick tiling with annotation

I am splitting a big image with: convert input.jpg -crop 2256x3043 +repage +adjoin output-%02d.jpg How can I annotate the tile number at the center of each image? Thanks.
aledalgrande
  • 5,167
  • 3
  • 37
  • 65
0
votes
0 answers

webdriver crash open window

I use behave python lib to create a bdd test suite. I have following step implementation: @given(u"open new window") def step_impl(context): context.browser.execute_script("window.open()") The problem is that in Notion tiling manager firefox…
simno
  • 418
  • 9
  • 14
0
votes
1 answer

UIScrollView tiled subview with Auto Layout

I look for this answer everywhere but I couldn't find satisfied answer so far. I have UIScrollView with Tiled UITableView as subviews. I did it like it was showed in WWDS 2012 video and it work fine. But now I would like to use Auto Layout and I…
Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97
0
votes
3 answers

tiling two images in background in ie8

I have a 10px x 765px graphic that I repeat-x, then I have a repeating graphic that is 20px x 20px that I want to pick up once the page goes beyond 765px in height. Is it possible to do this? body { background: #000…
Brad
  • 12,054
  • 44
  • 118
  • 187
0
votes
1 answer

Two methods to replicate a matrix

I found a simple way to replicate matrix dimensions but I do not understand it: A=[1,2;3,4] A1=repmat(A,[1 1 2]); returns A1(:,:,1)=[1 2; 3 4 ] A1(:,:,2)=[1 2; 3 4] And if I do this A2=A(:,:,[1 1]) it returns exactly the same result.…
0
votes
1 answer

Calculate the size of windows tiling

I have a number of windows and I'd like to tile them to cover the entire workingarea of the screen. If there are less windows, the individual windows are bigger. The windows are almost squares -- an example is 800x585. They always scale with a fixed…
Fred Fickleberry III
  • 2,439
  • 4
  • 34
  • 50
0
votes
1 answer

2D Tiling Collision detection wont detect

Situation: Within my game, I have tiles that collide with the player which is detected however when I attempt to cause an event to occur when they collide, nothing will happen. Problem: I currently have a Collision class within each tile class.…
Tim Ogunmakin
  • 95
  • 1
  • 2
  • 10
0
votes
1 answer

Changing a sprites bitmap

As of right now, I am trying to create a tiling effect for a game I am creating. I am using a tilesheet and I am loading the tiles to the sprite like so... this.graphics.beginBitmapFill(tileImage); this.graphics.drawRect(30, 0,tWidth ,tHeight…
numerical25
  • 10,524
  • 36
  • 130
  • 209
0
votes
2 answers

Is graphic object bitMapData type the same as bitmapData type?

The title might be a little misleading. Look at my code and I will explain public static function loadTile(tileDir:String = "empty"):void { if(tileDir != "empty") { tPoint = new Point(0,0); …
numerical25
  • 10,524
  • 36
  • 130
  • 209
0
votes
2 answers

SDL Tiling situation

I am making a TBS game, at least im trying to. So i've started off by following a tutorial on lazyfoo.net (lesson 29) on how to make a tiled environment and making my own changes along the way. Every time i try to compile it it gives me two main…
Nimrod
  • 43
  • 6
0
votes
1 answer

Create a tiled UIImage from another image

I have a source image and using this I want to create tiled images of various sizes. I know I can achieve this on a view using colorWithPatternImage: but I want the output as a UIImage. I tried doing this by first creating a UIView of the required…
NSRover
  • 932
  • 1
  • 12
  • 29
0
votes
2 answers

Bash enumarate files numerically with *

I wrote a script that visits each directory and uses imagemagick to montage them for tiling for gaming purposes. find . -type d | while read d; do # $k = filename generated from folder name montage -border 0 -geometry +0+0…
Mustafa
  • 10,013
  • 10
  • 70
  • 116
0
votes
0 answers

OpenLayers.Layer.ArcGIS93Rest uses images in bad quality

I have a local ArcGIS server 9.3.1. I've enabled WMS and caching (tiling). I want to show the tiles using OpenLayers, since ArcMap can't open its own REST services ;( Using OpenLayers this works great, except the tiles are in bad quality. The aerial…
Paul Meems
  • 3,002
  • 4
  • 35
  • 66
0
votes
1 answer

PNG size growth when using RenderTargetBitmap and PngBitmapEncoder

I'm using a method to merge some tile images into a single image. But if I apply it to four 30kb- PNG images, the resulting PNG image would be 500K (~4x more than what I expect) This is some part of the code that I'm using (suggested by Cédric…
Hossein Narimani Rad
  • 31,361
  • 18
  • 86
  • 116
1 2 3
11
12