Some 3ds model problem.

4 views
Skip to first unread message

Valts Darznieks

unread,
Dec 23, 2009, 7:40:41 AM12/23/09
to Away3D.dev
Hello.
I made a house in GoogleSketchup imported in my flash, i can do
anything with it and it works relay grate.
but now I made another abject (Volcano) It`s little bit more complex
than house, now when I import it it shows relay huge and I cant scale
it, what could be the problem ?
Thank you !

Michael Iv

unread,
Dec 23, 2009, 7:48:00 AM12/23/09
to away3...@googlegroups.com
what is your code for scaling?
--
Michael Ivanov ,Programmer
Neurotech Solutions Ltd.
Flex|Flash |Air |Games|OS|
Tel-0526237969
explo...@gmail.com
sup...@neurotech.co.il

Fabrice3D

unread,
Dec 23, 2009, 7:54:19 AM12/23/09
to away3...@googlegroups.com
Why can't you scale it?
I mean, if you do apply a scale and get no errors, yet see no diffs, it's probably because you scale the wrong target...
or your scale factor is not enough, or making the object even bigger.

Fabrice

Valts Darznieks

unread,
Dec 23, 2009, 7:57:04 AM12/23/09
to Away3D.dev
load_3ds_module("volcano.3ds", matt);

private function load_3ds_module
(file:String,material:MaterialLibrary):void {
var max3ds_handl:Max3DS = new Max3DS();
max3ds_handl.material = material["wire"];
max3ds_handl.centerMeshes = true;
loader_cube.loaderSize = 5;
loader_cube.loadGeometry(file, max3ds_handl);
loader_cube.addOnSuccess(handle_stuff);
}
private function handle_stuff(event:Event):void {
var local_modd:ObjectContainer3D = new ObjectContainer3D;
local_modd = (loader_cube.handle as ObjectContainer3D)
local_modd.scale(0.5);
myScene.addChild(local_modd);
}

Michael Iv

unread,
Dec 23, 2009, 8:00:02 AM12/23/09
to away3...@googlegroups.com
   local_modd.scale(0.5); NOT THIS BUT --->  local_modd.scale=0.5

Valts Darznieks

unread,
Dec 23, 2009, 8:04:03 AM12/23/09
to Away3D.dev
I get this error when i try local_modd.scale=0.5
Main.as(235): col: 25 Error: Illegal assignment to function scale.

local_modd.scale(0.5); worked fine when i tried on different module.


On 23 dec., 15:00, Michael Iv <explomas...@gmail.com> wrote:
>     local_modd.scale(0.5); NOT THIS BUT --->  local_modd.scale=0.5
>

> On Wed, Dec 23, 2009 at 2:57 PM, Valts Darznieks <vdarzni...@gmail.com>wrote:
>
>
>
>
>
> > load_3ds_module("volcano.3ds", matt);
>
> >                private function load_3ds_module
> > (file:String,material:MaterialLibrary):void {
> >                                var max3ds_handl:Max3DS = new Max3DS();
> >                                max3ds_handl.material = material["wire"];
> >                                max3ds_handl.centerMeshes = true;
> >                                loader_cube.loaderSize = 5;
> >                                loader_cube.loadGeometry(file,
> > max3ds_handl);
> >                                loader_cube.addOnSuccess(handle_stuff);
> >                        }
> >                private function handle_stuff(event:Event):void {
> >                                var local_modd:ObjectContainer3D = new
> > ObjectContainer3D;
> >                                local_modd = (loader_cube.handle as
> > ObjectContainer3D)
> >                                local_modd.scale(0.5);
> >                                myScene.addChild(local_modd);
> >                        }
>
> --
> Michael Ivanov ,Programmer
> Neurotech Solutions Ltd.
> Flex|Flash |Air |Games|OS|
> Tel-0526237969

> explomas...@gmail.com
> supp...@neurotech.co.il

Michael Iv

unread,
Dec 23, 2009, 8:14:03 AM12/23/09
to away3...@googlegroups.com
sorry it must be scaleX=
scaleY=
scaleZ=

Joshua Granick

unread,
Dec 23, 2009, 1:58:02 PM12/23/09
to away3...@googlegroups.com
This sounds similar to a problem I was experiencing when I was using an MD2 model I created in Misfit Model 3D. Once I got it into Away3D I had trouble scaling or positioning it properly. However, I have a utility class that maps my keyboard into a bunch of camera controls. Once I enabled the controls and started moving around, I realized that it was actually scaling correctly, but that my model was huge. I had to set the scale to 5% or something before I could see it well.

Michael Iv

unread,
Dec 23, 2009, 2:08:13 PM12/23/09
to away3...@googlegroups.com
Yeah , I encountered this issue too . Therefore I usually use PreFab for my models Preview . There you can also get idea about scaling factors of your model

Joshua Granick

unread,
Dec 23, 2009, 2:58:19 PM12/23/09
to away3...@googlegroups.com
It's obviously prohibitively expensive, but things have been much better since I switched to Maya. If you use an open source Collada exporter and a single UV for texturing your model, it imports into Away3D very well. One unit in Maya maps to one pixel in Away3D, so it is really easy to make models to scale.
Reply all
Reply to author
Forward
0 new messages