176 questions
8
votes
1
answer
7k
views
Fullscreen and xmonad
I am using xmonad and I am unable to get Chromium to display videos in fullscreen.
It was my impression that the following would create a very basic Manage Hook that would detect fullscreen ...
0
votes
2
answers
273
views
Algorithm for choosing tiles to cover a path?
I have a segmented path/route on a map, and my software needs to request imagery from a server to completely cover the route. Image requests to the server can only be for rectangular regions (aligned ...
1
vote
3
answers
6k
views
image tiling in loops using Python OpenCV
Python noob needs some help guys! Can someone show me how to rewrite my code using loops? Tried some different syntaxes but did not seem to work!
img = cv2.imread("C://Users//user//Desktop//research//...
5
votes
2
answers
19k
views
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 ...
1
vote
1
answer
327
views
Side length of unit cube, given one needs to use N unit cubes to tile/fill a 3D space of given dimension
One has a rectangular-prism 3 dimensional space, e.g. {xmin, xmax}, {ymin, ymax}, {zmin, zmax}. The goal is to use a pre-defined "grid" of at most N cubes to maximally tile the 3 dimensional space. It ...
4
votes
1
answer
1k
views
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 ...
1
vote
1
answer
124
views
Adding a XClass properties to matplotlib's plots
I would like to have the window manager to, well, manage the plots. When I create a plot interactively in python:
from numpy import arange
import matplotlib
matplotlib.use('Qt5Agg')
import matplotlib....
1
vote
1
answer
737
views
How to make adjacent tiles combine seamlessly ?(2D)
Ok ill get straight to the point, here is an image of what i want to achieve:
And here is an Image of what my game looks like:
What I'm referring to is how the tiles seamlessly "connect". As you can ...
1
vote
2
answers
3k
views
Create a Composite BitmapImage in WPF
I have three BitmapImages that I would like to stitch together to create a composite image. The three images to be stitched together are aligned in the following way:
The images are of a type System....
2
votes
1
answer
734
views
How to embed an application into another application dynamically?
I want to build a general purpose application that will be used like a IDE for anything.
How can I embed an application into another application, in the runtime, like so:
4
votes
3
answers
2k
views
How to tile a Sprite Node's Texture?
Using SpriteKit, how would I tile a SKTexture that repeats itself horizontally to fill the width of the SKSpriteNode? This is what I have so far - only stretches the texture.
var header = ...
1
vote
1
answer
2k
views
Number of ways to tile a 2xN grid with forbidden positions with 2x1 and 1x2 dominoes?
I was keen to know the algorithm to solve this problem. The formal description of the problem statement is something like this-Given N(<100) and dominoes 2x1 and 1x2 I have to find the number of ...
2
votes
1
answer
5k
views
Tiling Algorithm
I'm faced with a problem where I have to solve puzzles.
E.g. I have an (variable) area of 20x20 (meters for example). There are a number of given set pieces having variable sizes. Such as 4x3, 4x2, ...
1
vote
1
answer
172
views
FBLoginView Button Tiling
I have implemented FBLoginView on my previous version of my iOS app, suited for iOS 6&7. Recently, after the iOS 8 release, I upgraded my Facebook Framework to the latest version and below is the ...
1
vote
0
answers
122
views
iOS how would I implement a scroll view based overlay that can display arbitrary views at x,y coordinates
I'm working with a 3rd party maps vendor and would like to create an overlay for this map to display arbitrary content. I already have callout pins created, but am looking to expand that with truly ...
0
votes
1
answer
1k
views
Isometric tile map - Having tiles with bigger sizes?
Hello I have the following two Isometric tiles:
Normal tile (water):
Rock tile:
I need to add some tiles like the rock tile into my game board, but the problem is, that some tiles like this rock ...
0
votes
1
answer
2k
views
WebGL texture tiling edge artifacts with mipmap
I am tiling a surface in WebGL using a texture that requires mipmap to look good (non-negotiable). Because WebGL does not support a wrapping mode of gl.REPEAT for mipmap'ed textures, I clamp texture ...
0
votes
1
answer
3k
views
Pygame AttributeError no attribute 'display'
I'm trying to learn Python and Pygame by making a 2D tile-based platformer. Right now I'm stuck on the "tile-based" part. This is my code:
import pygame, sys
from pygame.locals import *
#Just ...
0
votes
1
answer
2k
views
How do I map a perlin noise function (libnoise) to an array of tiles?
The Perlin.GetValue(x, y, z) method of libnoise (using the C# port) returns 0's if the input values are integers. How could I go about mapping a 2D array of tiles--as the indices of an array are ...
0
votes
1
answer
888
views
How to manage cache tiles deletion in mapbox on ios
I'm looking for a solution in order to manage what tiles to delete from the user's device.
The options from mapbox is the wipe all tiles or to use one of the options: FIFO = first in, first out; LRU =...
3
votes
2
answers
261
views
What does this piece of Tiled C++ code do?
I'm trying to figure out the purpose of this piece of code, from the Tiled utility's map format documentation.
const int gid = data[i] |
data[i + 1] << 8 |
data[...
0
votes
2
answers
82
views
Map of Vectors, Bad Accessors
I am working with a few friends on a Dungeon-game and am working on pathfinding. The game is tile-based and the pathfinding we are planning to implement is this:
class PathMapper generates a grid of ...
1
vote
1
answer
828
views
Fast drawing tilings GTK and Cairo
I am new at drawing with Cairo and GTK, and the program I'm working on needs to draw a circle tiling of 500x500 or 1000x1000. Also, there are some work to do before drawing but right now I am focused ...
0
votes
0
answers
450
views
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 ...
0
votes
1
answer
625
views
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. ...