stephen-hqxu / superterrainplus

SuperTerrain+: A real-time procedural 3D infinite terrain engine with geographical features and photorealistic rendering.
MIT License
12 stars 1 forks source link

First personal camera #11

Closed stephen-hqxu closed 3 years ago

stephen-hqxu commented 3 years ago

Suggestions

The current camera is a free-angle spectator camera, it will be more realisitc to add a first person camera that incorporates terrain collisions.

The following formula can be used for a reference:

vec3 camera_height = terrain_height + vec3(0.0f, eye_height, 0.0f);

Starting from the camera interface in my game engine is a good idea.

stephen-hqxu commented 3 years ago

Abandoned

After update 0.5.0, SuperTerrain+ has become a dedicated library-based terrain engine, camera utilites are now part of SuperDemo+, which is esstentially an example of user implementation.

We don't plan to add such utility at any point in the future as it's a generator engine instead of game engine, the application of the library is depeneded on the developers.