Git Product home page Git Product logo

gzrnm's Introduction

Radiosity Normal Readme


This guide is intended to assist new users in using Radiosity Normal Maps and Compressed Radiosity Normal Maps within Unity3D.


Within the Snow Cat Solutions folder in your project's hierarchy, there is a folder called RNM Basis Maps.  Each texture corresponds to a given "basis" for which RNMs should be generated.  These textures are only to be used with your 3D application of choice to generate the appropriate RNMs.


Using the basis textures is simple enough; you simply supply the texture as a normal map using the primary UV of your mesh in your modeling application.  It's very important that the basis maps are applied to the primary UV of the mesh, not the secondary or lightmap UV.  Otherwise, you will not have the appropriate basis baked into your lightmaps.


The basis textures are named after the basis they represent in the shaders within Unity.  You can use the table below to determine which lightmaps should go where in the material within Unity.

| Basis Map      | Texture Spot
================================
| RNM Basis Map X| RNM X Component
| RNM Basis Map Y| RNM Y Component
| RNM Basis Map Z| RNM Z Component

So for example, if you're using an application like Modo, and you bake a lightmap with RNM Basis Map X, then the resulting lightmap should be used in the RNM X Component for the object's material.


These RNM shaders also include a new type of RNM called Compressed Radiosity Normal Maps.


Creating CRNMs are simple enough; you take the three RNM light maps that you have generated, and merge them into one lightmap.  You desaturate each lightmap, and merge them into a different color channel of the CRNM in your image editing application of choice.  You can refer to the table below to know which lightmap goes into which channel of the CRNM.

| Lightmap  | CRNM Color Channel
===============================
| Lightmap X| Red Channel
| Lightmap Y| Green Channel
| Lightmap Z| Blue Channel

The shaders also have support for valve's "Self-Shadowed Bump Maps".  These bump maps can either include self-shadowing, or simply be normal maps stored in an RNM basis.  The key advantages of using this is for better performance on iOS, and more believable visuals.  In order to generate the appropriate SSBumps, you need something like SSBump Generator (which can be find here http://ssbump-generator.yolasite.com/).  Please note: SSBumps are only supported under forward rendering.


3D Modeling package specific tutorials and documentation is coming soon!


Donating helps to continue development of the project.

Donate with PayPal.

gzrnm's People

Contributors

geenz avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.