These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

addModel fails intermittently

geojunkie
geojunkie's picture
Registered: Mar 7 2010
Posts: 7

I am trying to dynamically add to an existing model using the 3D Javascript API function addModel. I then attempt to get a reference to the item just added using the call scene.meshes.getByIndex(nodeIndex) where nodeIndex is the number of meshes before the add (obtained using scene.meshes.count before the addModel call). This usually returns a valid reference to the node that I then see in the 3DPDF view and in the model tree. The problem is that on some machines (particularly VM's) this is not always the case sometimes addModel adds to the meshes list (thus increasing the count) and sometimes it does not. On the machines where it works it appears to always work, on the others it appears to almost always fail.

Has anyone seen this type of behavior from the addModel function? Do you have any idea of how to get around it? Any suggestions would be greatly appreciated.

Thanks

My Product Information:
Acrobat 3D 9.3.1, Windows
UVSAR
UVSAR's picture
Expert
Registered: Oct 29 2008
Posts: 1357
Nope, but I'm not surprised - the 3D engine is quite fragile in places. The "almost" always is a bit strange though, as it suggests it's a dynamic issue (possibly memory allocations are failing). Suggest you report it to Adobe as a bug, but they'll want to know as much about the install/platform/drivers/hardware as possible and as they may not be able to replicate it without matching your exact setup, you may not get much back.
BrendanEllis
BrendanEllis's picture
Registered: Mar 30 2010
Posts: 7
just like avatar, like it!

“Don't just dream of success, work hard for it”
Calgary corporate training | Calgary management training