BTDPE Developer
Download
Docs


Getting Started (Open-Source Version)

WARNING: BTDPE is not recommended to be used yet. Errors and issues are expected.
You need to download BTDPE from the download page. You will need a python file that runs BTDPE. That file must contain:
Python
import BTDPE_v1_0_0_Beta as BTDPE import turtle # Your code here BTDPE.register_turtle(turtle) # This starts a loop and starts rendering. This might be changed in the future.
Note: When using BTDPE, your BTDPE module must be in the same directory as your python file that runs BTDPE and in that same directory you'll need a folder called 'BTDPE_Cache'
WARNING: Do NOT use any code after and do not put a loop before registering the turtle to BTDPE. If you put the loop before registering, BTDPE won't get to register your turtle. If you put any code after registering your turtle BTDPE will IGNORE it. (This might be changed in the future)
How to create a cube in BTDPE
To make a cube in BTDPE you must use this function:
Python
BTDPE.create_mesh(meshType, name, position, size, orientation, shadersAllowed, allShaders, shaderType, castShadows, receiveShadows, textureClass, color, attributes, textures)
Agrument Type Description Works?
meshType string Tells BTDPE what type of mesh to create ("cube" is only supported).
name string Sets the unique name of the mesh.
position object Sets the coordinates {x, y, z} of the mesh.
size object Sets the dimentions {x, y, z} of the mesh.
orientation object Sets the orientation {x, y, z} of the mesh.
shadersAllowed boolean Whether shaders can be applied to the mesh.
allShaders array List of all shaders to apply.
shaderType string Specific shader type.
castShadows boolean Whether the mesh can cast shadows.
receiveShadows boolean Whether the mesh can receive shadows.
textureClass array Texture definitions.
color object Sets the color {r, g, b} of the mesh in RGB.
attributes object The attributes of the mesh.
textures array Texture data for the mesh.
Note: The only mesh types are: Cube in v1.0.0 Beta
Note: The "shadersAllowed", "allShaders", "shaderType", "castShadows", "receiveShadows", "textureClass", "textures", "color" and "orientation" in this function does NOT work in v1.0.0 Beta
Example:
Python
BTDPE.create_mesh("cube", "MyCube", {"x": 0, "y": 0, "z": 0}, {"x": 1, "y": 1, "z": 1}, {"x": 0, "y": 0, "z": 0}, False, [], "", False, False, [], {"r": 0, "g": 0, "b": 0}, {"canTransparent": False, "visible": True, "opacity": 1}, [])
This makes a cube mesh named MyCube.