CameraViewport - why is cam height ineffective?
Blitz3D Forums/Blitz3D Programming/CameraViewport - why is cam height ineffective?
| ||
I'm finding the need to use CameraViewport for the first time. However, I find it somewhat erratic. Why is camera height so ineffective (ie PositionEntity cam, 0,30,0)? After much faffing about, I found more joy from CameraZoom. However, this seems to be a balancing act between the two. I spotted the bentness when I decided to scale down the size of my entities. Low and behold everything was fine. However, I deem it should be just as easy to set the camera up (with my chosen entity scale) as it is to scale the entities down just to get a logical view. I don't like it. Why is the actual height of the camera virtually irellevent? I find it annoying. |
| ||
Graphics3D 800,600,16,2 light=CreateLight() PositionEntity light,100,100,-100 ground=CreatePlane() EntityColor ground,0,200,0 worldcentre=CreateCube() ScaleEntity worldcentre,.01,.01,.01; Scaling this down is bent PointEntity light,worldcentre cam=CreateCamera() CameraViewport cam,10,10,400,400 CameraProjMode cam,2 CameraZoom cam,.1 CameraRange cam,.01,1000 PositionEntity cam,0,1000,0 ; <- Bent! I don't like it - 0,1,0 is the same as 0,1000,0 RotateEntity cam,90,0,0 Repeat UpdateWorld() RenderWorld() Flip Until KeyDown(1)=1 I don't like it. EDIT: ps, I need ProjectMode 2 as with mode 1, my entities stretch. |
| ||
Wait a minute! The problem is caused by Project Mode 2 - "Sibly" designed it that way. Sniff. |
| ||
Right, I have sorted Mode 1 out. CameraZoom 2 (or thereabouts) fixes the entity stretching. Anyone know what the exact value should be? I'm not sure if 2 is right, but it looks okay. |
| ||
The problem is - I need the Mode 2 Perspective. This is really annoying. Would be great if there was a sort of combination mode. |
| ||
The camera is an point in 3d space. It doesn't really have a height or width. Try scaleentity camera? |
| ||
You either want perspective, or you don't. You can alter the appearance of perspective by altering CameraZoom along with the distance the camera is from objects. |
| ||
I want it both ways - as per my other thread. The perspective option is great for picking an entity - but the non-perspective option is great for picking an exact point. I want Mode 3. |
| ||
Hmmm, what are you actually trying to do here? It's clear your both threads are linked, so can you fill us in a little, then maybe we can help you a little better :o) |
| ||
As big10p says , just use mode 1 but position the camera far from the scene and use a high zoom to reduce the FOV. IMHO, ortho cameras in Blitz are useless and give you alot of z-order problems if you use them. Stevie |