| Acrobat 3D Attach3DResource Plug-in
|
- Downloads:
-
- Acrobat 7.x Version:
- Attach3DResource.api (Windows only)
-
Acrobat 8.x Version:
- Attach3DResource.api (Windows only)
-
Legal Disclaimer:
- Use this software at your own risk. The author disavows any responsibility for any damage resulting from use of this software for any purpose whatsoever. This application is provided as-is for demonstrative purposes only. Moreover, if you agree to use this application to create content and offer for sale any device or system, you alone are responsible for ensuring that no patents, copyrights, or other applicable rights are being violated thereby. Download of this software constitutes acceptance of these terms.
-
-
Installation:
-
- Download the appropriate plug-in for your version of Acrobat
- Make sure Acrobat is not running
-
Copy "Attach3DResource.api" to the Acrobat "plug_ins" folder.
- Default location of plug-ins folder for Acrobat 7.x:
- C:\Program Files\Adobe\Acrobat 7.0\Acrobat\plug_ins\
- Default location of plug-ins folder for Acrobat 8.x:
- C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\
-
-
Usage:
-
- Launch Acrobat
- Open a file containing a 3D annotation
- Select the "3D Tool" (Menu item: Tools > Advanced > 3D Tool)
- Select the 3D annotation you want to attach a resource to by clicking it once
- Select the menu item: Advanced > 3D > Attach Resource to 3D Annotation
- Choose the 3D model file (.U3D format) or Image file (.PNG, .JPEG, .BMP, etc.) you want to add as a resource
- Click OK
-
-
Known Issues:
-
-
-
Sample:
- Download the sample files [here] and unzip the contents.
-
Open "blank.pdf".

Select the 3D Tool (Menu item: Tools > Advanced > 3D Tool).

Drag a rectangle on the page where you want the annotation to be.

Click the "Browse" button to select the 3D model.

Pick "blank.u3d" and click the "Open" button.

Click the "Browse" button to select the default script.

Pick "script.js" and click the "Open" button.

Click the "OK" button.

Note that the 3D annotation is selected (indicated by its red border). The 3D annotation must be selected like this to add resources.

Select the menu item: Advanced > 3D > Attach Resource to 3D Annotation.

(While holiding down the Ctrl key) multi-select the files "grid.jpg", "knurl.jpg", and "sphere.u3d" then click the "Open" button.

Select the Hand Tool from the toolbar or Tools > Select & Zoom > Hand Tool.

Click on the 3D annotation to activate it.

-
-
Script:
- Here's the sample file "script.js" provided:
// Create a new Resource with the file's URI as the argument
modelResource = new Resource( "pdf://sphere.u3d" );
// use Scene method "addModel" with Resource as an argument,
// returns top level node from loaded 3D file
model = scene.addModel( modelResource );
// Create a new Resource with the file's URI as the argument
imageResource = new Resource( "pdf://grid.jpg" );
// use the Image constructor with the Resource as an argument,
image = new Image( imageResource );
// set the loaded 3D model's diffuse texture to the image
model.material.diffuseTexture.setImage( image );
// loading of resources can be inlined if they are only used once
bump = new Image( new Resource( "pdf://knurl.jpg" ) );
// set the loaded 3D model's bump texture to the image
model.material.bumpTexture.setImage( bump );
|
|