Articles Archive
Director Forums
Director Wiki
Job Board
Search
 
Shockwave 3D :  Director Online Forums
Questions about using 3D in Director 
Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
Shader query - detail maps
Posted by: MjMAC87 (---.cmbg.cable.ntl.com)
Date: June 23, 2010 12:24PM

Hi all.

I am looking to see if it is possible to create a shader that is built up from a detail map.

For instance, I have 4 textures, grass, rock, sand and stone. I have an RGBA map which reflects how much of each texture to use. For instance, pixel 53 x 87 on a map that is 128 x 128 would have for instance, 195R, 0B, 25G, 35A, which obviously reflects how much red, blue, green and alpha to use. So technically R would mean that the grass texture would be almost completely visible but with a hint of sand and stone.

From what I have read so far from what I have found, a shader in director can consist of 8 textures. Am I right in thinking I would set the blend mode to use alpha meaning I would need 8 layers where a blank with an alpha map of where the grass should be?

I am familiar with vertex shaders etc to do this, but not within Director. I am just wondering if there is any resources on it out there or if anyone has any idea themselves before I leap in and try to do it from scratch.

Thanks in advance,
mjmac87



Re: Shader query - detail maps
Posted by: tyree (198.135.204.---)
Date: June 23, 2010 02:20PM

was it something along these lines

www.bleed.110mb.com/wallrelectiontest.htm



Edited 1 time(s). Last edit at 06/23/2010 02:21PM by tyree.



Re: Shader query - detail maps
Posted by: MjMAC87 (---.cmbg.cable.ntl.com)
Date: June 23, 2010 02:28PM

In a way sort of yeah.

I have a terrain texture blend vertex and pixel shader to hand if that will help give an idea as to what I am looking for?



Re: Shader query - detail maps
Posted by: tyree (198.135.204.---)
Date: June 25, 2010 01:12PM

sounds like you just want to blend some textures together. if you can get the vertex blend and the pixel shader into a texture. you should be able to do that without a problem. you dont have to wait until you get into director to do it. you could import it in that way

you might find this interesting

www.bleed.110mb.com/femalebodypainted.htm



Edited 3 time(s). Last edit at 06/25/2010 01:18PM by tyree.





Sorry, only registered users may post in this forum.
This forum powered by Phorum.