Gian-Reto
Member
|
How to set camera distance?
I have another noob question:
How do I set the "camera distance" (not sure if that's the problem, but wasn't able to take a screenshot in the built game, so I'll describe it)...
I want to build a Game with a "isometric" view (a 3D View, but with a fixed camera angle at 45 degrees).... I want to be able to zoom out, as it is an RTS Style game, but wehnever I did that, the atmospheric horizon blocked the view to the far ends of the screen. So I took away the atmospheric horizon... now I have a hard edge, where the Terrain is not visible anymore, and anything behind it is black. I assume this is some kind of "camera distance" to limit the field of view, but as I will have a fixed angle, I don't need that functionality. How can I turn it off?
|
|
03-18-2011 02:18 PM |
|
Dandruff
Member
|
RE: How to set camera distance?
paste the code you have right now
|
|
03-19-2011 01:19 AM |
|
Dynad
Member
|
RE: How to set camera distance?
you can set the view distance:
D.viewRange(300);
There is always evil somewhere, you just have to look for it properly.
|
|
03-19-2011 12:18 PM |
|
Mardok
Member
|
RE: How to set camera distance?
Check Esenthel tutorials...
This should be interesting for you:
EsenthelEngineSDK\Tutorials\Source\Advanced\4 - Demos, Game Basics\Game Basics\06 - Pathfind.cpp
EsenthelEngineSDK\Tutorials\Source\Advanced\4 - Demos, Game Basics\Game Basics\16 - Camera Modes.cpp
Dynad i know it for the future ;] or for another who type RTS in search xD
(This post was last modified: 03-19-2011 12:32 PM by Mardok.)
|
|
03-19-2011 12:28 PM |
|
Dynad
Member
|
RE: How to set camera distance?
(03-19-2011 12:28 PM)Mardok Wrote: Check Esenthel tutorials...
This should be interesting for you:
EsenthelEngineSDK\Tutorials\Source\Advanced\4 - Demos, Game Basics\Game Basics\06 - Pathfind.cpp
EsenthelEngineSDK\Tutorials\Source\Advanced\4 - Demos, Game Basics\Game Basics\16 - Camera Modes.cpp
Mardok i don't think is he asking for that :/
The point was that the world disappears after the camera is set to far... the camera was already working in this case ...
There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 03-19-2011 12:32 PM by Dynad.)
|
|
03-19-2011 12:30 PM |
|
Gian-Reto
Member
|
RE: How to set camera distance?
setting the viewRange did the trick...
by the way, I'm amazed that zooming out doesn't affect the Framerate negatively due to more Terrain Features being visible... thats a pleasant surprise after other engines having had this negative effect.
Thanks for the help
(This post was last modified: 03-19-2011 08:04 PM by Gian-Reto.)
|
|
03-19-2011 08:04 PM |
|