WebFX3D
RISCWorld presents the WebFX3D Manual.
Now that you have created a 3D object, you have the opportunity to work with it before rendering an image/animation. The main 3D view is shown below.
Surrounding the 3D view are all the controls you require to work with the scene. Click menu over the 3D view to open a menu with some additional options which are described later. The icons at the top left corner of the window allow you to close, or put the window to the back . To bring the window to the front, click select on the top bar. To open this view at any time, click adjust on the WebFX3D iconbar icon. Click on the Render, Lighting and Help controls to open those windows. This can also be done from the menu.
X / Y toggle
Full screen toggle
Frame
The menu
See
Along the top of the 3D view, is a toolbar. The first four tools allow you to adjust your objects positioning, and how the camera views it: Move Camera forwards/backwards; Drag the mouse left / right to move forwards / backwards (Click adjust on this icon, to adjust numerically). Move Camera left, right, up and down; Dragging the mouse, moves the camera in the direction you move (Click adjust on this icon, to adjust numerically). Field of View; Drag the mouse left/right to decrease/increase the Field of View. (Click adjust on this icon, to adjust numerically). Rotate; Drag the mouse left/right, up/down to rotate the object. Click adjust on this icon, to undo the last rotate. The next two tools control you objects surface appearance. Note that these changes will apply to every object in your scene. If you want to set different colours to different objects, import a drawfile. Colour; Sets the colour of the object. Shininess; Sets how shiny the object is (see below). Shininess details. The last tool (on the right) allows you to run plugins: Plug-ins; Opens a list of available Plug-ins.
The field of view controls how much of what is in front of the camera is actually seen by the camera. It can be thought of as a zoom tool. Imagine a cone extending from the camera (see diagram below), everything inside the cone is seen (the shaded region).
Therefore by increasing the field of view, more of the object will be shown, and decreasing the field of view reduces what is seen by 'zooming in'. You can control perspective by altering the field of view.
Shininess is controlled through two settings. The first shininess defines whether the highlight is small (high values) or large (small values). The second value shininess strength defines how strong the highlight is. High values show a bright highlight, lower values reduce the brightness until it is undetectable. The diagram below shows the effects of various settings
Plug-ins are separate programs to WebFX3D, which reside within the !WebFX3D application. Each plug-in performs an operation on the 3D object to change it in some way. Although plug-ins are separate to WebFX3D, they integrate seamlessly with WebFX3D and as far as the user is concerned, a separate program is not even running.
See Also
The options dialog is opened from the 3D view menu by clicking Options... You can then set the appearance of the 3D view, which affects how a rendition will look. The options dialog is shown below.
There are 3 tabs: Display, Wireframe and Solid. The Display tab contains general settings, the 2 other tabs contain specific settings which are effective depending on the settings of the Display tab. Each tab is described below.
Display Tick Double sided polygons to use these opposed to single sided polygons. Each object is formed by a series of faces. At any time, many of these are facing away from the camera (i.e. are on the other side of the object), and don't need to be drawn. A speed increase of 50% is achieved when these are not drawn. However on a few occasions, when an object is drawn without some faces, Double sided polygons will need to be ticked.
Wireframe
Solid Phong; When ticked, objects are rendered with phong highlights. If not ticked, there will be no highlights. Directional lights; If unticked, light emits from each light source in all directions. If ticked, light shines in the direction from the light to the origin of 3D space. So the actual position of each light is not as important as it only defined the direction the light shines. Renditions are quicker if directional lights are used (ticked). Attenuation; Tick this option to show attenuation, other wise no attenuation will be used. For more information on attenuation, see the lighting section. Atmosphere; Tick this option to render objects in an atmosphere. For more information on the atmosphere, see the section on Atmosphere.
Atmosphere settings control the colour and density of the atmosphere surrounding your object. If coloured white you can create fog, or black to add a distance cue. Select Atmosphere... from the 3D view menu to set atmosphere settings. The atmosphere can only be turned on/off through the 3D view options dialog. The atmosphere settings dialog is shown below:
Thickness Typically, the near value is set to 0 so there is no fog close to the camera, and the far value is set to a higher setting. Therefore the thickness of the fog increases the further the object gets from the camera.
Colour
The Scene Gallery is a facility for storing components of a scene so they can be applied to other objects in the future. The surface material, lighting, background and fog settings are given a name and stored in the gallery. You can then browse through the stored scenes to quickly find the effect you're looking for. Additionally you can apply one component from a gallery scene to your scene (such as lighting, or the surface material). The scene gallery is opened from the 3D view menu:
A list of stored scenes is shown as a scrollable list. Click on one and a preview of it is rendered on a sphere at the lower left corner of the window. To show if fog is applied to the object, the text near and far is shown to the right of the object in the colour it would appear at the near and far parts of the object. The sphere itself does not show the effect of fog. To use a gallery scene, select it and click Use. A dialog window will pop up where you can set what parts of the scene to apply to your scene. Click use in that dialog and your scene will be updated. When selected, you can also rename or delete a scene from the gallery by clicking the menu mouse button over the list. Additionally, you can add a scene to the gallery. Simply set up the scene (object colour, lighting positions etc.), open the gallery, click the menu button over the list and select the Add... menu entry. A dialog will open where you can type the name of your scene. This is handy if you will need to render several different objects, and each must have the same theme.
WebFX3D allows you to export an object as a draw file or VRML file in addition to rendering bit-mapped images. To export an object, open the Export menu which is a sub-menu of the 3D view menu:
Exporting a Draw file
Exporting a VRML file
VRML files are text files, and can have information about the author (you) inside them as an Information Node. Anything you type into the white text area will be put into the file. At the moment, the VRML version 1 format is supported. Drag the file icon to a filer or other application to save the VRML file. VRML files can be viewed on all computer platforms by most popular web browsers and 3D graphics programs. On the Acorn platform, Aspex Software develop the most useful VRML viewer which we recommend you use.
This plugin bends the object around a circular path. It only works in the XY plane (i.e. parallel to the screen). It is best suited to a line of text.
Angle
Radius
Center of object
This plugin allows you to set the colour of the join between the front and back faces of your object. It is suited to object created by WebFX3D, not add-ons.
Join colour
Type of Join
This plug-in provides a simple way to scale the object in any axis. There are 3 scale factors, one for each axis. To enlarge or reduce the size of the object, set all scale factors the same. To extend in the z-axis only, leave the X and Y factors as 1.0, and increase the Z value.
The twist plugin twists the object about an axis. One end of the object is held still, while the other end is rotated.
Axis
Revolutions
Radius
The wave plug-in puts a wave through the object.
Plane
Amplitude
Waves RISCWorld |