Author Topic: Max controllers output wrong XYZ rotation values  (Read 2746 times)

2017-11-22, 11:59:26

Alexandre SCELLIER

  • Active Users
  • **
  • Posts: 31
    • View Profile
    • www.alexandre-scellier.fr
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.

2017-11-22, 12:46:54
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
5156 = RAD_TO_DEG(90) - somewhere someone takes input and converts it from radians to degrees
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2017-11-22, 14:21:22
Reply #2

Alexandre SCELLIER

  • Active Users
  • **
  • Posts: 31
    • View Profile
    • www.alexandre-scellier.fr
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.
« Last Edit: 2017-11-22, 18:35:19 by Alexandre SCELLIER »

2017-11-22, 18:34:40
Reply #3

Alexandre SCELLIER

  • Active Users
  • **
  • Posts: 31
    • View Profile
    • www.alexandre-scellier.fr
FOUND IT! Thx Ondra for showing me the way =P

2017-11-22, 18:55:18
Reply #4

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9248
  • Let's move this topic, shall we?
    • View Profile
    • My Models
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.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2017-11-22, 19:12:25
Reply #5

Njen

  • Active Users
  • **
  • Posts: 557
    • View Profile
    • Cyan Eyed
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.

2017-11-22, 19:54:28
Reply #6

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9248
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Oh well, can't argue with that.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2017-11-23, 10:43:16
Reply #7

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
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
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)