How to use the pyassimp.helper.additional_dirs function in pyassimp

To help you get started, we’ve selected a few pyassimp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adamlwgriffiths / PyGLy / pygly / attic / oai_mesh.py View on Github external
Created on Wed Sep 14 17:18:48 2011

@author: adam
"""

from ctypes import *
import os.path

from pyglet.gl import *

# we need to add the location of the dll to the
# list of search directories
# TODO: change this to use resource locations
# http://www.pyglet.org/doc/programming_guide/loading_resources.html
from pyassimp import helper
helper.additional_dirs.append(
    r'C:\Users\adam\workspace\PyGLy\contrib\assimp--2.0.863-sdk\bin\assimp_release-dll_win32'
    )

from pyassimp import pyassimp, structs

TextureLayer = [
    GL_TEXTURE0,
    GL_TEXTURE1,
    GL_TEXTURE2,
    GL_TEXTURE3
    ]

Diffuse     = [ 0.8, 0.8, 0.8, 1.0 ]
Specular    = [ 0.0, 0.0, 0.0, 1.0 ]
Ambient     = [ 0.2, 0.2, 0.2, 1.0 ]
Emission    = [ 0.0, 0.0, 0.0, 1.0 ]
github adamlwgriffiths / PyGLy / pygly / attic / mesh / loader.py View on Github external
# -*- coding: utf-8 -*-
"""
Created on Sun Aug 21 21:03:03 2011

@author: adam
"""

import os

# we need to inject our search paths before we
# load the pyassimp library
from pyassimp import helper

if os.name=='nt':
    helper.additional_dirs.append( r'C:\Users\adam\workspace\c++\assimp--2.0.863-sdk\bin\assimp_release-dll_win32' )

from pyassimp import pyassimp

# http://assimp.svn.sourceforge.net/viewvc/assimp/trunk/port/PyAssimp/sample.py?revision=406&content-type=text%2Fplain

pyassimp = pyassimp
github adamlwgriffiths / PyGLy / renderer / mesh / Loader.py View on Github external
# -*- coding: utf-8 -*-
"""
Created on Sun Aug 21 21:03:03 2011

@author: adam
"""

import os

# we need to inject our search paths before we
# load the pyassimp library
from pyassimp import helper

if os.name=='nt':
    helper.additional_dirs.append( r'C:\Users\adam\workspace\c++\assimp--2.0.863-sdk\bin\assimp_release-dll_win32' )

from pyassimp import pyassimp

# http://assimp.svn.sourceforge.net/viewvc/assimp/trunk/port/PyAssimp/sample.py?revision=406&content-type=text%2Fplain

pyassimp = pyassimp