a 3DtopPlugin
by BoneS @ 2001
Operating Instructions
Bedienungsanleitung
Mode d’emploi
Gebruiksaanwijzing
Istructioni per l’uso
Instrucciones de manejo
Modo de emprego
Betjeningsvejledning
Bruksanvisning
Kayttoohje
Odhgiex yrhdevx
The ones that didn't grow up with Computers or Nintendo builded there own world with wooden building blocks or plastic Lego blocks.Enjoy.
Now every child and grownup try's to get that same constructive feeling by means of computing till your eye's fall off.
Since Joost introduced his 3Dtop with Plugin capabilities, I saw this as a great opportunity to try get that old building feeling back into the lives of everyone in de range of 8 to 80 years.
On loading the from8to80.dll PLugin, The Plugin try's to open a file named default.880in which the last scene was saved. When this file doesn't exist, it makes a few building blocks of it's own for you to start with.File Menu:
Every time the plugin quits, or 3Dtop quits, it will save the scene for you in default.880, so it will start next time as you left it.
You can save the scene under a different name or directory, but default.880 will always be the one it loads at startup.
If however the Plugin is marked for Reload in the 3Dtop Plugin Menu it will startup with the last saved file ( 3Dtop is so kind to save this information in the icon3d.dat file, Isn't that nice ).
You can move the entire scene as any object in 3Dtop ,clicking with the right button on one of the blocks will popup the File Menu:
Open | Will bring up a File Load Dialog for opening a scene *.880 file |
Save | Will bring up a File Save Dialog for saving the scene as *.880 file |
Edit | Puts the underlying block in edit mode |
About | What was it again ? |
Help | A bit of Help |
Exit | Save last scene and quit the Plugin |
With Editing I mean moving, rotating and scaling the individual blocks, as well as giving it a color or material texture.
To do this we must first select a block byPoint on block and Right mouse select 'Edit'a small cursor ball will appear on the blocks corner.
Now we can move the block around, as we move all object in the 3Dtop world:
|
|
left button
|
move block left, right, up or down
|
+ Right Button / Shift
|
move block left, right, back and
forth
|
+ Ctrl
|
rotate block horizontal or vertical
|
+ Alt
|
scale block horizontal or vertical
|
+ Alt + Right Button / Shift
|
scale block horizontal or in depth
|
However for easy placement, these movements occur on a grid of 1/2 the block default size.
We can do more with a block by:Point on block and Press Right mouse ButtonThe Edit menu will appear with the following Items:
Choose Color | Will bring up the 3Dtop Color chooser |
No Color | For quickly setting it to white if it doesn't flatter the material image |
Choose Material | Will bring up a file loading dialog, for loading a file as texture image |
Zoom in Material | Enlarges the texture image to get some detail |
Zoom Out Material | Reduces the image, and results in tiling the picture |
No Material | For quickly clearing the block |
Translucent | For looking through the block, nice glass or water effect |
Duplicate on Right Side | Makes a new one ( copy ) and puts it aligned at the Right side |
Duplicate on Top Side | Makes a new one ( copy ) and puts it aligned at the Topside |
Duplicate on Front Side | Makes a new one ( copy ) and puts it aligned in Front |
Finer | Increase number of Sphere and Cylinder subdivisions |
Rougher | Decrease number of Sphere and Cylinder subdivisions |
Shortcut to.. | Make's the block a shortcut to a file or program |
No Shortcut | undo the above |
Info | Tell's you the Shortcut filename |
Delete | Makes the block go away |
File Menu | Quits the edit mode and pops-up the File Menu |
Double clicking the Left mouse on another block will select that block,
on the same block will end the edit session.
Key: | Menu Action: | Key: | Menu Action: | Key: | Move Action: |
O | Open | C | Choose Color | Up | Up |
S | Save | L | No Color | Down | Down |
E | Edit | M | Zoom in Material | Left | Left |
H | Help | I | Zoom Out Material | Right | Right |
A | About | Z | No Material | Shift+Up | Back |
N | Duplicate on Right Side | Shift+Down | Forth | ||
F1 | New Cube | T | Duplicate on Top Side | Ctrl+ | Rotate |
F2 | New Triangle | F | Duplicate on Front Side | Alt+ | Scale |
F3 | New Cylinder | D | Delete | ||
F4 | New Sphere | U | File Menu |
Now the handy part:
The Saved scene file is a text file in which you can enter , copy and paste, more blocks,
or change the block's origin size etc.
Here's the format:
880 //always first, its the file id !!
Then per Block:
//kind: origin[x,y,z]: size[x,y,z]: rotation[x,y,z]: color[R,G,B] texture file: density:
CUBE ORG[+0.00,+0.00,+0.00] SIZE[+2.00,+1.00,+1.00] ROT[0.00,0.00,0.00] RGB[+0.90,+0.70,+0.50] TEXTURE[ ] DENS[1.00]
First the kind of block: CUBE, TRIANGLE, CYLINDER(note 1), SPHERE (note 1)
Then the block's origin: ORG[ x, y, z ]
The block's Size: SIZE[ x, y, z ]
The rotation angle: ROT[ around x, y, z ]
The Block's color: RGB [ red, green, blue ] value's between 0.0 and 1.0
The Material Texture image file: TEXTURE[ path/filename ] ( only *.BMP or *.JPG ) ( note 2 )
The material's density: DENS[ number ] the value defines the number of times the texture is mapped, so 0.5 is see a quarter of the texture image( 0.5 by 0.5),
2.0 is see the texture twice in vertical and twice in horizontal ( 2 by 2 ).
The Skin or Bump image file: SKIN[ path/filename ] ( only *.BMP or *.JPG ) ( note 2 )
The skin's scale: SKINSCALE[ number ] the value defines offset scale calculated on the objects points.
Finally a so called SHORTCUT[ path/filename ] that makes the object a shortcut to a file or program.( note 2 )
The Translucent parameter TRANS[ 0 or 1 ].Only on = 1 and off = 0 are supported.All item's can be separated by space or tab's, but have to be on 1 line.
Comments are on C++ style with // in front , rest of line is comment:
// this is comment
Best is to copy the default.880 file and, cut/copy/paste yourself a new building.
Note 1:
The Material Texture and Skin Filename is
a relative path , relative to the directory of the plugin
this way you can move the plugin and texture
folder to an other drive or folder, as long as there relative position
stays
the same.
- A few bugs solved, we can now start the dll more than once under a different name
and Exit them independently.
- Sphere and Cylinder can be made of less/more divisions ( note 1 /note 2 )
- An PLANE object is added, but you can only make it in the 880 file
- SKIN and SKINSCALE are added to make it compatible with the new 3D-Scape plugin.
- Each block can be a Shortcut to some file or program. Double click on the block will launch it.
- Since double klick on an block is now for launching the shortcut, you can only get into the edit mode thru the menu
Very Big Change:
From 8 to 80
a 3DtopPlugin by BoneS @ 2001