cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

tgraupmann
Journeyman III

FX Composer port to RenderMonkey issue

Something is foobar

I'm trying to port an FX Composer shader to RenderMonkey. For some reason the output doesn't look the same as the FX Composer update.

I think something is foobar in the second pass.

http://tagenigma.com/qa/Unity3d/RenderMonkeyRelief.jpg

Here are the FX Composer project files, images, and RenderMonkey xml file.

http://tagenigma.com/qa/Unity3d/FX2MonkeyRelief.zip

0 Likes
5 Replies
bpurnomo
Staff

The problem is with your tangent space matrix.

To fix it, add TANGENT, BINORMAL and NORMAL to the Stream Mapping.  The index should be 0, data type should be FLOAT3 and Attribute Name should be rm_Tangent, rm_Binormal and rm_Normal.

 

 

0 Likes

I'm a little too noob with the RenderMonkey interface to do that?

I'm guessing it's not a note added to the StreamMapping.

I added Render Monkey variables like you said, but after changing the three variables to float3, my diffuse color disappeared in Pass 1.

How do I change the index to 0?

I tried to create variables of type float3 named as you said. I added the variables to each pass. And I made sure they are in the order specified. But it's still not working...

http://tagenigma.com/qa/Unity3...onkey_stream_issue.jpg

I assumed this data should be coming from the model and not a variable...

0 Likes

You are doing it wrong.  Remove what you added recently.  Double click on the Stream Mapping, and add the variables I mentioned.

0 Likes

Originally posted by: bpurnomo You are doing it wrong.  Remove what you added recently.  Double click on the Stream Mapping, and add the variables I mentioned.

 

 

Thanks for your help it worked!

 

http://screencast.com/t/z1Iw8jos7j

0 Likes

Nice job!

0 Likes