mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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
|
@staticmethod
|
||||||
def makePerspective(parent):
|
def makePerspective(parent):
|
||||||
v = Viewport('persp', parent)
|
v = Viewport('persp', parent)
|
||||||
v.camPos = Point3(30, 30, 30)
|
v.camPos = Point3(-30, -30, 30)
|
||||||
v.camLookAt = Point3(0, 0, 0)
|
v.camLookAt = Point3(0, 0, 0)
|
||||||
|
|
||||||
v.grid = DirectGrid(parent=render)
|
v.grid = DirectGrid(parent=render)
|
||||||
@ -227,7 +227,7 @@ class Viewport(wx.Panel, DirectObject):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def makeLeft(parent): return Viewport.makeOrthographic(parent, 'left', Point3(100, 0, 0))
|
def makeLeft(parent): return Viewport.makeOrthographic(parent, 'left', Point3(100, 0, 0))
|
||||||
@staticmethod
|
@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
|
@staticmethod
|
||||||
def makeTop(parent): return Viewport.makeOrthographic(parent, 'top', Point3(0, 0, 100))
|
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)
|
objects['1252538687.73gjeon'] = objectMgr.addNewObject('Smiley', '1252538687.73gjeon', 'models/smiley.egg', None)
|
||||||
if objects['1252538687.73gjeon']:
|
if objects['1252538687.73gjeon']:
|
||||||
objects['1252538687.73gjeon'].setPos(Point3(8.66381, 0, 7.13246))
|
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))
|
objects['1252538687.73gjeon'].setScale(VBase3(1, 1, 1))
|
||||||
objectMgr.updateObjectColor(1.000000, 1.000000, 1.000000, 1.000000, objects['1252538687.73gjeon'])
|
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})
|
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)
|
objects['1252623762.9gjeon'] = objectMgr.addNewObject('Panda', '1252623762.9gjeon', None, None)
|
||||||
if objects['1252623762.9gjeon']:
|
if objects['1252623762.9gjeon']:
|
||||||
objects['1252623762.9gjeon'].setPos(Point3(0, 0, 0))
|
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))
|
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.updateObjectColor(1.000000, 0.000000, 0.000000, 0.517647, objects['1252623762.9gjeon'])
|
||||||
objectMgr.updateObjectProperties(objects['1252623762.9gjeon'], {})
|
objectMgr.updateObjectProperties(objects['1252623762.9gjeon'], {})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user