BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

.FormLC/RC model deformartion

4 posters

Go down

.FormLC/RC model deformartion Empty .FormLC/RC model deformartion

Post by 1969 St. Louis R-40M Mon Feb 27, 2023 8:21 am

This has been an issue for a long time that I tried to work my way around with .FREEOBJs and other methods, but I'm starting to need it.

So everyone knows what FormLC/RC is. It's a piece of platform that can stretch to a specified track. This makes placing platforms easier and is also very useful for platforms that vary in width.
But often, models get completely deformed in awkward shapes instead of simply stretching, resulting in this: (Here, I'm using FormLC/RC for the white concrete supports for the platforms that are already coded as .FREEOBJs)

.FormLC/RC model deformartion R9bJKMz

The vertex codings are:

LEFT:
vertex -2.5,0.9,-0.15
vertex -1.6,0.9,-0.15
vertex -1.6,-0.25,-0.15
vertex -2.5,-0.25,-0.15
face 0,1,2,3

RIGHT:
vertex 1.6,0.9,-0.15
vertex 2.5,0.9,-0.15
vertex 2.5,-0.25,-0.15
vertex 1.6,-0.25,-0.15
face 0,1,2,3

Another example, however it is fine with FormLC:

.FormLC/RC model deformartion LhO0pBA
.FormLC/RC model deformartion DZUl7eA

The vertex codings in this case are:

RIGHT:
Vertex  6.15, 1.1, 25
Vertex  6.15, 1.1, 0
Vertex  2.85, 1.1, 0
Vertex  2.85, 1.1, 25
Face 0,1,2,3

LEFT:(Fine)
Vertex  -6.15, 1.1, 0
Vertex  -6.15, 1.1, 25
Vertex  -2.85, 1.1, 25
Vertex  -2.85, 1.1, 0
Face 0,1,2,3

Maybe there's no issue with the command itself, but in the way it is modeled? If so, what would be the proper vertex coding that would allow the model to stretch correctly? Thanks!
1969 St. Louis R-40M
1969 St. Louis R-40M

Posts : 33
Join date : 2020-02-07

Midnight Express Ginga81, SP1900 and Rakago like this post

Back to top Go down

.FormLC/RC model deformartion Empty Re: .FormLC/RC model deformartion

Post by leezer3 Tue Mar 07, 2023 8:16 pm

So, the glitch is caused by your vertex ordering.
Unfortunately, the FormCR / FormCL stuff is a BVE2 relic, and isn't especially reliable. (As there's no way to build a dynamic transform matrix of this type)

Any part of a deformable objects should be made up of upto 8 verticies, following one of the following clockwise windings:
TopLeft,BottomLeft,BottomRight,TopRight
BottomRight,TopRight,TopLeft,BottomLeft


(This refers to when looking at the object straight on)


I'll do some playing with this and see if I can sort it with vertex sorting, but I'm somewhat wary of that glitching out in more interesting ways....

leezer3

Posts : 1977
Join date : 2011-08-23

http://www.bvecornwall.co.uk

SP1900 and 1969 St. Louis R-40M like this post

Back to top Go down

.FormLC/RC model deformartion Empty Re: .FormLC/RC model deformartion

Post by Leo0 Thu Jul 13, 2023 9:46 pm

1969 St. Louis R-40M wrote:This has been an issue for a long time that I tried to work my way around with .FREEOBJs and other methods, but I'm starting to need it.

So everyone knows what FormLC/RC is. It's a piece of platform that can stretch to a specified track. This makes placing platforms easier and is also very useful for platforms that vary in width.
But often, models get completely deformed in awkward shapes instead of simply stretching, resulting in this: (Here, I'm using FormLC/RC for the white concrete supports for the platforms that are already coded as .FREEOBJs)

.FormLC/RC model deformartion R9bJKMz

The vertex codings are:

LEFT:
vertex -2.5,0.9,-0.15
vertex -1.6,0.9,-0.15
vertex -1.6,-0.25,-0.15
vertex -2.5,-0.25,-0.15
face 0,1,2,3

RIGHT:
vertex 1.6,0.9,-0.15
vertex 2.5,0.9,-0.15
vertex 2.5,-0.25,-0.15
vertex 1.6,-0.25,-0.15
face 0,1,2,3

Another example, however it is fine with FormLC:

.FormLC/RC model deformartion LhO0pBA
.FormLC/RC model deformartion DZUl7eA

The vertex codings in this case are:

RIGHT:
Vertex  6.15, 1.1, 25
Vertex  6.15, 1.1, 0
Vertex  2.85, 1.1, 0
Vertex  2.85, 1.1, 25
Face 0,1,2,3

LEFT:(Fine)
Vertex  -6.15, 1.1, 0
Vertex  -6.15, 1.1, 25
Vertex  -2.85, 1.1, 25
Vertex  -2.85, 1.1, 0
Face 0,1,2,3

Maybe there's no issue with the command itself, but in the way it is modeled? If so, what would be the proper vertex coding that would allow the model to stretch correctly? Thanks!

Leo0

Posts : 1
Join date : 2023-07-13

Back to top Go down

.FormLC/RC model deformartion Empty Re: .FormLC/RC model deformartion

Post by Northern Line Sat Jul 15, 2023 3:24 pm

Leo0 wrote:
1969 St. Louis R-40M wrote:This has been an issue for a long time that I tried to work my way around with .FREEOBJs and other methods, but I'm starting to need it.

So everyone knows what FormLC/RC is. It's a piece of platform that can stretch to a specified track. This makes placing platforms easier and is also very useful for platforms that vary in width.
But often, models get completely deformed in awkward shapes instead of simply stretching, resulting in this: (Here, I'm using FormLC/RC for the white concrete supports for the platforms that are already coded as .FREEOBJs)

.FormLC/RC model deformartion R9bJKMz

The vertex codings are:

LEFT:
vertex -2.5,0.9,-0.15
vertex -1.6,0.9,-0.15
vertex -1.6,-0.25,-0.15
vertex -2.5,-0.25,-0.15
face 0,1,2,3

RIGHT:
vertex 1.6,0.9,-0.15
vertex 2.5,0.9,-0.15
vertex 2.5,-0.25,-0.15
vertex 1.6,-0.25,-0.15
face 0,1,2,3

Another example, however it is fine with FormLC:

.FormLC/RC model deformartion LhO0pBA
.FormLC/RC model deformartion DZUl7eA

The vertex codings in this case are:

RIGHT:
Vertex  6.15, 1.1, 25
Vertex  6.15, 1.1, 0
Vertex  2.85, 1.1, 0
Vertex  2.85, 1.1, 25
Face 0,1,2,3

LEFT:(Fine)
Vertex  -6.15, 1.1, 0
Vertex  -6.15, 1.1, 25
Vertex  -2.85, 1.1, 25
Vertex  -2.85, 1.1, 0
Face 0,1,2,3

Maybe there's no issue with the command itself, but in the way it is modeled? If so, what would be the proper vertex coding that would allow the model to stretch correctly? Thanks!

Was you meant to intentionally write something in response to this quote on the thread?
Northern Line
Northern Line

Posts : 329
Join date : 2011-07-12
Age : 31
Location : London, UK

Back to top Go down

.FormLC/RC model deformartion Empty Re: .FormLC/RC model deformartion

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum