Watching everything

Started by Melssj5, January 02, 2005, 04:33:31 PM

Previous topic - Next topic

Melssj5

Hello, I what can I do to avoid that the far objects disappears, I am doing a game with huge outdoors maps, so I want to be able to see everything arround me but far objects dissaperas, everything gets black. Or how can I do to change the distance to became dark, I tried to use the Config fields but everything is the same.
Nada por ahora

EgonOlsen

Config.farPlane should do the trick. Unless you are using fog with has to be adjusted separately using the setFogParameters()-method in World. It's also possible that you are scratching the maximum polygon count. In that case, adjust Config.maxPolysVisible. You have to do this before instantiating a World.

Melssj5

Quote from: "EgonOlsen"
Ok thanks, other 2 doubts.....

1) I did Config.glWindowsName="Whatever", but Whatever is not being displayed on the window, Did I Understood bad the   Config.glWindowsName ?


2) In another game I used a Map that is indoor and outdor, I used the Open Gl to render the scenes, but It moves very very very slow when any wall is in front, and too fast when nothing is in front, for example in the limit of the map, How can I do to get a good and stable performance.
Nada por ahora

EgonOlsen

1.) Should work. You have to set the parameter before initializing the OpenGL renderer.

2.) A very slow performance in OpenGL mode is not a normal behaviour unless your OpenGL card is very crappy. What graphics card are you using and in which display mode are you running?  Are you sure that you've really initialized the renderer in Hardware OpenGL mode and not just in the software renderer's OpenGL "emulation"?
Despite of this, you should base you movement on the time passed in the last frame(s) or ensure a constant framerate somehow (which obviously isn't possible in your case).

EgonOlsen

??? I had to delete your last post (and mine too) because somehow my answer appeared in your question ???

Anyway, what i mean about the framerate is, that you wouldn't ask this question if your framerate would be constant, because it wouldn't be a problem then.