Is there a way to increase the camera far clipping plane in the SDK model viewer?
I’m looking at some very large models and terrains, and they get culled when the geometry goes beyond 1000 units.
Anyone? :-/
Nope you can’t do that unfortunately.
Might be something nice to have.
Yes,
Even if it’s not a great camera setup…that has zfighting in the distance, it will still be better then just have a cut off at 1000 units.
Does this have to do with the settings of the default camera in the SimpleApplication and Application classes? Maybe a developer can up those numbers? Say make it 1-35,000 units for Near and Far clipping planes?
@DieSlower said: Yes,Even if it’s not a great camera setup…that has zfighting in the distance, it will still be better then just have a cut off at 1000 units.
Does this have to do with the settings of the default camera in the SimpleApplication and Application classes? Maybe a developer can up those numbers? Say make it 1-35,000 units for Near and Far clipping planes?
…and cause horrible horrible z-fighting in 90% of apps that don’t setup their frames manually? I don’t think so.
I think the scene explorer supports loading app states. You could make an app state that modifies the current camera and that will probably work.
Do most people actually never change their camera setup? 1000 units seems extremely small to me, it almost begs to be changed.
I do like the idea of loading a custom app state! Thanks that should work!!!
@DieSlower said: @pspeedDo most people actually never change their camera setup? 1000 units seems extremely small to me, it almost begs to be changed.
I do like the idea of loading a custom app state! Thanks that should work!!!
1000 meters is 1 km. Most games are very lucky if they can display stuff that far away. Most are considerably shorter than that.
1 km far clip implies that you can load and manage 4 sq km of data at once. Quite challenging in general.
It does not look like you can get the scene explorer camera with app.getCamera…its coming out to be null( i think). I get an error saying “Exception in AppState, All States Removed”
Is there a special way to get to the SDK camera?
this is my code:
[java]
public class CamDistanceState extends AbstractAppState
{
@Override
public void initialize(AppStateManager stateManager, Application app)
{
app.getCamera().setFrustumFar(50000);
//Sets the Initialized to True
super.initialize(stateManager, app);
}
}
[/java]
Honestly, I don’t really know how the SDK sets up its “fake” Application that it passes to these loaded states. If you wanted to be sure what it was you could System.out.println() some things and then look in the Application console at the bottom of the SDK.
…though I suspect you are right and Camera may not be exposed in this fake application. Perhaps it was just overlooked or there is some other reason.
Can’t you attach everyhing in the scene to a common “parent” node and scale everything down using that node?
Edit: spelling.
@pspeed
Hmm…who would know how to get the camera of the IDE?
@jmaasing
If that is done, all the LODs will be wrong, and coordinates…just introduces more problems than it solves.
Normen,
Do you by any chance know if it’s possible to grab the SDK camera from a custom AppState? You seem to be more familiar with how the states work in the IDE/SDK…