| TWiki . Javadesktop . ProjectWonderlandWorldBuilder |
wonderland.wfs.root=file://YOURUSERDIRECTORY/.wonderland/worldbuilder-wfs
WonderlandWorldBuilder.war file from the Daily (nightly) Builds section here: https://lg3d-wonderland.dev.java.net/binary-builds.htmlWonderlandWorldBuilder.war file in the Jetty "webapps" directoryYOURUSERDIRECTORY/.wonderland/worldbuilder-wfs which can now be loaded into Wonderland. Start up your server and client to see your World Builder world.
The next time you start the World Builder, it will load the Wonderland File System from the worldbuilder-wfs directory and display it within the workspace for you to edit.
Note that there is a known bug that prevents worlds with single components (e.g. a world with 1 floor tile) from loading properly into the World Builder. The workaround is to just add another component and resave.
cvs -d :pserver:username@cvs.dev.java.net:/cvs co j3dfly
You will need J3DFly? to export models to your local Wonderland art directory.
worldbuilder_template_floor.x3d worldbuilder_template_ceiling.png worldbuilder_template_floor.png worldbuilder_template_floor_icon.png worldbuilder_template_floor_tile.png worldbuilder_template_floor.x3d in a text editor (e.g. Notepad). Since we're making a custom version of the floor/ceiling tile, let's immediately save this file as with a different name, worldbuider_custom_floor.x3d.worldbuilder_template_floor.png and worldbuilder_template_ceiling.png in your image editing application of choice. Again, since we are making custom versions of these files, it's a good idea to immediately save these files with different file names so we don't accidentally overwrite our template files (although you can always get them again from http://localhost:8080/WonderlandWorldBuilder/template_files/). Save them as worldbuilder_custom_floor.png and worldbuilder_custom_ceiling.png.worldbuilder_template_floor.png and replace it with worldbuilder_custom_floor.png. Search for worldbuilder_template_ceiling.png and replace it with worldbuilder_custom_ceiling.png. Save the file.j3dfly directory use the command ant run-j3dfly), and load worldbuilder_custom_floor.x3d. At first you will probably see nothing -- this is because the camera you are looking through is positioned at the same coordinates as the floor/ceiling tile. Choose Viewing Platform -> Show All -> Y and you should see your customized floor. Choose Viewing Platform -> Show All -> -Y and you should see your customized ceiling. Selecting Viewing Platform -> Orbit will allow you to rotate/translate the camera with your mouse, so you can see how the floor and ceiling face each other. The Orbit controls are:
Left-click-drag: rotate camera
Middle-click-drag (or mousewheel): zoom
Right-click-drag: pan
lg3d-wonderland-art directory, create the following directories:
Plugins -> Wonderland -> Export to Wonderland. Choose directory paths that you just created, lg3d-wonderland-art/compiled_models/models/worldbuilder/custom/ and lg3d-wonderland-art/compiled_models/textures/worldbuilder/custom/ for the model and texture files, respectively.worldbuilder_custom_floor.png and worldbuilder_custom_ceiling.png) to lg3d-wonderland-art/compiled_models/textures/worldbuilder/custom/.Viewing Platform -> Orbit and position the floor tile so it looks like this:Viewing Platform -> Show All -> Y and use the middle-mouse-button to zoom in:
jetty-6.1.8/webapps/) where you put your WonderlandWorldBuilder.war file, create a new directory, custom/.worldbuilder_template_floor_icon.png and worldbuilder_template_floor_tile.png in your image editor. Save these as worldbuilder_custom_floor_icon.png and worldbuilder_custom_floor_tile.png in the webapps/custom/ directory you made previously.worldbuilder_template_wall and worldbuilder_template_corner files to create the pieces necessary to build walls. The only different is that these require four tile images for each of the cardinal directions -- north, south, east, and west (e.g. worldbuilder_template_wall_tile_n.png, worldbuilder_template_wall_tile_s.png, etc.). In addition, the wall and corner pieces use the same (and only one) texture file, worldbuilder_template_wall.png.
The next step is to create a custom catalog and add your new component(s) to it. Scroll down to the section "Adding a Custom Catalog, and Adding New Components to the Catalog".

Transform Properties panel by hitting "N" on the keyboard with the Cube selected), which corresponds nicely to the World Builder grid. A World Builder grid square is exactly 2x2 Blender (or Maya) units. Roughly this is enough space for a single avatar to stand in.

Transform Properties panel, set the coordinates to Global, and set the Median Z value to 8).
Center Cursor button in the Mesh panel of the Editing group:
Snap Cursor -> Selection. Then hit the Center Cursor button).Shading -> Texture panels and load the worldbuilder_template_floor.png file into the texture channel of the material (the default material, or create a new material).
UV/Image Editor open in one pane and the 3D View open in the other. Go into UV Select Mode, select all faces, and assign the worldbuilder_template_floor.png to the faces in the UV/Image Editor (since you already loaded the file into the texture channel, you can simply select the loaded texture from the dropdown in the UV/Image Editor).
Object Mode and select Textured Viewport Shading.

File -> Export menu, not "X3D Extensible 3D (.x3d)" (that's the default one included with Blender). Also, you may need to install Python to get it to work, depending on your computing environment. Choose "Selected Objects" not "All Objects". Save it as worldbuilder_custom_floor.x3d.j3dfly directory use the command ant run-j3dfly), and load worldbuilder_custom_floor.x3d. At first you will probably see nothing -- this is because the camera you are looking through is positioned at the same coordinates as the floor/ceiling tile. Choose Viewing Platform -> Show All -> Y and you should see your customized floor. Choose Viewing Platform -> Show All -> -Y and you should see your customized ceiling. Selecting Viewing Platform -> Orbit will allow you to rotate/translate the camera with your mouse, so you can see how the floor and ceiling face each other. The Orbit controls are:
Left-click-drag: rotate camera
Middle-click-drag (or mousewheel): zoom
Right-click-drag: pan
lg3d-wonderland-art directory, create the following directories:
Plugins -> Wonderland -> Export to Wonderland. Choose directory paths that you just created, lg3d-wonderland-art/compiled_models/models/worldbuilder/custom/ and lg3d-wonderland-art/compiled_models/textures/worldbuilder/custom/ for the model and texture files, respectively.worldbuilder_custom_floor.png) to lg3d-wonderland-art/compiled_models/textures/worldbuilder/custom/.jetty-6.1.8/webapps/) where you put your WonderlandWorldBuilder.war file, create a new directory, custom/.worldbuilder_template_floor_icon.png and worldbuilder_template_floor_tile.png in your image editor. Save these as worldbuilder_custom_floor_icon.png and worldbuilder_custom_floor_tile.png in the webapps/custom/ directory you made previously.worldbuilder_template_floor.blend worldbuilder_template_wall.blend worldbuilder_template_corner.blend worldbuilder_template_floor.mb worldbuilder_template_wall.mb worldbuilder_template_corner.mb worldbuilder_template_floor.png worldbuilder_template_wall.png http://localhost:8080/template_file/worldbuilder_template_catalog.json (or http://localhost:8080/Wonderland/worldbuilder/template_files/worldbuilder_template_catalog.json on Glassfish scratch build) and save it to your Jetty installation directory's webapps/custom/ directory (or create a "custom" directory if you don't have one already). Rename it catalog.json to keep things simple. (note: Glassfish directory will be more like this: glassfish/domains/domain1/docroot/custom)
name: "Floor",
library: ["Floors","Template"],
width: 1,
height: 1,
zIndex: 1,
rotatable: false,
description: "A floor tile.",
tileImageURL: "worldbuilder_template_floor_tile.png",
iconImageURL: "worldbuilder_template_floor_icon.png",
modelURL: "models/worldbuilder/template/worldbuilder_template_floor.j3s.gz",
cellSetupType: "org.jdesktop.lg3d.wonderland.darkstar.server.setup.BasicCellGLOSetup{org.jdesktop.lg3d.wonderland.darkstar.common.setup.ModelCellSetup}",
cellType: "org.jdesktop.lg3d.wonderland.darkstar.server.cell.SimpleTerrainCellGLO"
Let's look at each field in this entry and see what they mean. Follow along and make changes as necessary in your catalog.json for your new component(s).
name: "Floor",This is simply the name of the component. It does not need to be unique. It is shown in the tool-tips within the World Builder application.
library: ["Floors","Template"],Each component can belong to one or more "libraries". This example belongs to the "Floors" library and the "Template" library. Simply add, change, or remove library names in this set. To add a new library, simply add a new name -- this will appear in the Library Selection dropdown menu in the World Builder application.
width: 1,This is the width of the component in grid units (squares). Currently objects must occupy perfect squares, so this number must match the "height" field.
height: 1,This is the height of the component in grid units (squares). Note that this refers to the 2d layout in the World Builder and doesn't have to do with the height of the model in 3d space. Currently objects must occupy perfect squares, so this number must match the "width" field.
zIndex: 1,This is to assign stacking order to components in the World Builder workspace. Floor components have a z-index of 1, wall components have a z-index of 2, and furniture components have a z-index of 3.
rotatable: false,Some components have a facing direction (e.g. walls), i.e. they can be rotated in 90-degree increments to face in one of the cardinal directions (north, south, east, west). Set this to true if the object can be rotated.
description: "A floor tile.",This is a description of the object, which is displayed in the tool-tips of the World Builder application.
tileImageURL: "worldbuilder_template_floor_tile.png",This is the URL for the image used as the tile in the World Builder application workspace. If you are following along from the component creation tutorials above, you will want to change this to point to your custom component's tile image, e.g. "custom/worldbuilder_custom_floor_tile.png".
iconImageURL: "worldbuilder_template_floor_icon.png",This is the URL for the image used as the components icon in the World Builder application library. If you are following along from the component creation tutorials above, you will want to change this to point to your custom component's icon image, e.g. "custom/worldbuilder_custom_floor_icon.png".
modelURL: "models/worldbuilder/template/worldbuilder_template_floor.j3s.gz",This is the URL for the model to be loaded into Wonderland. If you are following along from the component creation tutorials above, you will want to change this to point to your custom component, e.g. "models/worldbuilder/custom/worldbuilder_custom_floor.j3s.gz".
cellSetupType: "org.jdesktop.lg3d.wonderland.darkstar.server.setup.BasicCellGLOSetup{org.jdesktop.lg3d.wonderland.darkstar.common.setup.ModelCellSetup}",
cellType: "org.jdesktop.lg3d.wonderland.darkstar.server.cell.SimpleTerrainCellGLO"
These define the type of cell for the component. You probably have no need to change these, but just for now know that in the future custom cell-types can be specified here.
{
field: value,
field: value...
},
{
field: value,
field: value...
}...
So when you add a new component to the catalog, just make sure to follow the pattern.
name: "Floor",
library: ["Floors","Custom"],
width: 1,
height: 1,
zIndex: 1,
rotatable: false,
description: "A floor tile.",
tileImageURL: "worldbuilder_custom_floor_tile.png",
iconImageURL: "worldbuilder_custom_floor_icon.png",
modelURL: "models/worldbuilder/custom/worldbuilder_custom_floor.j3s.gz",
cellSetupType: "org.jdesktop.lg3d.wonderland.darkstar.server.setup.BasicCellGLOSetup{org.jdesktop.lg3d.wonderland.darkstar.common.setup.ModelCellSetup}",
cellType: "org.jdesktop.lg3d.wonderland.darkstar.server.cell.SimpleTerrainCellGLO"
http://localhost:8080/WonderlandWorldBuilder/), enter http://localhost:8080/custom/catalog.json in the "Load Catalog" text field, and press the "Enter" key to load your custom catalog.
----- Revision r15 - 06 Aug 2008 - 16:06:15 - Main.sdanic
|