mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Reversed position of front camera to face with default models
This commit is contained in:
parent
ce79ab1718
commit
cf13954411
@ -214,7 +214,7 @@ class Viewport(wx.Panel, DirectObject):
|
||||
@staticmethod
|
||||
def makePerspective(parent):
|
||||
v = Viewport('persp', parent)
|
||||
v.camPos = Point3(30, 30, 30)
|
||||
v.camPos = Point3(-30, -30, 30)
|
||||
v.camLookAt = Point3(0, 0, 0)
|
||||
|
||||
v.grid = DirectGrid(parent=render)
|
||||
@ -227,7 +227,7 @@ class Viewport(wx.Panel, DirectObject):
|
||||
@staticmethod
|
||||
def makeLeft(parent): return Viewport.makeOrthographic(parent, 'left', Point3(100, 0, 0))
|
||||
@staticmethod
|
||||
def makeFront(parent): return Viewport.makeOrthographic(parent, 'front', Point3(0, 100, 0))
|
||||
def makeFront(parent): return Viewport.makeOrthographic(parent, 'front', Point3(0, -100, 0))
|
||||
@staticmethod
|
||||
def makeTop(parent): return Viewport.makeOrthographic(parent, 'top', Point3(0, 0, 100))
|
||||
|
||||
|
@ -13,7 +13,7 @@ objects = {}
|
||||
objects['1252538687.73gjeon'] = objectMgr.addNewObject('Smiley', '1252538687.73gjeon', 'models/smiley.egg', None)
|
||||
if objects['1252538687.73gjeon']:
|
||||
objects['1252538687.73gjeon'].setPos(Point3(8.66381, 0, 7.13246))
|
||||
objects['1252538687.73gjeon'].setHpr(VBase3(-180, 0, 0))
|
||||
objects['1252538687.73gjeon'].setHpr(VBase3(0, 0, 0))
|
||||
objects['1252538687.73gjeon'].setScale(VBase3(1, 1, 1))
|
||||
objectMgr.updateObjectColor(1.000000, 1.000000, 1.000000, 1.000000, objects['1252538687.73gjeon'])
|
||||
objectMgr.updateObjectProperties(objects['1252538687.73gjeon'], {'123': 1, 'Abc': 'a', 'Number': 1, 'Happy': True})
|
||||
@ -61,7 +61,7 @@ if objects['1252539974.19gjeon']:
|
||||
objects['1252623762.9gjeon'] = objectMgr.addNewObject('Panda', '1252623762.9gjeon', None, None)
|
||||
if objects['1252623762.9gjeon']:
|
||||
objects['1252623762.9gjeon'].setPos(Point3(0, 0, 0))
|
||||
objects['1252623762.9gjeon'].setHpr(VBase3(172.8, 0, 0))
|
||||
objects['1252623762.9gjeon'].setHpr(VBase3(0, 0, 0))
|
||||
objects['1252623762.9gjeon'].setScale(VBase3(0.005, 0.005, 0.005))
|
||||
objectMgr.updateObjectColor(1.000000, 0.000000, 0.000000, 0.517647, objects['1252623762.9gjeon'])
|
||||
objectMgr.updateObjectProperties(objects['1252623762.9gjeon'], {})
|
||||
|
Loading…
x
Reference in New Issue
Block a user