DEV Community

Cover image for How to Create a 3D Game in Python and Swap Models (Pizza Toppings Tutorial)
echo3D for echo3D

Posted on

How to Create a 3D Game in Python and Swap Models (Pizza Toppings Tutorial)

This Python demo uses echo3D's 3D model streaming in combination with Panda3D, a framework for 3D rendering and game development in Python. Currently, any .obj or .glb model can be uploaded to the echo3D console and streamed into this app. The app allows you to design your own pizza given the available pepperoni, mushroom, broccoli, or pepper toppings. You can click on any pizza topping, whether on the pizza or on the extra topping plates, to pick up and move the topping to your desired location. However, feel free to use echo3D's expansive functionality to modify the toppings to your pizza-preferences! The full demo can also be found on GitHub.

echo3D

Register

  • Don't have an API key? Make sure to register for FREE at echo3D.

Setup

You can also add your own models to the echo3D console by searching or adding your own, as each person may have their own pizza topping preferences. Just make sure to update the values in the model_constants.py file to match the entity ids' of the models you uploaded.

Run

Navigate to the echo3D-pizza-maker folder in your terminal, and run the following command:

python main.py [YOUR_ECHO3D_API_KEY] [YOUR_ECHO3D_SECURITY_KEY]

Learn more

Refer to our documentation to learn more about how to use Python and echo3D.

If you want more demos of Panda3D's technology, there are additional demos created by Panda3D in their GitHub samples folder. Although these do not incorporate echo3D, they show off a lot more functionality. Please see Panda3D's website to see documentation.

Support

Feel free to reach out at support@echo3D.co or join our support channel on Slack.

Screenshots

Demo created by LeaBroudo.

echo3D (www.echo3D.com) is a 3D asset management platform that enables developers to manage, update, and stream 3D, AR/VR, Metaverse, & Spatial Computing content to real-time apps and games.

echo3D

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry 🕒

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay