Problem assigning SWF to cube1 in part2-scene.u3d


ref: dave merchants tutorial on using swf assigned surface on 3d cube inside pdf.

http://www.uvsar.com/go/flashmats/


part2-scene.u3d has cube1, surface on cube.

inside photoshop extended can see cube1 named.

inside acrobat x model tree shows "cube" not "cube1".

the swf file embedded in pdf.

the assignment not work see no swf on cube.

 

does have idea why?

 

part 1 of tutorial works fine.

in demo file object called 'cube'. material applied face called 'cube1' (there's cube2,cube3...cube6 well). model tree shows objects, not materials.

 

you can't collect reference material via object : scene.meshes.getbyname('cube').material doesn't work there 6 of them (in fact acrobat return cube2 because that's material on face 0 of mesh defined inside u3d file).

 

you need grab material using scene.materials.getbyname() , assign swf that; e.g.

 

var myflashmat = scene.materials.getbyname( 'cube1' );

var fmovie = new flashmovie( 'my-embedded.swf' );

myflashmat.useflashmovie( fmovie );



More discussions in Rich Media & 3D


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support