Newbie Help on writing custom Shaders

Hi,

I'm totally new to scripting, and I'm looking to create some custom shaders.

I had a look at a tutorial on creating an xray material and followed it to completion. all went well.

what I need to be able to do is create a standard material with a brick/tile texture in diffuse slot. I then need to be able to control the color of the bricks.

I know how to setup the rollout and parameters but what I can't seem to get right is setting up the inital material.

on create do
(
Delegate.diffusemap = Bricks()
Delegate.diffusemap.BrickType = 2
Delegate.diffusemap.Brick_color = [221,174,91]
Delegate.diffusemap.Vertical_count = 20
Delegate.diffusemap.Horizontal_count = 20
Delegate.diffusemap.Color_Variance = 0.3
Delegate.diffusemap.Fade_Variance = 0.1
Delegate.diffusemap.Mortar_Color = [150,150,150]
Delegate.diffusemap.Horizontal_Gap=0.1
Delegate.diffusemap.Vertical_Gap=0.1

The Bricktype property doesn't work, the rest seems to be ok. How do I change the Brick type to running bond?

Can someone please help.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Andy_Park's picture

Got it, tile_type not

Got it, tile_type not Brick_Type

Andy_Park's picture

OK another stumbling

OK another stumbling block,

How to I assing a map to the color slot in the brick texture, i'ce checked the max script resource and it only mentions color, nothing about a map property.

I cant put it into the color slot as this is an RGB [255,255,255] value only.

Any help much appreciated.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.