i’m having some trubble with lightning and my models:
but i’m not sure it is my model or my code.
my code is:
import direct.directbase.DirectStart
from direct.showbase.DirectObject import DirectObject
from direct.gui.OnscreenText import OnscreenText
from pandac.PandaModules import *
import sys
class World(DirectObject):
def __init__(self):
#load the model
ss = loader.loadModel("models/ssr")
ss.reparentTo(render)
ss.setPos(0,0,0)
#add the light
plight = PointLight('plight')
plight.setColor(VBase4(0.2, 0.2, 0.2, 1))
plnp = render.attachNewNode(plight)
plnp.setPos(500, 0, 900)
ss.setLight(plnp)
#place the camera
base.cam.setPos(0,-300,0)
w=World()
run()
my egg is:
filehost.justfreespace.com/63ssr.egg
i used the 3ds max 8 exporter
assainator