Illuminating an object equally on all sides for texture baking


#1

Hi

I’m making a videogame and I need to make textures for some objects, I really suck at texturing so I thought I could bake some materials into textures and use them in the game. After much research it seems what I want is Mental ray’s batch bake but my problem is I need the object to be equally illuminated on all sides so no side looks darker than the others because the game obviously uses real time lightning.

How can I do this?

By the way I’m using Maya 2013.

Thanks in advance!


#2

Hi there

Use the Surface Shader as your objects shader.

/Risto


#3

Thanks a lot!

It works but now its a little too flat, it is possible to have some sort of ambient occlusion with this shader? Im sorry if my question is too stupid but Im a total noob when it comes to shaders and stuff


#4

here’s one way:

  1. create a multiplyDivide - node ( from HyperShade -> utilities )
  2. create a mib_amb_occlusion - node ( HyperShade -> mentalray ->textures )
  3. connect mib_amb_occlusion.outValue -> multiplyDivide.input1
  4. connect your textures ( whatever you might be using ) to multiplyDivide.input2
  5. connect multiplyDivide.output -> surfaceShader.outColor

Vóila !

/Risto


#5

Thanks a lot that worked really nice!.