XNA 2D TileMap seams appear between tiles - xna

I'm trying to make a 2d tile map and have run into some problems with seams appearing when layering tiles over one another. Here is a screenshot:
http://i.imgur.com/3zgcQ.png
I've tried several different ways to fix this including drawing in separate spritebatch.Begin()/End() blocks. Both layers are using the exact same code to get their position so they should be drawn directly over one another correct? Am I doing something wrong? I tried searching for an answer to this to no avail :( Any help would be greatly appreciated!

Are you drawing on whole values? I mean Vector2(0,0) not Vector2(0.5f, 0.5f). If not you should round up.
This is better site to ask questions about game programming:
https://gamedev.stackexchange.com/

Related

Blender correctly text the image on object

Is it possible in BLENDER version 2.82a to adjust the texture so that the corners of the tower are not moved up or down so that they fit correctly? Sorry for the bad English I use the translator. I'm attaching pictures. Thank you for the advice.I am a beginner.
yes it is possible. But you would need a seamless texture so it can repeat itself over the object. This is what happens when I copy and paste the texture multiple times next to each other:
The seams are clerly visible.
And any instructions for proper mapping? I've looked at the tutorials everywhere, but somehow I can't

Creating text / number objects in ARKit

I want to create some objects (boxes, cylinders, pyramids, doesnt really matter) which display text / a number on the side / on all of it's sides. Short of making individual materials with the numbers displayed on them by hand, is there a simple way to achieve this?
I am using Swift 4 in XCode.
First thing, please try not to be discouraged. Thank you for reaching out to the ARKit community on stack :-)
We are here to help each other.
(I do feel your pain…and why I am trying to help)
Here is an interesting stack page that has helped me with placing items on the sides of objects(like boxes cylinders, pyramids).
I hope it can help you or others.
SCNBox different colour or texture on each face
Rickster pointed out some other possibilities.
We all learn by sharing what we know.
Smartdog
Depends on what you mean by "by hand". If you want the text displayed on the surface of the geometry, like a texture map, then texture-mapping it is the way to go. If you draw your text into a UIImage, you can set that as the material contents, which is a bit more dynamic than, say, creating a bunch of PNGs that each have a different number on them. Just make sure to choose an image size/resolution that looks good at the size your objects are displayed at.
For anyone lost in the internet trying to find an answer to this it's stupidly simple. Use SCNText and set it as a node. I just wasted 7 hours of my life trying to make number .dae models position themselves next to each other because there is no mention of this feature anywhere.
I hope I saved you as much pain as I just endured discovering this.

How can i improve the performance of my app(swift) that seams to struggle

I made an app that uses a custom UIDynamicBehavior but i have problems with performance. So the game i wrote has a circle in the middle of the screen and there are little circle dots "flying" out of the middle in random directions to the border of the circle. I have about 4-5 circles on the screen at the same time at most and the frames are already droping. I have also tried using multithreading but i get some weird errors i dont understand so im presuming i was using it wrong. Does anyone have any experience with that? Can someone help me please? In the file you see a function "lunchBall", that gats called about every second or so. Thank you. Here is the file: https://www.dropbox.com/s/hbf2qux47zhd9ap/BallDynamicBehavior.swift?dl=0

Triangle, with 3 levels, containing text on iOS

I need some advice with my current project. The big problem being, I'm an android dev, helping out on iOS for the next few days.
I need to create a triangle, with 3 levels of text (as seen in the image below). Just adding labels at the different levels is leaving me with a lot of unused space. I have also though of using CGMutablePathRef to create a triangle, but it doesn't seem I can add a label to it, like you can to a CALayer. Or am I missing something?
Please, any advice would be appreciated (and example code even more so, as my iOS skills are still quite shocking).
Regards

three.js - create draggable circle

I've just cloned the three.js project from github. I'm interested in creating a circle on a 2d plane that I can drag with my mouse. I have no experience in graphics programming (WebGL or OpenGL).
Can someone please point me in the right direction? I've tried google, but the examples seem too complicated.
Many thanks in advance,
I think this is something you need to have a go at. It's not nearly as complicated as you might think. If the maths are scaring you off, don't worry three.js handles it all for you, you just need to add a camera, some shapes and ask it to render them.
Please do take the time to go through aerotwists three js tutorials as these will give you a good grounding in how to setup a basic scene.
You will quickly realise that once you have a scene you can change objects quite easily using your current scene.
As for dragging things around, I'm sure that will come just try to walk before you can run.

Resources