Posts

Showing posts from 2016

When normal is just a direction not a position then why position of mesh changes the normal map?

Image
When Normal is just a direction, not a position then why positioning of the object in the scene or transformation (translation, rotation, and scale) of the object matters while baking object-space or world-space normal map? As we know that Normal is a direction (and it is orthogonal to the face of the mesh). When we bake Normal-map as RGB image, we calculate its x, y, z values to represent a direction.  To calculate x, y, z of a normal-direction, we need a reference point such as when we calculate a position of a dot on graph paper, (0,0) is the reference point. Reference point we pick, may change the x, y, z value of a direction. Eg : If we have a pyramid and we are calculating Normal of a face. Object Space Normal Map : To write Object-space normal value, we will find out x,y,z value from a center of the mesh. x, y, z value of Normal direction will remain the same at any rotation of the mesh as when we rotate the mesh, center-of-mesh i.e. transformation-axis rotate a

Beginner's guide to Shader Development using Unity

Image
-  Teachable.com     -  Cgcircuit.com What are we going to understand here? What is a shader? Types of shaders based on their functionality. Shader and their types : W hat is a shader ? When we ask a computer to perform any operation, we give an instruction to it, and a set of these instructions is called a  Program .  A program that is used or contributes to shade or draw something on the screen is called a  shader . Shader is a set of instructions that is run on  GPU — Graphics Processing Unit GPU:  A processing unit or circuit specially designed for faster and efficient computer graphics operation or image manipulation. If we quickly take a look at the comparison of GPU and CPU, GPU is also being used in deep-learning calculations. A CPU with four (or 8 or 10) cores in it A GPU with thousands of cores in it. Cores of CPU are designed for serial operations, whereas cores of GPU are designed for parallel or simultaneous o

Hollywood vs Bollywood - Scene Comparison

Image
Here are some shot comparison of similar scenes from Bollywood movie "Mohan Jodaro" and TV-series "Game of Thrones" I always want to pin point things that Bollywood movies lack in quality that Hollywood movies and TV-series have. It begins with some simple math that when input is better, there is a good chance that output will be better as well. Hollywood movies have big budgets, they can have better production quality and they can invest more in things like visual effects. Their target audience is slightly different, which I believe is changing. People all over world watch Hollywood movies and TV-series like Game of thrones which raises their expectation from Bollywood movies as well (Indian TV-series are not even in comparison - they are just bull shit). Bollywood typical formula of Muscle show-off, shaking of head while delivering dialogue, jumps that break all physics rules, cat walks will soon come to an end, they will have to give more to their audience.

Auto formatting Python code

Install Visual Studio Code. Once installed, open visual studio code. press "command + p", a window will open at the top. Type : ext install python Open terminal and type following commands : pip install pep8 pip install --upgrade autopep8 pip install pylint  Start auto formatting python code

DirectX3d - Graphics Rendering Pipeline

Image
From :  http://user.xmission.com/~legalize/book/preview/poster/index.html Another Resource : http://www.realtimerendering.com/#rendpipe

Maths and Graphics are fun

Image
CG - Maths http://acko.net/files/fullfrontal/fullfrontal/wdcode/online.html WebGL / Rendering techniques http://acko.net/files/fullfrontal/fullfrontal/webglmath/online.html