Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - CuriousGeorge

#1
Support / hmmm..
December 29, 2005, 05:58:51 PM
Helge,
Thanks for your help.

The perspective problem is frustrating. If I move the camera really far away and use a FOV, the buildings don't drift but they then just look 2D and all you see is their roofs.

If I use a lower camera height and a wider FOV, I get the effect I need but the buildings then drift massively.

I'm trying to go for the GTA1/2 effect. A 2D tiling system with 2D sprites but 3D buildings.

Any suggestions on my approach? I'm thinking maybe i'm going about things in the wrong way..

Thanks for your help!

George
#2
Support / Field of view and textures.
December 29, 2005, 01:19:53 AM
Hi,
jPCT's great but i've run into two small problems (the former being probably my interpretation and the latter looking like a limitation).

Firstly, i'm using jPCT to place 3D objects atop of a 2D tiling engine but i'm having problems getting things to line up properly.

My 2D canvas is 512x512, this is blitted to the FrameBuffer. I've then got the 3D render which is done with a camera at 0,0,-512 and a FOV of 1.

This seemed to work but there's some drift. The 3D objects seem to wander slightly from their positions on the 2D map. Any pointers on this one?

Second thing I noticed was that there didn't seem to be any way of removing texutres from the TextureManager, is this correct? (We'd need to be constantly adding and removing textures in order to stream stuff).

Thanks!

George