LE operands and stuff

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

LE operands and stuff // Archive: Tech Forum

1  |  

Post by GraySho // Oct 31, 2006, 10:37am

GraySho
Total Posts: 695
pic
I have set up a simple scenario to learn a bit more about the possibilities and functionality of the LE. I've noticed a few things and some questions came up:


http://www.spacerat.at/temp/le_mathfn.jpg


Whenever I edit the UnaryOp node (e.g. adding the scrubber), the output connector of "Result" shifts to the top right by default. Am I doing something wrong, is that supposed to be? I understand that I have created a new tab instead of overwriting the default aspect of the node, so that might explain why.


All the math library objects, except Operations, don't seem to work. When I enter them, I'm confronted with the script editor, but there's no script at all. And I can't connect them to anything. Are those just for show??


Finally, is there a list of valid operands that can be used in unary/binary operations? I can only guess, and most of the time they don't seem to do anything (at least with unary operation). Also, why is the unary operation negating the value? Is there a way to change that? I tried to enter *-1, but that didn't work.


Any help would be appreciated.

Post by Asem // Oct 31, 2006, 1:21pm

Asem
Total Posts: 255
Whenever I edit the UnaryOp node (e.g. adding the scrubber), the output connector of "Result" shifts[...]

It moved but there is a way to fix it and that would be to hold crtl then leftclick and drag it into position.



All the math library objects, except Operations, don't seem to work.

Apparently they won't work as for some reason the value they put out is RTNumeric instead of 'number' or 'real' not sure but that is odd but because of that it won't connect to apparently anything that can accept a number maybe this wasn't intentional? And the scripting part does look like it was show or not supposed to be there.


why is the unary operation negating the value?

Not sure about that I just tested it and mine is giving me the correct answer. maybe something went weird in the node and someone can give you their's?

Post by Délé // Oct 31, 2006, 1:43pm

Délé
Total Posts: 1374
pic
The Unary Op will output the negative if you are trying to use an operand that won't work with it. For instance, if you use +, -, *, / it will output the negative of the input. I assume that's just to let you know that the operand you are using will not work.

That said...I'm not sure about all of the possibilities but here's a list of operands that I've found work:

UnaryOp:
Cos
Sin
Sqrt

BinaryOp:
+
-
*
/
Min
Max

Post by trueBlue // Nov 24, 2006, 11:52pm

trueBlue
Total Posts: 1761
pic
All the math library objects, except Operations, don't seem to work. When I enter them, I'm confronted with the script editor, but there's no script at all. And I can't connect them to anything. Are those just for show?

I would also like to know about this. How are they suppose to be used?

Post by Asem // Nov 24, 2006, 11:55pm

Asem
Total Posts: 255
Wasn't it found out that the math library was really a math library for the hlsl stuff?

Post by trueBlue // Nov 25, 2006, 12:19am

trueBlue
Total Posts: 1761
pic
They are two different libraries. Math/Functions and Components/Functions. The Functions in the Components library are complied. The Functions in the Math library are the ones with empty scripts.

Post by Asem // Nov 25, 2006, 12:37am

Asem
Total Posts: 255
It seems like the ones that are scripts shouldn't even be there. They both show the same types with in/out connectors. So yeah that's a good question. My guess is that it shouldn't be there and only the ones under component are the real ones.

But it could be wrong, I wonder whats up with that?
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn