[Blend2cs-user] scaling issues
Frank W. Samuelson
Thu, 31 Jul 2003 19:27:57 -0600 (MDT)
Ahh. I get it. You're using the library (-o) option.
The scalings and rotations that are performed on an object in Blender
(rather than on the vertices) are output when the when the object
is actually created in a level. If you don't use the -o option,
you'll see the <scale x="0.284654" y="0.284654" z="0.284654"/>
statement where the meshobj's are declared at the end of the output file.
Basically, we do this because different objects can use the same
mesh data, but may have different scalings, rotations, and translations.
Thus the mesh factories only contain the mesh vertex data, not
scalings, rotations, and translations thereof. The library output of the
program is just the mesh factories.
If you want the scaling in the mesh factory, you can apply the
scaling to the vertices in Blender. That is, go into edit mode (tab),
select all vertices (a), hit the s button, and scale.
Or you can rotate and scale from within your CS program. You have to
define the translations there anyway.
On Thu, 31 Jul 2003, Bjorn Hansen wrote:
> I'm still getting both objects the same size.
> On Wednesday 30 July 2003 07:34, you wrote:
> > I'm slow but steady. I recently tried out your file.
> > It seems to work for me. Are you still having problems.
> > You may want to grab the latest snapshot. There are bug fixes.
> > On Sat, 12 Jul 2003, Bjorn Hansen wrote:
> > > this should be it.
> > >
> > > On Friday 11 July 2003 23:33, you wrote:
> > > > Hi!
> > > >
> > > > This is strange. I thought blend2cs cares for all transformations that
> > > > apply to an object. There are essentially two sets of rotation,
> > > > translation and scale data in the file if I remember that correctly.
> > > > There's one in the mesh node and one in the object node. Seems like one
> > > > of the scales. is missed. This looks like a bug in blend2cs
> > > >
> > > > Could you send us the file so we can look into this matter? Thank you.
> > > >
> > > > Regards,
> > > > Gregor
> > > >
> > > > Am Samstag, 12. Juli 2003 03:09 schrieb Bjorn Hansen:
> > > > > ok, so i got my model to convert into a libray file, wher I can load
> > > > > it from. The only problem is, it's too big. So I scaled it down in
> > > > > blender, converted, and it came out exactly the same size! I tride a
> > > > > couple more times, shrinking or growing it, did't seem to matter. So
> > > > > I made a duplicate of the model in the same file, and shrunk that so
> > > > > that it was about half the size of the origional. then tried
> > > > > converting again. Both objects came out exactly the same size. So
> > > > > what's the deal here?
> > > > >
> > > > > Bjorn
> Blend2cs-user mailing list