yes, send me the obj, please offline
thx
Fabrice
On Mar 9, 2010, at 5:06 PM, Stefan wrote:
> Hello Fabrice,
> sorry,my fault - the cube is not the problem - it's just an additional
> object in my scene.
>
> There's one part missing from the desk in the background (the part in
> the middle).
>
> I have created it in 3ds Max, exported as .obj and then opened it in
> Prefab via drag and drop.
> Applied textures and light in Prefab and exported it as both, an
> Away3D AS3 class and a WaveFront obj.
>
> I can load the generated obj back into Prefab and all textures look
> fine. This works with "Import 3D model" and with drag&drop. Have not
> tried it via connection - still having some problems establishing the
> connection - but that's another subject.
>
> When I import the generated class, this one object is missing.
>
> Followed your advice I did some traces and another addChild() - all
> the names are set as I named them in Prefab. But still this mesh is
> missing.
>
> // setup room
> roomparts = room.meshes;
> for(x=0; x<roomparts.length; x++) {
> trace(roomparts[x].name);
> if(roomparts[x].name == 'rez_lights') {
> roomparts[x].bothsides = true;
> View.scene.addChild(roomparts[x]);
> trace("ADDED AGAIN...Name: "+roomparts[x].name);
> }
> }
>
> outputs the following:
> Floor
> Wall1
> Wall2
> rez_front
> rez_lights
> ADDED AGAIN...Name: rez_lights
> rez_top
>
> (where "rez_lights" is the missing mesh)
>
> Any idea? Do you want me to send you the class to have I look?
>
> Regards,
> Stefan
>
>
>
>
> On 9 Mrz., 15:35, Fabrice3D <[email protected]> wrote:
>> count in prefab the count of models
>>
>> and try add like this in away just to make sure...
>>
>> var holder:myClass = new myClass
>>
>> scene.addChild(holder.meshes[0]);
>> trace(holder.meshes[0].name);
>> scene.addChild(holder.meshes[1]);
>> trace(holder.meshes[1].name);
>> scene.addChild(holder.meshes[2]);
>> trace(holder.meshes[2].name);
>>
>> etc...
>>
>> how was the cube loaded in Prefab?
>> was it part of a file, was it added via load, drop or via connection?
>> its important to me, if there is a bug
>>
>> being right now in a major update, I wanna kill as much bugs as I can.
>>
>> also if you select the cube and export with option "selected object only"
>> does it shows up? and finally if it was loaded via connection, set bothsides
>> = true to it..
>>
>> fabrice
>>
>> On Mar 9, 2010, at 3:07 PM, Stefan wrote:
>>
>>> Hello guys,
>>> after exporting the AS3 class there is one object missing in my scene.
>>
>>> In Prefab3D it looks like this:
>>> http://away3d-dev.googlegroups.com/web/screenshot_room01.jpg
>>
>>> And this is how it looks in the scene:
>>> http://away3d-dev.googlegroups.com/web/screenshot_room02.jpg
>>
>>> There was no error message when compiling/starting the swf (e.g. I did
>>> not have to call 911...)
>>> I have tried changing the exported class and applied some of the
>>> "working" materials to the "missing" object without success. On the
>>> other hand, the material applied to the missing object can be applied
>>> to other objects on shows up there.
>>
>>> Is there a chance to get this corrected or do I have to load the model
>>> (as this seems to work in Prefab)?
>>
>>> Thanks in advance,
>>> Stefan