Posts

Showing posts from 2017

Install Python3 and PyQt5 on mac

I switched to Python3 and PyQt5 on mac Sierra because of ImportError while importing modules from Packages. It is due to SIP (System Integrity Protection) that Apple introduced in recent OS. from PySide2 import QtGui ImportError: dlopen(/Users/usr/Others/PySide2/QtGui.so, 2): Library not loaded: @rpath/libpyside2.2.0.dylib Referenced from: /Users/usr/Others/PySide2/QtGui.so Reason: image not found Easiest way I found to install python and Pyqt is using brew and pip3 brew install python3 pip3 install pyqt5 Directory where Python3 is install /usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/bin/python3.6

Easy PIL install

https://stackoverflow.com/questions/8863917/importerror-no-module-named-pil At first install Pillow with pip install Pillow or as follows c : \Python35 > python - m pip install Pillow Then in python code you may call from PIL import Image

Rendering order and Z-sorting

Image
Rendering order and Z-sorting . In Unity, there are a couple of options using which we can control render order of the objects, two of them are 1. Render queue in shaders and 2. Painter's algorithm but eventually, what appears in front and what stays hidden is decided by Z-sorting/depth sorting. Here is the authoritative sequence of order of objects that will appear on the screen. Z-sorting/ Depth sorting is the final step to sort pixels based on the z-distance from the camera, but we can still turn ZWrite-off in the shaders (which in a way breaks Z-sorting). If we turn off ZWrite in all the shaders then render-queue will be in charge of deciding what comes in front and what goes in back If all shaders have ZWrite turned off and as well as they are on the same render-queue then the distance of their transform point from the camera will decide the render order. Eg : - ZWrite Off - Render Queue same - Painter's algorithm - ZWrite Off - Render Queue in

Run Python Script using Jenkins to add to SVN

Image
(Not a tutorial - I am keeping it just for my own reference) Step 1: Setting Jenkins Job and Python script. Step 2 : Setting permission on svn data cache. chmod -R a+rwx /Users/xxx/src/starts-art/.svn Step 3: Setting permission on repo files. chmod -R a+rwx /Users/xxx/src/starts-art/DatabaseBackup/backup