Click here to Skip to main content
16,015,108 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Costing terrain paths Pin
ejuanpp9-Nov-06 0:40
ejuanpp9-Nov-06 0:40 
GeneralRe: Costing terrain paths [modified] Pin
Kevnar9-Nov-06 2:53
Kevnar9-Nov-06 2:53 
GeneralRe: Costing terrain paths Pin
ejuanpp9-Nov-06 3:21
ejuanpp9-Nov-06 3:21 
GeneralRe: Costing terrain paths [modified] Pin
Kevnar9-Nov-06 3:40
Kevnar9-Nov-06 3:40 
GeneralRe: Costing terrain paths Pin
ricecake9-Nov-06 4:09
ricecake9-Nov-06 4:09 
GeneralRe: Costing terrain paths Pin
Kevnar9-Nov-06 4:16
Kevnar9-Nov-06 4:16 
GeneralRe: Costing terrain paths Pin
ricecake9-Nov-06 4:37
ricecake9-Nov-06 4:37 
GeneralRe: Costing terrain paths [modified] Pin
Kevnar9-Nov-06 5:24
Kevnar9-Nov-06 5:24 
Okay. I think I got this...

So in this case, x would always be 1 (or 1.41 if it's diagonal), and y would be the difference of the current terrain height and the target terrain height?

No wait. That's not right. I'll have to figure out the ratio of x (being 1) to y (being anywhere from 0 to 255).

It sucks being almost a nerd, but not quite.
-----------------------------------------------

K... I went with an arbitrary ratio of 25:1. So if the difference is 255, that'll count as 10x (approximately). Hopefully that works.

Thanks all.



-- modified at 11:45 Thursday 9th November, 2006

"Go to, I’ll no more on’t; it hath made me mad." - Hamlet

GeneralRe: Costing terrain paths Pin
ricecake9-Nov-06 5:48
ricecake9-Nov-06 5:48 
GeneralRe: Costing terrain paths Pin
Kevnar9-Nov-06 6:05
Kevnar9-Nov-06 6:05 
GeneralRe: Costing terrain paths Pin
ricecake9-Nov-06 6:46
ricecake9-Nov-06 6:46 
GeneralRe: Costing terrain paths Pin
Kevnar9-Nov-06 7:14
Kevnar9-Nov-06 7:14 
GeneralRe: Costing terrain paths Pin
ricecake9-Nov-06 7:21
ricecake9-Nov-06 7:21 
GeneralRe: Costing terrain paths Pin
Kevnar9-Nov-06 7:31
Kevnar9-Nov-06 7:31 
GeneralRe: Costing terrain paths Pin
ejuanpp9-Nov-06 3:43
ejuanpp9-Nov-06 3:43 
GeneralRe: Costing terrain paths Pin
Kevnar9-Nov-06 4:13
Kevnar9-Nov-06 4:13 
QuestionBeginners question? Where does the exact double value go? Pin
ClockDivider8-Nov-06 6:48
ClockDivider8-Nov-06 6:48 
AnswerRe: Beginners question? Where does the exact double value go? Pin
Rob Graham8-Nov-06 7:09
Rob Graham8-Nov-06 7:09 
GeneralRe: Beginners question? Where does the exact double value go? Pin
Dan Neely8-Nov-06 7:24
Dan Neely8-Nov-06 7:24 
GeneralRe: Beginners question? Where does the exact double value go? Pin
ClockDivider8-Nov-06 8:15
ClockDivider8-Nov-06 8:15 
QuestionScaling - help me Pin
dharani7-Nov-06 0:06
dharani7-Nov-06 0:06 
AnswerRe: Scaling - help me Pin
Jörgen Sigvardsson7-Nov-06 13:02
Jörgen Sigvardsson7-Nov-06 13:02 
GeneralBresenhams algorithm for drawing lines Pin
Jörgen Sigvardsson6-Nov-06 12:59
Jörgen Sigvardsson6-Nov-06 12:59 
GeneralRe: Bresenhams algorithm for drawing lines Pin
Luc Pattyn6-Nov-06 13:43
sitebuilderLuc Pattyn6-Nov-06 13:43 
GeneralRe: Bresenhams algorithm for drawing lines Pin
Jörgen Sigvardsson6-Nov-06 14:03
Jörgen Sigvardsson6-Nov-06 14:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.