Posts

Showing posts from May, 2020

UE4: Lock Material Texture Tile Size to World Coordinate Space

Image
Increase the WorldScale Vector Parameter (RGB Values) > 1.0 to zoom in on the texture more.

Photoshop: Create Normal Maps

Image
1) Open your original texture in Photoshop 2) Select Image->Adjustments->Black and White 3) Use the following methods to try to get a good contrast between light (high) and dark (low) spots: A) Image->Adjustments->Levels B) Image->Adjustments->Tone Curve C) Image->Adjustments->Exposure 4) Filter->3D->Generate Normal Map

Photoshop: Create Seamless Textures

Image
Tools to build seamless textures in Adobe Photoshop: 1) Crop your source photo to a square resolution (1000x1000 for example). Pick a piece that doesn't have any unique attributes that will stand out in repeat. 2) Adjust the levels, brightness, and contrast to get it as even looking as possible 3) Filter -> Other -> Offset (or Scroll) with horizontal and vertical values half you resolution 4) You need to blend the cross section in the middle without touching the edges of the photo 5) Use the patch tool and healing brush in combination to hide the seams 6) Your source picture should try to keep the same lightness across the whole cropped portion but if not, you can try to compensate by changing your image mode to lab color, and using filter->Other->High Pass to flatten out the color on the luminosity channel.

Elasticsearch: Basic Operations Using Postman / Python

Download Postman:  https://www.postman.com/downloads/ Create a new index: PUT http://servername:port/ indexname Delete an index: DELETE http://servername:port/ indexname Insert data: POST http://servername:port/ indexname Set header to JSON and enter the below in the body for example: {"Insturment":"ct5","Mid":999} Get data: POST http://servername:port/ indexname /_search?size=10000 Get data from python: import requets url = 'http://servername:port/indexname/_search?size=1000' res = requests . get(url) Insert data from python: import requets import json headers = { "Content-Type" : "application/json" } url = 'http://servername:port/indexname/_doc' myMsg = { "doc" :{ "Insturment" : "ct5" , "Mid" : 100 }} res = requests . post(url, headers = headers, data = json . dumps(myMsg))