[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15872] trunk/blender/source/gameengine/ Rasterizer/RAS_CameraData.h: Am teaching a GE course this week, and am finding some small issues that I'm hoping to patch.

Mal Duffin malachyduffin at gmail.com
Tue Jul 29 22:28:11 CEST 2008


Revision: 15872
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15872
Author:   mal_cando
Date:     2008-07-29 22:28:11 +0200 (Tue, 29 Jul 2008)

Log Message:
-----------
Am teaching a GE course this week, and am finding some small issues that I'm hoping to patch.

This one deals with the very small default clipend value ( 100.0 ) when pressing P to run the GE from a non-camera view.  ( ie if the user zooms out a bit from the default box area, the box will get clipped out of view, so it's a WFT from the user )

To see what this fixes, load up Blender default scene, go into perspective, and press P. Everything looks grand.  Now, zoom out until the box is about 10 pixels high, and press P again.  The box will disappear / be clipped out.

I've set the clip end to the maximum ( 5000 ) as defined in Camera.h.

This should be suitable for inclusion in 2.47 branch also.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Rasterizer/RAS_CameraData.h

Modified: trunk/blender/source/gameengine/Rasterizer/RAS_CameraData.h
===================================================================
--- trunk/blender/source/gameengine/Rasterizer/RAS_CameraData.h	2008-07-29 20:20:24 UTC (rev 15871)
+++ trunk/blender/source/gameengine/Rasterizer/RAS_CameraData.h	2008-07-29 20:28:11 UTC (rev 15872)
@@ -42,7 +42,7 @@
 	int m_viewporttop;
 	float m_focallength;
 
-	RAS_CameraData(float lens = 35., float clipstart = 0.1, float clipend = 100., bool perspective = true,
+	RAS_CameraData(float lens = 35.0, float clipstart = 0.1, float clipend = 5000.0, bool perspective = true,
 	float focallength = 0.0f, bool viewport = false, int viewportleft = 0, int viewportbottom = 0, 
 	int viewportright = 0, int viewporttop = 0) :
 		m_lens(lens),





More information about the Bf-blender-cvs mailing list