Camera for Ortho

Blitz3D Forums/Blitz3D Programming/Camera for Ortho

cbmeeks(Posted 2003) [#1]
How can I render the camera to create a view similar to Diablo II?

Thanks!

cb


GitTech(Posted 2003) [#2]
cam=CreateCamera()
CameraProjMode cam,2



cbmeeks(Posted 2003) [#3]
Thanks.

But, why does this not work? All I see is a thick green line in the middle of the screen.

Graphics3D 800,600,32,1
SetBuffer BackBuffer()

; Create camera
camera=CreateCamera()
CameraProjMode camera,2

;lights
light=CreateLight()

AmbientLight 255,255,255

;ground
Global ground		= LoadTerrain("art\ground_hm.png")
Global groundtex	= LoadTexture("art\grass001.png")
EntityTexture ground, groundtex
TerrainDetail ground, 4000, True


While Not KeyDown( 1 )

	UpdateWorld
	RenderWorld

	Text 0,0,"Pitch: " + EntityPitch(camera)
	Text 0,14,"Yaw: " + EntityYaw(camera)
	Text 0,28,"Roll: " + EntityRoll(camera)


	Flip
Wend

End



Al Mackey(Posted 2003) [#4]
From the docs: "One thing to note with using camera project mode 2, is that terrains will not be displayed correctly - this is because the level of detail algorithm used by terrains relies on perspective in order to work properly."

Also, you might want to try zooming out, and rotating the camera downwards.


cbmeeks(Posted 2003) [#5]
should I just use a giant mesh or maybe a cube for the ground?

cb


TartanTangerine (was Indiepath)(Posted 2003) [#6]
You need to change the camerazoom, try setting it to 0.99 and see if that cures the problem.