[Python-ogre-commit] SF.net SVN: python-ogre: [373] trunk/python-ogre
Brought to you by:
andy_miller,
roman_yakovenko
|
From: <and...@us...> - 2007-08-30 11:46:27
|
Revision: 373
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=373&view=rev
Author: andy_miller
Date: 2007-08-30 04:46:24 -0700 (Thu, 30 Aug 2007)
Log Message:
-----------
Update to 1.0 release...
Modified Paths:
--------------
trunk/python-ogre/ThirdParty/vcredist_x86.exe
trunk/python-ogre/code_generators/ogre/hand_made_wrappers.py
trunk/python-ogre/demos/nxogre/CakeFramework.py
trunk/python-ogre/demos/nxogre/config.yaml
Modified: trunk/python-ogre/ThirdParty/vcredist_x86.exe
===================================================================
(Binary files differ)
Modified: trunk/python-ogre/code_generators/ogre/hand_made_wrappers.py
===================================================================
--- trunk/python-ogre/code_generators/ogre/hand_made_wrappers.py 2007-08-12 14:34:59 UTC (rev 372)
+++ trunk/python-ogre/code_generators/ogre/hand_made_wrappers.py 2007-08-30 11:46:24 UTC (rev 373)
@@ -712,8 +712,8 @@
for cls in map_iterators:
iter_as_generator_map( cls )
- rt = mb.class_( 'RenderQueueListener' )
- rt.add_wrapper_code ( WRAPPER_WRAPPER_RenderQueueListener )
+# rt = mb.class_( 'RenderQueueListener' )
+# rt.add_wrapper_code ( WRAPPER_WRAPPER_RenderQueueListener )
# cls = mb.class_('Animation').class_('NodeTrackIterator')
# iter_as_generator_map( cls )
Modified: trunk/python-ogre/demos/nxogre/CakeFramework.py
===================================================================
--- trunk/python-ogre/demos/nxogre/CakeFramework.py 2007-08-12 14:34:59 UTC (rev 372)
+++ trunk/python-ogre/demos/nxogre/CakeFramework.py 2007-08-30 11:46:24 UTC (rev 373)
@@ -41,21 +41,24 @@
def decorate(self):
pass
- def cleanup(self):
- pass
-
- def onFrame(self, deltaTime):
- pass
+ def cleanup(self):
+ pass
+
+ def onFrame(self, deltaTime):
+ pass
- def preStart(self, World):
- pass
-
+ def preStart(self, World):
+ pass
+
def getCamera(self ):
return self.Camera
def getSceneManager(self):
return self.SceneMgr
+
+
+
## From: http://www.ogre3d.org/phpBB2/viewtopic.php?p=183438#183438
class HighlightQueueListener ( ogre.RenderQueueListener ):
@@ -81,15 +84,16 @@
rendersys.setStencilCheckEnabled(True)
rendersys.setStencilBufferParams(ogre.CMPF_NOT_EQUAL,1,0xFFFFFFFF,
ogre.SOP_KEEP,ogre.SOP_KEEP,ogre.SOP_KEEP,False)
+ return skipThisInvocation
-
def renderQueueEnded(self,queueGroupId, invocation,repeatThisInvocation):
if (( queueGroupId == 90 ) or ( queueGroupId == 91 )):
rendersys = ogre.Root.getSingleton().getRenderSystem()
rendersys.setStencilCheckEnabled(False)
- rendersys.setStencilBufferParams()
+ rendersys.setStencilBufferParams()
+ return repeatThisInvocation
##/////////////////////////////////////////////////////////////////////////////
@@ -322,9 +326,8 @@
self.Root.setRenderSystem(self.RenderSystem)
self.RenderSystem.setConfigOption("Full Screen", configuration["fullscreen"])
- ##self.RenderSystem.setConfigOption("VSync", configuration["vsync"])
- self.RenderSystem.setConfigOption("VSync", "Yes")
-
+ self.RenderSystem.setConfigOption("VSync", configuration["vsync"])
+
if (configuration["device"] == "Direct3D9 Rendering Subsystem"):
self.RenderSystem.setConfigOption("Video Mode",
configuration["width"]
@@ -1162,9 +1165,9 @@
def start(self):
self.World = nxogre.World("log: html")
- self.Scene = self.World.createScene("Main", self.SceneMgr, "gravity: yes, floor: yes")
+ self.Scene = self.World.createScene("Main", self.SceneMgr, "gravity: yes, floor: yes, time-step-method: variable")
- self.Scene.createBody("cube.1m.mesh", nxogre.CubeShape(1), ogre.Vector3(0,2.5,0), "mass: 10")
+ self.Scene.createBody("cube.1m.mesh", nxogre.CubeShape(1), ogre.Vector3(0,5,0), "mass: 10")
def stop(self):
del self.World
@@ -1189,15 +1192,10 @@
import exceptions,sys
try:
application = Sponge_Cake ()
- print "PRE"
application.pre()
- print "START"
application.start()
- print "GETWORLD"
application.WorldInstance = application.getWorld()
- print "startRendereing"
application.startRendering(application)
- print "STOP"
application.stop()
application.post()
Modified: trunk/python-ogre/demos/nxogre/config.yaml
===================================================================
--- trunk/python-ogre/demos/nxogre/config.yaml 2007-08-12 14:34:59 UTC (rev 372)
+++ trunk/python-ogre/demos/nxogre/config.yaml 2007-08-30 11:46:24 UTC (rev 373)
@@ -1,8 +1,8 @@
# Graphics
-device:dx9
+device:direct3d9
width:640
height:480
-depth:16
+depth:32
aa:0
vsync:No
fullscreen:No
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|