Keep textures from stretching when extruding faces in Blender? - blender

I'm trying to make a map in Blender but I'm getting weird texture stretching problem when I extrude along some faces. I've enabled "Correct Face Attributes" in Options, and it helps, but in some cases I still get this stretching:
Any pointers on how I could fix this?

Found the perfect answer here: https://blenderartists.org/t/extruded-correct-face-attributes-texture-is-distorted/1270185
Using hex-planar UV mapping, things are looking as they should!
Fixed Screenshot

Related

Unity Issue Shadow Caster 2D

I'm having this issue when working with the new Shadow Caster 2D in Unity.
https://www.youtube.com/watch?v=tvUNsYCVeIM&feature=youtu.be
A quick fix is to increase the outer radius and raise the falloff intensity to max to compensate.
Dev told of another temporarely fix, which is to add a vertex to your shadow caster in the middle of each of your sides. I haven't tried it myself yet, as I've found solution 1 sufficient for testing purposes, but i'll probably try it out as some point.
Ultimately its a bug that they will fix it in time.
For futher questions regarding 2d Lights/Shadows I recommend the thread on Unity: link

Weird deformation of rigging and posing in blender

I follow some online tutorials to do the rigging and posing in blender. I create bones and vertex groups, then bind them together. When I move on to rigging, the deformation of the mesh is quite weird. I searched on the internet and didn't find an answer. I wonder if anyone can help? Thank you very much!
Image here (http://s17.postimg.org/wn4z8fjd9/strange.png)
It looks like they have wrong weights for the bones.
Try first to remove the parenting for the mesh and parent the mesh again using the "automatic weight" option.
After that you fix the remaining problems in weight paint mode

libgdx tiledmap flicker with Nearest filtering

I am having strange artifacts on a tiledmap while scrolling with the camera clamped on the player (who is a box2d-Body).
Before getting this issue i used the linear filter for the tiledmap which prevents those strange artifacts from happening but results in Texture bleeding (i loaded the tiledmap straight from a .tmx file without padding the tiles).
However now i am using the Nearest filter instead which gets rid of the bleeding but when scrolling the map (by walking the character with the cam clamped on him) it seams like a lot of pixel are flickering around. The flickering results can get better or worse depending on the cameras zoom value.
But when I use the "OrthoCamController" class from the libgdx-Utilities which allows to scroll the map by panning with the mouse/finger i don't get these artifacts at all.
I assume that the flickering might be caused by bad camera-position values received by the box2d-Body's position.
One more thing i should add here: The game instance runs in 1280*720 display mode while my gamecam renders only 800*480. Wen i change the gamecam's rendersolution to 1280*720 i don't get those artifacts but then the tiles are way too tiny.
Has anyone experienced this issue or knows how to fix that? :)
I had a similar problem with this, and found it was due to having too small a decimal value for the camera position.
I think what may be happening is some sort of rounding with certain tile columns/rows in the tilemap renderer.
I fixed this by rounding to a set accuracy, like so:
camera.position.x = Math.round(player.entity.getX() * scalePosition) / scalePosition;
Experiment with various values, but I got it working by using the tile size as the scalePosition value.
About tilesets, I posted a solution here: Getting gaps between tiled textures with libgdx
I've been using that method with Tiled itself. You will have to adjust "margin" and "spacing" when importing tilesets in Tiled to get the effect working.
It's 100% working for me :)

texture does not apply correctly on several faces

After rendering a simple object, some faces have a corrupt texture, even all faces should use the same texture.
Did i miss something or does anyone knows a workaround for this?
Removing Smooth shows the correct texture.
Similar issue with other textures
Removing and recreating faces does not solve the problem.
Below a link to the Blender File.
Thank you very much.
Blender File example:
https://skydrive.live.com/redir?resid=9260E6210D9A2E5B!807&authkey=!AEKG2Qgg1spEHCc
Edit: Im using Blender 2.68a Windows 64 bits on Win8
Under the Mapping section in the texture settings, change the texture coordinates from Normal to Generated.

OpenCV cvFindContours questions

I'm following this guide: http://www.aishack.in/2010/08/sudoku-grabber-with-opencv/2/
and modifying to iOS 5.0.
I managed to find the largest contour (the sudoku "board"), however, it only locates the surrounding square, without the lines inside, as in the tutorial. can this be easily solved?
I'll try and find a way around it, but still would like to know. thanks!
I assume that you are using the camera right now. Try to load the image what is used in the tutorial and check if your implementation works on that image. Then you can continue with nice sudoku images from the web. You may also change the camera angle and distance from the sudoku when taking pictures to get a better, clearer view.