Showing posts with label Texture. Show all posts
Showing posts with label Texture. Show all posts

Monday, January 7, 2013

Creating ocean edge materials for Mental Ray


Simple ocean material









Apply ocean edge material








I used Vertex Pain to create ocean edge before but if design was changed last min. this was not an ideal way to do.
Here I will explain how to create this effect quick and easy. My main point is quick and easy to edit. Not for high detail.

Make a Blend material.
Put white/edge material for Material 1 – I use a wave jpeg image.
Put ocean material for Material 2 – I used A&G water material.
Put Ambient/Reflective Occlusion map for Mask.

Adjust Ambient/Reflective Occlusion map parameter
For this case,
Spread – 3.0
Max distance – 390’









When you add more islands or changing island shape, the edge will automatically update.

Monday, April 12, 2010

How to show a bit map clearly in the viewport?

When you need to trace some shapes using a low res image, it is not fun. Lines are really fuzzy and its hard to see edges, especially in the viewport. I usually use a hardware display and it helps.

When you turn on show map in view port, default is standard. You need to hold down the “show map in viewport” button and you will see another option (1). Select right side option, it should be hardware display.

















If it is turned on and an image didn’t show (black out), the image size might be too big for this. Reduce the image size and try again.

Monday, March 22, 2010

Matt Shadow Material or Render Element Shadow

This is really extreme case, but if you work with urban designers this may happen. (This is for a big print not for an animation purpose.)
Need to do,
1 – Render out shadow with alpha for an entire city scene.
2 – Render size is really big like 5,000pix or higher (many times, I need to render out 10,000pix).
3 – Clean shadow edge.
4 – Can't spend a lot of time.
Using a Render Elements, Shadows, is an easy and quick way to get only shadows from a scene but it is not good for a big sized renders because the edges won’t be smooth and clean. If it turns on anti-aliasing, a render time is slow. Also, using a matte shadow material for an entire scene, you will get a blank image because the material can receive a shadow but not cast a shadow. However, we can use a blend shader to resolve this problem.


(I use mental ray for rendering.)
(1)Make a blend shader. (2)The first material is going to be an Arch & Design material and the second material is going to Matte/Shadow/Reflection. Make sure Receive Shadows is turned on. Use Ambient Occlusion and Receive Indirect Illumination options are turned off. The Mask is going to be the Transparency. Input color is white and Transparency color is black. Now, this material works like the render element shadow with cleaner edges.
Go to render setup. (3)Turn on Material Override and drag the material to the slot (use instance) then render the scene. I used tiff file format for this. (4)Render preview is black but if click Display Alpha Channel you will see a shadow.


When you bring the image to Photoshop you will see a black image again. The shadow information is under the Channels. (5)Go to Channels tab and select Alpha 1 (shadow). Select all and copy then paste under the layers tab. (6) Invert the color (Ctrl + i) then change to a multiply blending mode. You should have nice clean shadows.





Here is a sample image.