Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / How to curve a value over x loops...

Author
Message
AzureZeal
23
Years of Service
User Offline
Joined: 10th May 2003
Location:
Posted: 7th Jul 2003 06:25
This may be some simple math, but its late, and my brain hurts. I want to make a spherical curve on my matrix by taking a value from 'a' to 'b' over x loops. Youd think curvevalue could do this, but it doesnt (for me at least). As the difference between the current value and the destination value becomes less and less, the change becomes less and less, thus making it imposible to make a complete curve over x loops.

Sooo, what would the math look like then?
AzureZeal
23
Years of Service
User Offline
Joined: 10th May 2003
Location:
Posted: 7th Jul 2003 19:39
Hmmm maybe the math isnt so simple? My sin/cos/tan is a little rusty, but I imagine this effect could be done with angles. Still nobody knows?

AzureZeal
23
Years of Service
User Offline
Joined: 10th May 2003
Location:
Posted: 8th Jul 2003 01:56
Awe come on there must be a math wizzy out there. Nobody has any idea or nobody understands what Im trying to do? I just want a to write a function that makes a dome/sphere shape, thus I need to curve a value over a set ammount of steps.

spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 8th Jul 2003 04:08
Try following code:



R Tape loading error
AzureZeal
23
Years of Service
User Offline
Joined: 10th May 2003
Location:
Posted: 8th Jul 2003 08:53
Sonic u r my hero. I thought about doing it like that but figured there might be a 'better' way using sin/cos/tan. I guess this works just fine

Login to post a reply

Server time is: 2026-07-17 17:23:10
Your offset time is: 2026-07-17 17:23:10