Fixed packages
This commit is contained in:
parent
c744cdd099
commit
c5591f3d2d
|
@ -3,8 +3,8 @@
|
|||
import argparse
|
||||
import os
|
||||
|
||||
from conv3d.ply import PLYExporter
|
||||
from conv3d.loadmodel import convert
|
||||
from d3.conv.ply import PLYExporter
|
||||
from d3.conv.loadmodel import convert
|
||||
from functools import partial
|
||||
|
||||
def check_path(path, should_exist):
|
||||
|
|
|
@ -1,5 +1,15 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from ..conv.model import Vertex
|
||||
|
||||
import pygame
|
||||
|
||||
from OpenGL.GL import *
|
||||
from OpenGL.GLU import *
|
||||
from OpenGL.GLUT import *
|
||||
|
||||
import math
|
||||
|
||||
class Controls:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
@ -12,7 +22,7 @@ class Controls:
|
|||
|
||||
class TrackBallControls(Controls):
|
||||
def __init__(self):
|
||||
super().__init__(self)
|
||||
super().__init__()
|
||||
self.vertex = Vertex()
|
||||
self.theta = 0
|
||||
|
|
@ -13,10 +13,9 @@ from OpenGL.GL.shaders import *
|
|||
from OpenGL.GLU import *
|
||||
from OpenGL.GLUT import *
|
||||
|
||||
from conv3d.loadmodel import load_model
|
||||
from conv3d.model import Vertex
|
||||
|
||||
from controls import TrackBallControls
|
||||
from d3.conv.loadmodel import load_model
|
||||
from d3.conv.model import Vertex
|
||||
from d3.controls.controls import TrackBallControls
|
||||
|
||||
WINDOW_WIDTH = 1024
|
||||
WINDOW_HEIGHT = 768
|
||||
|
@ -67,7 +66,6 @@ def main(args):
|
|||
with open('shaders/shader.frag') as f:
|
||||
FRAGMENT_SHADER = compileShader(f.read(), GL_FRAGMENT_SHADER)
|
||||
|
||||
print(VERTEX_SHADER, FRAGMENT_SHADER)
|
||||
SHADER = compileProgram(VERTEX_SHADER, FRAGMENT_SHADER)
|
||||
|
||||
while running:
|
||||
|
|
Loading…
Reference in New Issue