Timo and Karl, thank you for the explanation.
If you ever come across that value reading tool i'd love to
hear from it.
Regards,
Frank
Hi,
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Timo Mikkolainen
Verzonden: dinsdag 27 september 2005 13:11
Aan: [email protected]
Onderwerp: Re:
variables decalred inside shaders are accessible only in the shader in question: global variables have to be declared in the root of the material. IIRC there is some sort of value reading tool somewhere, but I've never really touched it.
On 9/27/05, Frank Bueters <[EMAIL PROTECTED]> wrote:Hi all,I've been trying to improve my vsl skills from "pull a slider and gaze at what happens" to a slightly more understanding level. I used the material part of the Harry tutorial (by default C:\Program Files\Realsoft\Realsoft3D\manual\harry\harry.html) to see if I can keep track of what values are being taken, what is being computed and where the outcome is stored.I'm over halfway now and there are a few questions that I hope someone can answer for me.- How can the same variable be declared twice? For instance Var mc is being declared once in the Surface geometry shader and a second time in the Surface properties shader. Isn't a variable a reserved bit of memory?- Is there a way to read out values stored in variables? Just to check and see if what one assumes is right?Frank Dodd suggested to copy the value to a color object. It's a workaround but but isn't there a quicker, more direct way?Regards,Frank Bueters
