Resizing meshes

what need to be changed in a mesh txt file if I want to resize it?

Hey fellow modders, I am back from the dead, well sorta back.

So, this time I am not gona ask a stupid question or bring up a mod which gets paused, but a tool! Well I barely started on it yet xD, but I have an idea of how it should be done. The tool is basicly a Newboerg resize tool mark II.

Before I can start to actually work on this I have to know exsactly what in a .mesh file needs to be changed in order to resize the model. The meshpoints are easy since it is just a single point, but I am not sure what the other "things" are and what needs to be changed inside the file.

The tool is planned to be able to expand in one selected direction instead of all, implement new mesh points, change the location of an excisting mesh point, show a 3d model (my current challange) with the location of the mesh points and their orientation, rotate the model or a mesh point and save the current progress.

I am using a program named MATLAB (also the only thing I can program within xD) which I then can use to make the program and then export it as an .exe file. This makes it possible for me to make these functions, but also means that I have to include a file named MATLAB Compiler Runtime which is used to support the .exe and is 170 mb. large so the download size is gona be kinda big for this kind of program.

7,275 views 7 replies
Reply #1 Top

From what I can see its only the BoundingRadius, MaxBoundingExtents, MinBoundingExtents and all the point and vertex x,y,z position that is altered by a multiplier value in the re-size tool.

Making a tool to change either the X or Y, Z only would be a handy thing at times. Being able to show a 3d model in mesh format would be awesome, Perhaps a plug-in for an existing Modeling program might be the way to go. Though I have no idea about programing, or legal requirements that may be needed.

Best of luck with it.

Reply #2 Top

Thx :D

Because of my really limited knowledge of programming (as mentioned I am even making it in another program) it is not possible for me to make it for another program.

currently it is capable to load the orientation and position of mesh points from a .mesh file and I figured out how to make the 3d model, now I just need to know how to get the x y z coordinates for the faces "angles" and understand how to make an ui (never tried xD).

2 triangles done now there is only 17343  left to do

EDIT: I found something ineresting after scrolling through a mesh file. It seems like there are 2 things vertexes and triangles. The vertexes are the polygons (thus only a single position), and the triangles tell which polygons should be connected in order to create a face. So when changing the dimensions it is just moving the position of the polygons and making the 3d model is using a comp of these 2. Seems like it will be a little complicated, but not impossible.

Reply #3 Top

I always thought the vertexes where each individual point at the corners of polygons, marking the end and joining of polygon edges. And the triangles where the polygons themselves. I think, but am not 100% sure all polygons that are  quads are converted to triangles when they are converted from xsi. to mesh.

Reply #4 Top

... I think this proves my limited knowledge within modelling. Just to be sure isn't a polygon just a single point which when connected with others creates a 2d figure, as a triangle, which is a face or am I totally messing around with the different terms?

Reply #5 Top

No, a polygon by definition is any 2D shape with any amount of sides. A triangle being a polygon with the minimum amount of sides. Vertexes are points that mark the end and joining of the polygon edges(or sides).

Reply #6 Top

Ah, thx for clarifying it.

Here is a small update for thoose who should be interested:

This is how the tool currently looks. It can import data from a specified .mesh file (file needs to be in the same folder) and make a 3d model from this data. The models however seems to have some problems with some of the vertexes.

UPDATE: Finally got the 3d part to work and it is even fast :D. Now to implement the features.

Reply #7 Top

WB Grunt

Here is an old VB executable that I still use for fast mesh re-sizing. Convert your meshes into text format first and then off it goes.

http://sins.imperial.cc/show.cgi?id=sins&a=view&f=3&t=10

The original coder has a post somewhere on this forum - maybe worth hitting him up...