Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Featured Threads
  inspiration alert!!!
(37 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies) Members Gallery
(516 replies)
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Maths geniuses help..
show user profile  ScotlandDave
I'm trying to figure out how to map one range of values to another, and find out if there's some sort of equation or mathematical relationship that can be built to do the mapping..

All i have to go by is some test values and how they compare.. To think about it in 3d terms it's actually the specular width ( glossiness ) value between two different apps i'm trying to approximate.. Here's what i can figure out from trial and error with as identical scenes as possible in both 3d apps:

In app A, if spec width is set to 100%, i have to set spec width in app B to around 80%
In app A, if spec width is set to 80%, i have to set spec width in app B to around 58%
In app A, if spec width is set to 50%, i have to set spec width in app B to around 25%
In app A, if spec width is set to 25%, i have to set spec width in app B to around 14%

So obviously the relationship isn't linear.. I had no idea where to start as my maths knowledge isn't great so i took a stab at working out the exponential relationships with some log calculations on a scientific calculator. That came back with a range of exponents from around 0.95-0.81 as the spec in app A gets lower..

That's kinda where i get stuck.. How do i come up with a formula that i can plug in that will convert one to the other. So if i have say spec value of 63 in app A it'll closely approximate the correct value for app B..

Not sure if this makes sense..

If it does, i'd be glad to hear from you :)

Website | Blog | Contact | Vimeo

read 757 times
3/26/2015 3:45:37 AM (last edit: 3/26/2015 3:45:37 AM)
show user profile  gogodr
with polynomial interpolating this should make it for you.
y = 34 - (81*x/50) + (23*x^2/625) - (x^3/6250)
where y is the width in app B and x is the width in app A

wolfram Alpha to the rescue:

Hello there

beautiful ;3

read 744 times
3/26/2015 4:36:53 AM (last edit: 3/26/2015 4:37:24 AM)
show user profile  Bolteon
damn, wolfram for the fucking hard win right there.

-Marko Mandaric

read 741 times
3/26/2015 5:31:14 AM (last edit: 3/26/2015 5:31:14 AM)
show user profile  herfst1
Haha, was so relieved to see there was a website with that formula. I was looking at Gogodr's formula and looking back at Scotty's numbers and I was thinking, "What the fuck?!?!? Where's 34 come from? And the... ah, fuck it, I give up."
read 725 times
3/26/2015 8:16:37 AM (last edit: 3/26/2015 8:16:37 AM)
show user profile  ScotlandDave
Thanks a bunch Gogodr I'll check that out, much appreciated.. Wolfram calculator kept coming up on the search suggestions when I was googling it all, guess its time to find out more about it..

Website | Blog | Contact | Vimeo

read 723 times
3/26/2015 9:35:03 AM (last edit: 3/26/2015 9:35:03 AM)
show user profile  gogodr
this video explains it pretty good

Hello there

beautiful ;3

read 706 times
3/26/2015 5:05:16 PM (last edit: 3/26/2015 5:05:16 PM)
show user profile  LionDebt
gogodr you lost me at polynomial.
read 689 times
3/26/2015 7:35:13 PM (last edit: 3/26/2015 7:35:13 PM)
show user profile  ScotlandDave
Thanks again Gogodr, will check that out ( probably way over my head though )..

The interpolating polynomials equation you posted has worked out perfectly. I tried some of the other suggestions on the Wolfram site, and thought the actual linear equation might do it ( is it looks kinda mostly linear until you get to higher glossiness values ) but it was a bit off, so have used the polynomial equation.

Thanks again!

Website | Blog | Contact | Vimeo

read 675 times
3/26/2015 10:10:58 PM (last edit: 3/26/2015 10:10:58 PM)
show user profile  br0t
well done gogodr, great resource to get a curve from a few samples

never get low & slow & out of ideas

read 654 times
3/27/2015 8:55:31 PM (last edit: 3/27/2015 8:55:31 PM)
show user profile  gogodr
fun story:
background (I'm finishing my degree on systems engineering)
People always complain about the last calculus and algebra courses of my career saying that they will never use that kind of things, that it is way to complex for practical use.
I always say, well it is good to know at least that you can do this kind of stuff so that you can at least look it up if you don't remember how to do it. Specially for what I am aiming which is game development. When programming for games you use complex math which one would never imagine goes behind movement and behaviors of things.
TL;DR: yay math.

Hello there

beautiful ;3

read 646 times
3/27/2015 9:19:51 PM (last edit: 3/27/2015 9:19:51 PM)
show user profile  Garp
@gogodr: During the past 5 years I've been through a self-tailored CS course of wide spectrum which, considering that I started from scratch, is bound to have a few holes in it.
Would you mind sharing some of the textbooks in systems engineering that you'd consider of value?

read 644 times
3/27/2015 9:29:35 PM (last edit: 3/27/2015 9:43:33 PM)
show user profile  gogodr
contrary to popular belief, systems engineering is more of a project leading career than a programming oriented one.
The topics I consider more valuable from my career were agile methodologies (specially SCRUM and Extreme Programming) and design patterns for programming.
Its all on the internet and it is better taught via youtube video conferences, expos, tutorials, etc.

Hello there

beautiful ;3

read 620 times
3/28/2015 1:33:26 AM (last edit: 3/28/2015 1:33:26 AM)
show user profile  Garp
I'm a sucker for good textbooks and since there aren't that many, I ask any chance I get. Thanks anyway.

To give a little more info, being both a one-man dev team and my own client, I'm not too concerned about agile development.
On the other hand, as my knowledge grew, so have my ambitions and the size of my projects. For now, I manage things off the top of my head and it doesn't scale up very well. I'm looking for some solid foundation about organizing medium size to large size systems.

read 604 times
3/28/2015 3:05:44 PM (last edit: 3/28/2015 3:22:47 PM)
show user profile  gogodr
SCRUM is good even for a single man team, as it provides you with tools to not only organize your workflow, but also to let your client know what is what they want, how are you going to make it and what should the client expect to see as you go on making it.

It shines when working on team tho, as you are able to manage what everyone is doing effectively.

Hello there

beautiful ;3

read 591 times
3/28/2015 4:38:40 PM (last edit: 3/28/2015 4:38:40 PM)
show user profile  Garp
I'll look more into it, especially for workflow organization (as I said, the client is me). Thanks again, gogodr :)

read 582 times
3/28/2015 7:04:36 PM (last edit: 3/28/2015 7:04:36 PM)
#Maxforums IRC
Open chat window