|
|
BrianZ111 |
General Member |
|
United States of America |
|
Joined: 1/6/2011 |
Posts: 9 |
|
|
|
Posted: Thursday, January 6, 2011 at
2:42:56 PM |
IP Logged |
|
Hi, I'm wondering if it's possible to do the opposite of what Terrain Assist does. That is I want to export the elevation data from architect files out to DEM/DXF or anything else like that. The primary reason for this is so I can then import them into CPG to convert some of my courses to that game.
I know it's not currently possible to do this with Terrain Assist but I'm wondering if it's even technically possible at all. I figure the author of Terrain Assist is my best bet at finding out since he must know something about the structure of the architect files. So if anyone knows where I can contact him or has any other thoughts on the subject, let me know.
Thanks Brian |
|
|
|
|
|
|
|
TerrainAssis |
General Member |
|
United States of America |
|
Joined: 7/24/2009 |
Posts: 11 |
|
|
|
Posted: Thursday, January 6, 2011 at
7:00:14 PM |
IP Logged |
|
They say it's gonna be a long cold winter here in NY this year so I guess I've got some time ahead of me. What format does the data need to be in to work with CPG? And before you get too excited - if I do something, I'm not going to write a parser that will sort out all the shapes. You'll have to pick them all up so it's just the bare plot again. |
|
|
|
|
|
|
|
BrianZ111 |
General Member |
|
United States of America |
|
Joined: 1/6/2011 |
Posts: 9 |
|
|
|
Posted: Friday, January 7, 2011 at
4:53:33 PM |
IP Logged |
|
Hey, thanks for the response. I'm happy to get anything really, it was a total shot in the dark on my part, didn't even know if I'd be able to reach you. I'm not worried about shapes anyway, those are pretty easy to do over. What I'd really like is something with high enough resolution right down to green contours so I don't have to redo any elevations. I don't know if that's possible for export but there's no limit I'm aware of on resolution importing into CPG.
CPG takes DXF files. As for the specific format of the DXF file I'm not 100% sure but I could probably ask and find out. I do know that I can export a terrain matrix in 3DEM just like you would for Terrain Assist, then load that in a program called AccuTrans 3D to create the DXF file. I have a tutorial on this with the settings used to save the DXF file in AccuTrans 3D if it helps any: http://www.zagerdesign.com/golf_design/tutorials/cpg/mapping/accutrans_3d.htm
Thanks a lot for the help! Brian |
|
|
|
|
|
|
|
BrianZ111 |
General Member |
|
United States of America |
|
Joined: 1/6/2011 |
Posts: 9 |
|
|
|
Posted: Friday, January 7, 2011 at
5:20:53 PM |
IP Logged |
|
I could also send you a DXF file that loads in CPG if that would help.
Brian |
|
|
|
|
|
|
|
TerrainAssis |
General Member |
|
United States of America |
|
Joined: 7/24/2009 |
Posts: 11 |
|
|
|
Posted: Friday, January 7, 2011 at
7:06:14 PM |
IP Logged |
|
OK , post a zip and I'll take a look. |
|
|
|
|
|
|
|
BrianZ111 |
General Member |
|
United States of America |
|
Joined: 1/6/2011 |
Posts: 9 |
|
|
|
Posted: Saturday, January 8, 2011 at
1:53:20 AM |
IP Logged |
|
OK here's a DXF I made based off 10 meter USGS Seamless data: http://www.zagerdesign.com/temp/pspgc.zip
If there's any way I can help just let me know. Thanks. |
|
|
|
|
|
|
|
Danut Golf |
General Member |
|
United States of America |
|
Joined: 11/25/2004 |
B-Day: 6/2/1955 (69) |
Posts: 346 |
|
|
|
Posted: Saturday, January 8, 2011 at
12:23:34 PM |
IP Logged |
|
Chet, one of the nice things about CPG is that you can use 3 meter dems. I have a 3 meter dxf. I can post it to my site for you if it will help. Let me know and I will send you a PM with the link.
Steve |
|
|
Danut Golf Signature |
|
Dont look back - All youll ever get is the dust from the steps before |
|
|
|
|
|
|
|
TerrainAssis |
General Member |
|
United States of America |
|
Joined: 7/24/2009 |
Posts: 11 |
|
|
|
Posted: Saturday, January 8, 2011 at
2:47:37 PM |
IP Logged |
|
Well, in taking a closer look at the problem, I don't think I want to take on any new coding challenges - at least not along these lines. The CA just does not store data in a very user friendly way.
I did, however, come across some other software that might help out some. Try this out - I'll admit I didn't try it for a full course plot - so there might be some memory limitations (these can get to be big files). I also think the weak link is going to be sharp edges on the plot. I'm not sure they will be faithfully reproduced using this method. Hopefully CPG has a good method for defeating "jaggies" and it will be of some help. Good luck. |
|
|
|
|
|
|
|
|
Danut Golf |
General Member |
|
United States of America |
|
Joined: 11/25/2004 |
B-Day: 6/2/1955 (69) |
Posts: 346 |
|
|
|
Posted: Saturday, January 8, 2011 at
3:42:17 PM |
IP Logged |
|
Thanks Chet! Using dem data and accutrans is how to make a dxf file for use with CPG. However, the additional program "may" be able to help smooth out the data, as you suggest. Hopefully someone from CPG will see this thread and take a look!
Now if you could only add 3 meter dem data availability for TA I would be in heaven. In heaven, I tell ya!
Steve |
|
|
Danut Golf Signature |
|
Dont look back - All youll ever get is the dust from the steps before |
|
|
|
|
|
|
|
TerrainAssis |
General Member |
|
United States of America |
|
Joined: 7/24/2009 |
Posts: 11 |
|
|
|
Posted: Saturday, January 8, 2011 at
4:21:46 PM |
IP Logged |
|
I'm sure Brian will test it out - this was his thread after all.
Unfortunately the math doesn't support you and the 3m DEMS. You need to remember that the CA goes all the way back to PGA '99 and it was based on directx technology. The reason plots start to experience missing terrain when the point count exceeds 65k is because that is a directx limitation. You just can't exceed hex value FFFF for a single model. Each shape in the CA represents a single model.
The max plot size in the CA is 3600 x 3600 meters. If you had a 3m DEM and wanted the max size plot then you would need 1201 x 1201 or 1442401 points just on your starting base texture. Not gonna happen.
|
|
|
|
|
|
|
|
BrianZ111 |
General Member |
|
United States of America |
|
Joined: 1/6/2011 |
Posts: 9 |
|
|
|
Posted: Saturday, January 8, 2011 at
4:22:29 PM |
IP Logged |
|
Just tried out what you posted and it worked pretty well! That little Ctrl+Alt+W trick is pretty sweet! I wonder what else is in there we don't know about.
It wasn't quite able to pick up things as detailed as bunker lips but that could just be a limitation of CPG's import. There were a few sort of grid line looking spots in the more steep terrain areas but nothing a quick light smooth couldn't take care of. Green contours did seem to come though nicely, at least general green breaks. The course I imported didn't have very complex greens and wasn't completely finished so I will have to try it on a course with more complex green sites before I judge that.
The only major problem I have is the file came into CPG way over scale, about 5x what it should be. You can adjust this in CPG before it imports but it's hard to fine tune. As a rough test I just set it to .2 which was a little small. I'll probably have to figure out a way to get it more exact outside CPG. Overall it worked really well though and I think you've got me to the point where I can figure it out the rest of the way myself. Thanks a lot for the help! I'll let them know about this thread at the CPG community. |
|
|
|
|
|
|
|
BrianZ111 |
General Member |
|
United States of America |
|
Joined: 1/6/2011 |
Posts: 9 |
|
|
|
Posted: Sunday, January 9, 2011 at
12:44:27 AM |
IP Logged |
|
I think I solved the scaling problem. Turns out it's a feet vs. meters issue. The exported file units seem to be feet while CPG assumes meters when importing. I solved it by scaling 0.3048 as part of the save options in AccuTrans3D. Now the DXF file comes in correctly when scale is set to 1.0 in CPG as far as I can tell. |
|
|
|
|
|
|
|
Danut Golf |
General Member |
|
United States of America |
|
Joined: 11/25/2004 |
B-Day: 6/2/1955 (69) |
Posts: 346 |
|
|
|
Posted: Sunday, January 9, 2011 at
4:43:46 AM |
IP Logged |
|
In CPG under game options you have the choice to choose Imperial or Metric. Just choose Imperial before importing the dxf file. |
|
|
Danut Golf Signature |
|
Dont look back - All youll ever get is the dust from the steps before |
|
|
|
|
|
|
|
BrianZ111 |
General Member |
|
United States of America |
|
Joined: 1/6/2011 |
Posts: 9 |
|
|
|
Posted: Sunday, January 9, 2011 at
11:39:32 AM |
IP Logged |
|
Doesn't work, I was already on imperial. I do remember having to switch to meters for DEMs in past versions of the game. I don't know they changed it to meters no matter what now or if it's just a bug but the DXF comes in at meters no matter what now. |
|
|
|
|
|
|
|
BrianZ111 |
General Member |
|
United States of America |
|
Joined: 1/6/2011 |
Posts: 9 |
|
|
|
Posted: Sunday, January 9, 2011 at
9:03:53 PM |
IP Logged |
|
Brian Silvernail wanted me to pass along his thanks to you for this Chet. The thread I started for this over there is at http://www.24-hrgaming.com/forum/topic/13851-elevation-import-from-tiger-woodspga-2000-courses/. |
|
|
|
|
|
|
|
BrianZ111 |
General Member |
|
United States of America |
|
Joined: 1/6/2011 |
Posts: 9 |
|
|
|
Posted: Tuesday, January 11, 2011 at
12:47:14 AM |
IP Logged |
|
I gave it a real acid test today. I did a course with 1,721 land shapes and 753,890 points and it took MeshLab almost 6 hours to create the faces. I have a Core i7 920 CPU but I think the program is single threaded and was only able to use one CPU. It produced a resulting DXF file of 300 MB. The good news is everything looks fine on the final import.
The previous courses I tested on were a 9 holer and an incomplete 18 hole course and only had around 200,000 points. These only took about 10 min. to draw the faces. So I expected it to be longer but not that long!
Just about every land shape on this course had 5 to 10 more shapes dropped around it for blending so that there were no hard texture edges. Dropping all those shapes added a lot of detail to the mesh so I don't know if it was that or just the overall higher point count.
I'm just happy it worked though. Thought I'd give a heads up that it might take a long time if you've got a lot of detail. |
|
|
|
|
|
|
|
dorse72 |
General Member |
|
United States of America |
|
Joined: 7/28/2011 |
Posts: 1 |
|
|
|
Posted: Thursday, July 28, 2011 at
2:35:46 AM |
IP Logged |
|
edited by: dorse72 on
Thursday, July 28, 2011 at
2:37:00 AM
|
|
could I get in on this too gentleman? Hello, Im new here and am a designer for the Links community. Im not good w/all this, but will try to keep up. Ive downloaded the programs you mentioned earlier and am ready to go. I just dont know how to get started - LOL. Im looking for xyz data, specifically DEMs, 24K format. I can convert them to the right DEM format, I just need help getting the data extracted. thanks much!
Is there a chance someone could email me and chat? I would very much appreciate it.
thanks so much - my email is dorse72@gmail.com
|
|
|
|
|
|
|