Go Back   AC3D Forums > Technical > AC3D Developers
Register FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Display Modes
Old 3rd August 2006, 12:55 PM   #1
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,565
Default Re: XYZ data into AC3D

Got the file. Due to the precision used in Create Mesh function, the best thing for this model is to size the whole model to 1x1x1 (SizeTo) and then do the Vertex->Create-2D-Mesh->Front. (you can try this in sections, otherwise, looking at 40,000 vertices will take a long time to complete)
Attached Images
 

Last edited by Andy; 3rd August 2006 at 01:40 PM.
Andy is offline   Reply With Quote
Old 3rd August 2006, 01:46 PM   #2
Mossie
Senior Member
Professional user
 
Mossie's Avatar
 
Join Date: Dec 2003
Location: UK
Posts: 369
Default Re: XYZ data into AC3D

OK, thanks for having a look. The file is just too big, even doing small sections doesn't work, but when I do a new model, make a mesh remove surface move vertises and then make a new surface, it does. Something wrong with the file format I think.
__________________
Regards, Gerry "Mossie" Mos
--------------------------------------------------------------------------
WW1 Aircraft Library
http://ww1-aircraft.info/

Mossie 3D CAD, "Prompt and Precise"
http://mossie3dcad.com/
Mossie is offline   Reply With Quote
Old 3rd August 2006, 02:22 PM   #3
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,565
Default Re: XYZ data into AC3D

I did it with the file you sent (see pic above).

I simply clicked on SizeTo (1x1x1) first.

The projection you select is important. In this case, I used Vertex->Create-2d-mesh->front.

Look the field plugin:

The first two numbers in the file are the x, y size of the grid.
this is followed by (x*y) heights in row order.

If you can get your data like this (all you really need ar the point heights and the size of the grid), You'll get a better mesh.
Andy is offline   Reply With Quote
Old 3rd August 2006, 02:40 PM   #4
Mossie
Senior Member
Professional user
 
Mossie's Avatar
 
Join Date: Dec 2003
Location: UK
Posts: 369
Default Re: XYZ data into AC3D

What field plugin are you refering to ?

Don't understand.
__________________
Regards, Gerry "Mossie" Mos
--------------------------------------------------------------------------
WW1 Aircraft Library
http://ww1-aircraft.info/

Mossie 3D CAD, "Prompt and Precise"
http://mossie3dcad.com/
Mossie is offline   Reply With Quote
Old 4th August 2006, 02:53 AM   #5
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,565
Default Re: XYZ data into AC3D

In AC3D, select menu Help->About-Plugins and select the Field Import Plugin from the list - this will tell you more.
Andy is offline   Reply With Quote
Old 4th August 2006, 05:01 AM   #6
Mossie
Senior Member
Professional user
 
Mossie's Avatar
 
Join Date: Dec 2003
Location: UK
Posts: 369
Default Re: XYZ data into AC3D

Ok, found that pf file format, I assume is:

grid x grid y
pos x pos y height z
pos x pos y height z

Or should it be
grid x grid y
height z
height z

If the first then I've a new error
"myalloc 8 failed
unable to alloc 8 bytes"

I think this is a file error, thoughts please.
__________________
Regards, Gerry "Mossie" Mos
--------------------------------------------------------------------------
WW1 Aircraft Library
http://ww1-aircraft.info/

Mossie 3D CAD, "Prompt and Precise"
http://mossie3dcad.com/
Mossie is offline   Reply With Quote
Old 4th August 2006, 05:27 AM   #7
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,565
Default Re: XYZ data into AC3D

It should be:

grid_x grid_y
height_z
height_z...

e.g. I made this up:

3 3
1
2
2
3
1
2
3
4
2

This is a 3x3 grid of points.
Andy is offline   Reply With Quote
Old 22nd August 2006, 09:18 PM   #8
Stiglr
Senior Member
Professional user
 
Stiglr's Avatar
 
Join Date: Feb 2004
Location: Portland, OR
Posts: 604
Default Re: XYZ data into AC3D

Mossie, what cool weirdness are you up to with that terrain chunk...?

Do tell.

__________________
Flight Sim Project Contributor

My Gaming Rig:
i5 2500K Quad-Core CPU at 3.3GHz
MSI P67A-C43 mobo
4GB of PC12800 DDR3 memory
Windows 7
1GB Galaxy GeForce GTX550 Ti video card GeForce 270.61 drivers (4/2011)
Cougar joystick/throttle combo
CH Pedals
Stiglr is offline   Reply With Quote
Old 23rd August 2006, 03:10 PM   #9
Mossie
Senior Member
Professional user
 
Mossie's Avatar
 
Join Date: Dec 2003
Location: UK
Posts: 369
Default Re: XYZ data into AC3D

The plan is to be able to build towns and villages with the correct locations and heights for all buildings. Also for bridges and such. Doing this outside the terrain, and testing in game is too long winded. Once the models are built and placed the terrain is discarded.
__________________
Regards, Gerry "Mossie" Mos
--------------------------------------------------------------------------
WW1 Aircraft Library
http://ww1-aircraft.info/

Mossie 3D CAD, "Prompt and Precise"
http://mossie3dcad.com/
Mossie is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 05:02 AM.


AC3D Forum
(C) Inivis Limited 2020