Thanks Rob, that was the problem! I'll check out that demo, somehow I missed that one.
--Casey On Oct 10, 5:13 pm, Rob Bateman <[email protected]> wrote: > Hey Casey > > the problem looks like it is caused by the backfaces not being culled in > your collada obejct as it is being rendered to screen. this is controlled by > a property called bothsides in Mesh, which defaults to false but could be > being set to true by the settings in the collada file (something the > papervision collada importer may jave been ignoring) > > if possible, i would check the original 3d file to see if geometry or > materials were set to render double-sided. if that isn't possible, you can > check for a tag in the collada file itself called double_sided. if you find > it, and it is set to 1 like this: > > <extra> > <technique profile="GOOGLEEARTH"> > <double_sided>1</double_sided> > </technique> > </extra> > > reset it to 0 and try re-loading the file into lite. > > for an example of how to change a material once a file once loaded, try > looking at the Basic_LoadModel demo. the file in question is a 3ds file, but > the technique laid out there is identical for the collada importer. > > hth! > > Rob > > > > > > On Sat, Oct 10, 2009 at 1:04 AM, Casey <[email protected]> wrote: > > > I'm hoping to make the switch from Papervision to Away3D Lite, but I'm > > having a few issues. I'd really appreciate any insight into this > > stuff! > > > I've been working on a project in Papervision which loads Collada > > files and then swaps their textures after they have loaded. The models > > render fine in Papervision, but when I import them via the Collada > > example project for A3D-L, the mesh faces seem to compete with each > > other, causing them to disappear and reappear depending on the > > rotation of the model in relation to the camera. Here's an example > > screenshot: > > >http://klebba.net/misc/clipping.jpg > > > You can see the diagonal split in a material, as well as some other > > strangeness on a rounded edge at the top (this edge shouldn't even be > > visible at this angle, but the large triangle on the front-face is > > invisible or something). These meshes were exported via 3DSMax by > > someone else. Is there a setting or something that needs to be checked > > that is unique to Away3D? As I said, this model works fine in > > Papervision. We tried exporting a regular rectangle and experienced > > the same issue. A model exported from Sketchup has no issues, and the > > demo chameleon is fine too. > > > Additionally, I'm not having any luck changing the material of the > > model (after load has completed). Is there any example code indicating > > how this is done? > > > Thanks in advance, > > > Casey > > -- > Rob Bateman > Flash Development & Consultancy > > [email protected]
