Grab Texture Maps For Genesis 2 - Genesis 1 [SOLVED]
Dimension-Z
Posts: 352
Hi to all
I have managed to apply one map assigned to one variable (for instance diffuse color) to another variable (translucency color) by a script for Genesis 3 figure.
But unfortunately the same script doesn't work with Genesis 2 & Genesis 1. I have edited properly the script for the older figures, but it gaves me this error:
TypeError: Result of expression 'oProperty' [null] is not an object.
Any idea what I could use?
Thanks in advance for any help!
Post edited by Dimension-Z on
Comments
Are you checking that oProperty (which I assume is the result of a findProperty( name ) call or the like) was indeed successfully obtained?
Thank you very much for your answer Richard, I finally solved all my problems. It works perfect now with Genesis 3, 2, 1. Thnx again!
What I'd like to know is what script I need to include or back-end into a shader so that it does it automatically, thus:
I'm not sure you can use a simple equality test with color - you can't with soem other complex properties. Instead you might need a custom compare ( colour1 , colour2 ) function which would match the composite colour values one-by-one.