Make a random color or material in Kray instance?

Post your tutorials and help questions in this forum
azman_821009
Posts: 274
Joined: Sat Mar 17, 2007 11:54 pm
Location: Kuala Lumpur
Contact:

Make a random color or material in Kray instance?

Post by azman_821009 »

Hi everyone,

Actually I don't know how I want to explain. Can I make a random color or material using Kray instance? For example a tree, I want to used a Kray instance for clone a lot of tree and in the same time I want to make a random or different color/material of leaf etc. Hope you guys know what I'm trying to say.

Anyway sorry for my English.

Thanks.

Azmen
User avatar
Janusz Biela
Posts: 3265
Joined: Mon Mar 13, 2006 10:39 am
Location: Finland
Contact:

Re: Make a random color or material in Kray instance?

Post by Janusz Biela »

azman_821009 wrote:Hi everyone,

Actually I don't know how I want to explain. Can I make a random color or material using Kray instance? For example a tree, I want to used a Kray instance for clone a lot of tree and in the same time I want to make a random or different color/material of leaf etc. Hope you guys know what I'm trying to say.

Anyway sorry for my English.

Thanks.

Azmen
Wait for Jure´s answer. I think this is possible in LW x32 ...
jure
Posts: 2142
Joined: Thu Jun 02, 2005 6:53 pm

Re: Make a random color or material in Kray instance?

Post by jure »

azman_821009 wrote:Hi everyone,

Actually I don't know how I want to explain. Can I make a random color or material using Kray instance? For example a tree, I want to used a Kray instance for clone a lot of tree and in the same time I want to make a random or different color/material of leaf etc. Hope you guys know what I'm trying to say.

Anyway sorry for my English.

Thanks.

Azmen
Well there is not an easy one click solution for this yet. But there are couple of options you can use:
1. "Use color" option in Kray Instances will allow you to colorize the instance with the templates color. For this to work your template points must be at least 1-point polys so that they can have material applied.

2. You can create a map where you paint certain areas different color and apply this as a planar map over your whole instanced area (must be applied in world coordinates mode).

3. use nodes to get variation between instances.
- Jure
vpii
Posts: 164
Joined: Wed Jan 17, 2007 5:45 pm
Contact:

Re: Make a random color or material in Kray instance?

Post by vpii »

2 in the list is what I have been doing.
azman_821009
Posts: 274
Joined: Sat Mar 17, 2007 11:54 pm
Location: Kuala Lumpur
Contact:

Re: Make a random color or material in Kray instance?

Post by azman_821009 »

vpii wrote:2 in the list is what I have been doing.
How you did for this option? Can you show me and explain step-by-step.

Thanks. :)

Azmen
azman_821009
Posts: 274
Joined: Sat Mar 17, 2007 11:54 pm
Location: Kuala Lumpur
Contact:

Re: Make a random color or material in Kray instance?

Post by azman_821009 »

How can I turn OFF the instance I made? I've try to turn it OFF on 'Objects Properties > Geometry .....' and also on 'Kray Instance > Enable Plugin' but it still appeared. :(

Thanks.

Azmen
User avatar
Janusz Biela
Posts: 3265
Joined: Mon Mar 13, 2006 10:39 am
Location: Finland
Contact:

Re: Make a random color or material in Kray instance?

Post by Janusz Biela »

azman_821009 wrote:
vpii wrote:2 in the list is what I have been doing.
How you did for this option? Can you show me and explain step-by-step.

Thanks. :)

Azmen
Two ways:
1/ by points (You have to create points as poly)
2/ by wire (normal wire or better, Subpatch)

Both you can setup with texture (very important "world textures coordinates" and Y direction" Just put texture for clone surface and in plugin Instance select option for take colours.
azman_821009
Posts: 274
Joined: Sat Mar 17, 2007 11:54 pm
Location: Kuala Lumpur
Contact:

Re: Make a random color or material in Kray instance?

Post by azman_821009 »

How can I turn OFF the instance I made? I've try to turn it OFF on 'Objects Properties > Geometry .....' and also on 'Kray Instance > Enable Plugin' but it still appeared. :(

Thanks.

Azmen
User avatar
Janusz Biela
Posts: 3265
Joined: Mon Mar 13, 2006 10:39 am
Location: Finland
Contact:

Re: Make a random color or material in Kray instance?

Post by Janusz Biela »

azman_821009 wrote:How can I turn OFF the instance I made? I've try to turn it OFF on 'Objects Properties > Geometry .....'
This does not work

and also on 'Kray Instance > Enable Plugin' but it still appeared. :(

Thanks.

Azmen
This should work correct
azman_821009
Posts: 274
Joined: Sat Mar 17, 2007 11:54 pm
Location: Kuala Lumpur
Contact:

Re: Make a random color or material in Kray instance?

Post by azman_821009 »

Yes but it still appeared. Tried many times both options.

Do you have any idea?

Azmen
jure
Posts: 2142
Joined: Thu Jun 02, 2005 6:53 pm

Re: Make a random color or material in Kray instance?

Post by jure »

Turning off "enable plugin" should work. Check again.
- Jure
User avatar
Janusz Biela
Posts: 3265
Joined: Mon Mar 13, 2006 10:39 am
Location: Finland
Contact:

Re: Make a random color or material in Kray instance?

Post by Janusz Biela »

If does not work reinstall Kray plugins , please (maybe You have some old mixed with new)
azman_821009
Posts: 274
Joined: Sat Mar 17, 2007 11:54 pm
Location: Kuala Lumpur
Contact:

Re: Make a random color or material in Kray instance?

Post by azman_821009 »

jure wrote:Turning off "enable plugin" should work. Check again.
Yes, i turned it off many times. Then tried to delete/removed the Kray Instance plug-in on Object Properties > Geometry > ... it's work. :(
User avatar
Janusz Biela
Posts: 3265
Joined: Mon Mar 13, 2006 10:39 am
Location: Finland
Contact:

Re: Make a random color or material in Kray instance?

Post by Janusz Biela »

So works? If not please delete all Kray.p from disk (by searcher windows as: "kray.*") and put all new Kray plugins in one folder.
azman_821009
Posts: 274
Joined: Sat Mar 17, 2007 11:54 pm
Location: Kuala Lumpur
Contact:

Re: Make a random color or material in Kray instance?

Post by azman_821009 »

Janusz Biela wrote:So works? If not please delete all Kray.p from disk (by searcher windows as: "kray.*") and put all new Kray plugins in one folder.
Thanks again Janusz. Finally it works. :D

1 more thing, I tired to make different color the point (light and darker green) but when I rendered, nothing happen with the colors.

Thanks.

Azmen
Locked