Page 1 of 1

Scaling imported models

PostPosted: 20 Oct 2011, 00:33
by charlie
How do you scale imported models? Can it be done via Lua?

The reason I ask:

garvek / Godhead {l Wrote}:I had a very stupid idea this night: if TheAncientGoat is there, do you know how to scale the imported models ? A line inside the Lua ? I think it *could* fix the black sphere issue and dramatically improve the rendering with Skybox.

Re: Scaling imported models

PostPosted: 20 Oct 2011, 14:10
by TheAncientGoat
You have to scale it in the blend source file, at least that's the only way I know how to do it.

Re: Scaling imported models

PostPosted: 20 Oct 2011, 14:32
by amuzen
You can scale objects with Object.edit_pose(). However, it requires the model to use animated shaders and doesn't actually scale the model data itself, just the bones of the object. Vertices of models can't really be scaled currently, though it wouldn't be hard to add a function to the scripting API that does it.