Camera for Ortho
Blitz3D Forums/Blitz3D Programming/Camera for Ortho
| ||
| How can I render the camera to create a view similar to Diablo II? Thanks! cb |
| ||
cam=CreateCamera() CameraProjMode cam,2 |
| ||
| 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
|
| ||
| 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. |
| ||
| should I just use a giant mesh or maybe a cube for the ground? cb |
| ||
| You need to change the camerazoom, try setting it to 0.99 and see if that cures the problem. |