Started by cogeo, April 11, 2009, 02:54:33 PM
0 Members and 1 Guest are viewing this topic.
Quote from: jeronij on April 18, 2009, 05:31:20 AMI can send you the file, but it is a big piece, around 1.4MB compressed...
Quote from: cogeo on April 18, 2009, 03:04:41 AM@buddybud: I'm considering such operations too. For 20-Z/R models this is not possible though, because of the missing back faces. But it is possible to perform another kind of operation (let's call it "Reorientate"), namely renumbering the instance IDs (for example 0x-----400 would become 0x-----410, 0x-----410 would become 0x-----420 and so on). This way it is possible to effectively "rotate" such a model by multiples of 90°. But for 1-Z/R a full rotation (or flipping, or mirroring is possible). For 90°-multiple rotations using trig functions is not even required, and performing simple coordinates changes is the prefered way (for such rotations the sin and cos functions are always 0, 1, or -1). For example, rotating a model by 90° clockwise means just setting x = y and y = -x. Do you really need rotations that are not 90°-multiples? I can only consider 45° for network models, though I really doubt if diagonal models are just orthogonal models rotated by 45°, some adjustments (esp width) are still needed, I think. Also I'm not sure about textures and triangles, shouldn't just moving the vertices be enough?
Quote from: cogeo on April 20, 2009, 03:47:30 PM@sithlrd98: Making this isn't simple, it requires implementing another major feature, ie displaying the model. Even if this is finally done, I'm not sure if the library allows selecting the model. Take a look in both the reader's and DatGen's S3D View panes, they are identical aren't they? This is beacuse they both use the same library. And none allows selecting anything in the preview pane. And moving the model manually (dragging?) isn't actaully accurate, ie it would be almost centered, but not "mathematically". This is waht we are actually trying to define here (see also the reply to RippleJet below). Not to mention that the program has a different philosophy, ie select the model(s) and apply an operation in "batch mode" - unlike the reader, which works on a per-object basis. Btw do you think this operation should be allowed to be applied to more than one (selected) models? It's something quite rare, I think, and somewhat risky to my opinion.
Quote from: cogeo on April 20, 2009, 03:47:30 PMMoving the model is really easy to implement. It's basically very similar to scaling the model, as they both operate on the vertices alone. The only differences are the parameters dialog, and the modifications applied. But everyhting else (like applying the operation to the selected models, changing vertex coordinates only etc) is identical. That is the code is largely a copy-and-paste (plus some modifications) of the scaling operation. Consequently, this will be the first to be implemented after V1.00 is released. The other ones are more complicated, not so much actually, but quite different, and thus need more work.
Quote from: cogeoTake a look in both the reader's and DatGen's S3D View panes, they are identical aren't they? This is beacuse they both use the same library.
Page created in 0.064 seconds with 33 queries.