Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: Alexandre SCELLIER on 2017-11-22, 11:59:26

Title: Max controllers output wrong XYZ rotation values
Post by: Alexandre SCELLIER on 2017-11-22, 11:59:26
Hi,
I'm actually using max controllers to control multiple triplanar maps values (see attachment).
I have a problem due to wrong output values controlling the xyz rotation of the triplanar map. Don't know if it's a 3ds max problem or a Corona one.
Any help would be great!
Thx.
Title: Re: Max controllers output wrong XYZ rotation values
Post by: Ondra on 2017-11-22, 12:46:54
5156 = RAD_TO_DEG(90) - somewhere someone takes input and converts it from radians to degrees
Title: Re: Max controllers output wrong XYZ rotation values
Post by: Alexandre SCELLIER on 2017-11-22, 14:21:22
Ok, then how can i make it work?
What's the way to use those controllers? Do i have to use a controler with a function (FloatExpression? > degToRad(x)) ? I'm a basic user and i really don't know about coding ... A micro-super-fast tutorial would be very appreciated =D
Best regards.
Title: Re: Max controllers output wrong XYZ rotation values
Post by: Alexandre SCELLIER on 2017-11-22, 18:34:40
FOUND IT! Thx Ondra for showing me the way =P
Title: Re: Max controllers output wrong XYZ rotation values
Post by: romullus on 2017-11-22, 18:55:18
That's good to know, but couldn't Corona do that conversion internally? It's not very convenient nor intuitive for user to construct such node graphs.
Title: Re: Max controllers output wrong XYZ rotation values
Post by: Njen on 2017-11-22, 19:12:25
It's inline with how the rest of Max operates. Yes it's annoying, but to be honest for consistency's sake I'd rather keep it as is, rather than having to remember one expression rule for Corona, and another for the rest of Max.
Title: Re: Max controllers output wrong XYZ rotation values
Post by: romullus on 2017-11-22, 19:54:28
Oh well, can't argue with that.
Title: Re: Max controllers output wrong XYZ rotation values
Post by: Ondra on 2017-11-23, 10:43:16
yep, it is up to 3dsmax to sort out radians vs. degrees inconsistency. Programmers should use radians, users degrees. I guess using controllers counts as programmer work :D