Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

5
votes
2answers
2k views

Why normal map is blue and purple in color?

I am learning about normal mapping I understood that RGB values converted into XYZ,but my question is how it is converted, and why the normal map is blue and purple in color ?
3
votes
1answer
63 views

Non real-time rendering on Unity3D

I made an audio visualizer using Unity3D (you can see it here) but I am not satisfied on the video quality, as the compression destroys the graphics. I recorded the screen during a real-time rendering....
1
vote
1answer
25 views

Difference between using + and * operator after tex2D to add albedo color?

I have a two different codes with a little difference Case 1. I used a + operator before _myColor. ...
1
vote
1answer
204 views

How can I use 3d animation to create a character that uses sign language?

I performed a quick search on programs that translate natural language to sign language (through a 3D animation character). Here are examples: IBM SISI ProDeaf (which is an android app) My question ...
2
votes
1answer
79 views

DX9 Shadow map PCF issue

I am trying to do simple PCF with Unity but I am facing some issues and I don't know where they come from. If anybody has an idea... Here are two examples ...
6
votes
1answer
204 views

Dealing with blown-out highlights in PBR

I've been writing some custom shaders based around Unity's Standard BRDF, which is uses GGX distribution term and Smith visibility term. It looks great at either end of the smoothness scale (1 and 2 ...
1
vote
0answers
289 views

Streaming video camera input from WebCamTexture on mobile? (Possibly via WebRTC or websocket?)

I'm building an application where I stream video camera feed from one mobile device to another in Unity. I tried searching for answers, but most of the topics deal with how to display a video stream, ...
5
votes
1answer
738 views

Alpha blending between two overlapping semi-transparent shapes

I am working on a 2D lighting system for my game. My approach has been to: Create a transparency quad representing 'darkness'. Create a stencil shader for light sources to clip from the darkness quad....
3
votes
1answer
303 views

GPU not reaching 100% usage when frame rate is dropping

I am making an iOS game using Unity. I am testing some shaders that I have made for the game, and in some cases the device will run at under 30 FPS but not have 100% device utilization. Sometimes a ...
6
votes
1answer
299 views

How to convert decomposed transformations between different coordinate systems?

I am converting some Unity3D scenes to a proprietary json format to be used by my OpenGL renderer that uses a different coordinate system from Unity's. I have multiple sets of {translation, rotation(...
6
votes
1answer
750 views

What's the difference between Sample and tex2D

I am mainly using Unity but I think that it's not related to this engine, and I am wondering what's the difference between using tex2D and ...
2
votes
1answer
50 views

What is required to limit the amount of draw calls in Unity?

I would like to limit the amount draw calls to approximate performance. Is there a nominal amount to aim for when working with high performance gaming? From my understanding to render an object that ...
5
votes
1answer
506 views

How could I use bent normal map

This might be a general question but I have some difficulties about understanding baked bent normal maps and how to use it inside a shader in Unity. From what I understand, bent normals are ...