All Projects → kpiorno → kivy3dgui

kpiorno / kivy3dgui

Licence: MIT License
Pure Kivy library to display and interact with Kivy widgets in a 3D mesh.

Programming Languages

python
139335 projects - #7 most used programming language
GLSL
2045 projects

Projects that are alternatives of or similar to kivy3dgui

AndroidGLKit
AndroidGLKit provides OpenGL ES 2.0 boilerplate codes for Android.
Stars: ✭ 22 (-78.43%)
Mutual labels:  glsl, opengles
Ouzel
C++ game engine for Windows, macOS, Linux, iOS, tvOS, Android, and web browsers
Stars: ✭ 607 (+495.1%)
Mutual labels:  glsl, opengles
Yasea
RTMP live streaming client for Android
Stars: ✭ 4,557 (+4367.65%)
Mutual labels:  glsl, opengles
Nabla
OpenGL/OpenGL ES/Vulkan/CUDA/OptiX Modular Rendering Framework for PC/Linux/Android
Stars: ✭ 235 (+130.39%)
Mutual labels:  glsl, opengles
awesome-glsl
🎇 Compilation of the best resources to learn programming OpenGL Shaders
Stars: ✭ 700 (+586.27%)
Mutual labels:  glsl
copylot
Your copilot to studies and work (Pomodoro-timer, Translate and Notes app)
Stars: ✭ 17 (-83.33%)
Mutual labels:  kivy
sparklemotion
Sparkle Motion
Stars: ✭ 24 (-76.47%)
Mutual labels:  glsl
ProcessingStuff
Various pretty-ish Processing sketches by Odditica. About 50% shaders.
Stars: ✭ 164 (+60.78%)
Mutual labels:  glsl
raytk
Raymarching shader toolkit for TouchDesigner
Stars: ✭ 98 (-3.92%)
Mutual labels:  glsl
OpenTK-PathTracer
C# OpenGL Path Tracer, Real-Time GPU accelerated
Stars: ✭ 22 (-78.43%)
Mutual labels:  glsl
ElectricSheep WebGL
WebGL Electric Sheep Renderer
Stars: ✭ 14 (-86.27%)
Mutual labels:  glsl
PhaserCHOP-TD-Summit-Talk
Project files associated with http://github.com/dbraun/PhaserCHOP and David Braun's "Quantitative Easing" talk at the 2019 TouchDesigner Summit https://www.youtube.com/watch?v=S4PQW4f34c8
Stars: ✭ 36 (-64.71%)
Mutual labels:  glsl
glsl-rotate
GLSL rotation functions with matrices: 2D and 3D (with X/Y/Z convenience functions).
Stars: ✭ 54 (-47.06%)
Mutual labels:  glsl
webvs
Audio Visualization rendering library for the browser
Stars: ✭ 87 (-14.71%)
Mutual labels:  glsl
cookiedozer
📱 Cookiecutter for i18n Kivy Apps
Stars: ✭ 48 (-52.94%)
Mutual labels:  kivy
slibs
Single file libraries for C/C++
Stars: ✭ 80 (-21.57%)
Mutual labels:  glsl
OptimisedCentresOfRotationSkinning
Library to Compute Centres of Rotation for Optimised Centres of Rotation Skinning by Le and Hodgins 2016 "Real-time Skeletal Skinning with Optimized Centers of Rotation"
Stars: ✭ 28 (-72.55%)
Mutual labels:  glsl
ElkEngine
Simple graphics engine used as submodule in many of my projects
Stars: ✭ 54 (-47.06%)
Mutual labels:  glsl
WebGL-Distance-Fields
⭐ Realtime Euclidean distance field generation and rendering
Stars: ✭ 50 (-50.98%)
Mutual labels:  glsl
Sketches
Creative coding sketches made with Java, Processing 3.5.3 and GLSL. Includes a custom GUI.
Stars: ✭ 18 (-82.35%)
Mutual labels:  glsl

kivy3dgui

Kivy 3D. A pure Kivy library to display and interact with Kivy widgets in a 3D mesh.

If you want to help with the development you can mail me: [email protected]

It's easy to test, just download the code a run the examples. Enjoy it!!!

You can watch a video example here. Another video for Tour3D Example.

Work in progress

The 3D Editor is in the early stage. Baby steps, many issues :) anyway, you can test it at editor_3d branch.

How to use

Step 1

Start by importing the Layout3D. This layout manages 3D Nodes but behaves just like a normal Kivy FloatLayout.

#:kivy 1.0
#: import Layout3D kivy3dgui.layout3d

Step 2

Create a Layout3D, which you can also do from Python.

Layout3D:
    id: par #id for Layout3D, could be referenced just like any Kivy Widget
    size_hint: (1.0, 1.0)
    canvas_size: (1366, 768) # Canvas resolution
    post_processing: False # Post-processing effects (bloom, hdr,...)

You can change the position of the camera using the 'lookat' property, which sets the gluLookAt transformation. It defaults to (0, 0, 10, 0, 0, 0, 0, 1, 0).

Step 3

Create nodes and add them to the Layout3D. Nodes are used to apply 3D effects, transformations and display 3D meshes in Kivy layouts.

Nodes may be a set of 3D meshes (obj format is only supported at now). Be sure to set the UV mapping correctly. If you add a FloatLayout to the node it will be used as a texture for the meshes and you will be able to interact with the widgets that are seen on the surface of the meshes, no matter the shape: touch events are accurately translated to preserve behavior.

The possibilities are endless. Just use your imagination.

    Node:
        id: Node1
        name: 'Node 0'
        rotate: (90, 0.3, 1, 0)  # Angle and x, y, z axis of the rotation matrix
        scale: (0.4, 0.4, 0.4)  # x, y, z of scaling matrix
        translate: (20, -10.0, -110)  # x, y, z of translation matrix
        effect: True
        meshes: ("./data/obj/sphere.obj", ) #List of meshes (obj only)

For more detail on these parameters and matrices, please see the glRotate matrix, glScale matrix and glTranslate documentation.

Step 4

Create interaction widgets. The root widgets for Nodes must be a Layout3D. All its children will use this as the texture for the set of meshes. As mentioned, you will be able to interact with the widgets.

        FloatLayout:
            canvas:
                Color:
                    rgb: 1, 1, 1,0.1
                Rectangle:
                    size: self.size
                    pos: self.pos
                    source: "./data/imgs/background.jpg"
            size_hint: (1.0, 1.0)
            Button:
                pos_hint: {"x":0, "y":0 }
                size_hint: (None, None)
                text: "Hello"

Screenshot

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].