Change font size
It is currently Tue Dec 22, 2009 12:22 am

Welcome
Welcome to Computer Programming Forum
We have a tool bar that you can download at http://comprog98.ourtoolbar.com/
Free Domain Name Service
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!
Here's where the people who come to are site are from:Image
Affiliate links: http://www.dreamincode.net/
Prediction Market

DaniWeb IT Discussion Community




Post a new topicPost a reply Page 1 of 2   [ 38 posts ]
Go to page 1, 2  Next
Author Message
 Post subject: Maps
New postPosted: Mon Mar 03, 2008 4:51 pm 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 648
Highscores: 11
Could somebody post an example of code that uses a map?


Top
 Profile  
 
 Post subject:
New postPosted: Sat Mar 15, 2008 3:50 pm 
Average

Joined: Fri Mar 14, 2008 8:12 am
Posts: 435
what do you mean by map? <:s

_________________
"ease the trigger" does that work for games too?


:twisted:


Last edited by Ashkenaz on Mon Apr 14, 2008 8:16 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
New postPosted: Mon Apr 07, 2008 10:34 am 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 648
Highscores: 11
Here's psedo code for what I'm thinking,
1. load map file
2. read hights of points
3. find the point that's adjacent to the current point that's also the lowest
4. move there
5. repeat steps 3 & 4 with new point.


In my thinking I'm seeing a problem with this. the problem is that this would only work to go down say a hill because there has to always be a point 2 points away that's lower than the current point. Otherwise it will just keep going back and forth.


Top
 Profile  
 
 Post subject:
New postPosted: Wed Apr 09, 2008 12:49 pm 
Average
User avatar

Joined: Sat Mar 15, 2008 1:55 pm
Posts: 218
Location: Earth, usually.
So then what are you asking us to do? Are you trying to write code that makes something go down a hill, or is there something I don't follow?

_________________
When there's nothing left to lose, you win.

- Crush40


Top
 Profile  
 
 Post subject:
New postPosted: Wed Apr 09, 2008 6:06 pm 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 648
Highscores: 11
No, just look at the psedo-code and see if it seems like a feesable way to use a map in AI.


Top
 Profile  
 
 Post subject:
New postPosted: Thu Apr 10, 2008 2:57 pm 
Average
User avatar

Joined: Sat Mar 15, 2008 1:55 pm
Posts: 218
Location: Earth, usually.
Well, yeah, it's feasable, if you're going down a hill.
I think my question was, what's the point? You just wrote the psudocode, so what else do you need?

_________________
When there's nothing left to lose, you win.

- Crush40


Top
 Profile  
 
 Post subject:
New postPosted: Thu Apr 10, 2008 3:47 pm 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 648
Highscores: 11
I don't think there is anything else I need in order to write sample code to implement it.


Top
 Profile  
 
 Post subject:
New postPosted: Sat Apr 12, 2008 12:54 pm 
Average
User avatar

Joined: Sat Mar 15, 2008 1:55 pm
Posts: 218
Location: Earth, usually.
Then why ask us for it?

_________________
When there's nothing left to lose, you win.

- Crush40


Top
 Profile  
 
 Post subject:
New postPosted: Sat Apr 12, 2008 2:11 pm 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 648
Highscores: 11
I didn't have any idea of how to use them at the time I posted.


Top
 Profile  
 
 Post subject:
New postPosted: Mon Apr 14, 2008 8:20 am 
Average

Joined: Fri Mar 14, 2008 8:12 am
Posts: 435
one word: heightmap

you should know what that means

its usually used for terrain generation...

tho i see what your going at, snipers go to higher ground, reconnaissance goes to lower ground...

_________________
"ease the trigger" does that work for games too?


:twisted:


Top
 Profile  
 
 Post subject:
New postPosted: Mon Apr 14, 2008 4:00 pm 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 648
Highscores: 11
This could be used in other places besides games. Like navigating terrain for a robot.


Top
 Profile  
 
 Post subject:
New postPosted: Thu Apr 17, 2008 9:07 am 
Average

Joined: Fri Mar 14, 2008 8:12 am
Posts: 435
google earth \(^_^)/

_________________
"ease the trigger" does that work for games too?


:twisted:


Top
 Profile  
 
 Post subject:
New postPosted: Thu Apr 17, 2008 3:32 pm 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 648
Highscores: 11
a)I don't think that Google Earth will provide the all nessicary Z-value
b)Google Earth does not provide the resolution needed for praticality


Top
 Profile  
 
 Post subject:
New postPosted: Fri Apr 18, 2008 8:04 am 
Average

Joined: Fri Mar 14, 2008 8:12 am
Posts: 435
bobwrits wrote:
a)I don't think that Google Earth will provide the all nessicary Z-value


what do you mean? a robot using gps could find the rough estimate of where a higher or lower ground is



bobwrits wrote:
b)Google Earth does not provide the resolution needed for praticality


what does that have to do with anything?



also google earth has many cloud pictures, a robot could get messed up by those...

_________________
"ease the trigger" does that work for games too?


:twisted:


Top
 Profile  
 
 Post subject:
New postPosted: Fri Apr 18, 2008 3:32 pm 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 648
Highscores: 11
GPS has an error range of 6 feet. Within that 6 feet might be a drastic change(cliff)


The resolution matters for the same reson that the GPS wont work. it won't provide enough of an in-depth z value.


Top
 Profile  
 
 Post subject:
New postPosted: Mon Apr 21, 2008 9:59 am 
Average

Joined: Fri Mar 14, 2008 8:12 am
Posts: 435
well it depends if you put like 30 distance measuring lasers to look for drops and stuff, like the mars rovers, you wouldn't need a perfectly accurate map...

_________________
"ease the trigger" does that work for games too?


:twisted:


Top
 Profile  
 
 Post subject:
New postPosted: Mon Apr 21, 2008 3:15 pm 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 648
Highscores: 11
Perfect......No
High Persision....Yes


And 30 satilites won't cut it because how many satilites do you think GPS has at any given time?


Top
 Profile  
 
 Post subject:
New postPosted: Fri Apr 25, 2008 4:34 pm 
Average

Joined: Fri Mar 14, 2008 8:12 am
Posts: 435
Ashkenaz wrote:
30 distance measuring lasers


since when did i say satellites?

im saying differently placed lasers that would check for distance, when there is a spike in the distance it would know that there is a drop ahead, and so on. they do it to measure tree height so why not modify it to look for drops?
Also the mars rover used something similar to what i mean.

i miss spoke my point when i said gps, what I meant was just a basic map with height data...

_________________
"ease the trigger" does that work for games too?


:twisted:


Top
 Profile  
 
 Post subject:
New postPosted: Sat Apr 26, 2008 10:20 am 
Site Admin

Joined: Fri Feb 29, 2008 5:38 pm
Posts: 648
Highscores: 11
Satilites would be better because then you can cover more area with one laser than on the ground. For tree hight they take a protracter to mesure the angle from the observeer to the tree, mesure the distance and then use triginometry to get the hight. The mars rover was remote controled. The map would still have to be pretty precise still.


Top
 Profile  
 
 Post subject:
New postPosted: Mon Apr 28, 2008 7:28 am 
Average
User avatar

Joined: Sat Mar 15, 2008 1:55 pm
Posts: 218
Location: Earth, usually.
So which of us is building a rover?

_________________
When there's nothing left to lose, you win.

- Crush40


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 2   [ 38 posts ]
Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron