Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scene - Edit Defaults #127

Open
kmavridis opened this issue Dec 18, 2021 · 1 comment
Open

Scene - Edit Defaults #127

kmavridis opened this issue Dec 18, 2021 · 1 comment

Comments

@kmavridis
Copy link

Hello,
how can i remove fog from the scene, add more light to it and make bigger the view frustum so my whole model to be visible?

Thank you in advanced

@raydeleu
Copy link

I agree that the settings of the fog are not always ideal. It depends on the size of your object, but if the size of your object becomes too large the fog will cover smaller parts.

fog-cs

To change this you would have to download install the code locally on your computer as described in https://github.com/raydeleu/CascadeStudioManual#22-local-installation

In https://github.com/raydeleu/CascadeStudioManual#133-modifying-the-3d-view I have described how you can change some default values of the 3D window. I guess you would need to tinker around in the code of https://github.com/zalo/CascadeStudio/blob/master/js/MainPage/CascadeView.js to see what the effect is. The following lines describe some of the behaviour of the fog in the scene.

    // Expand fog distance to enclose the current object; always expand
    //  otherwise you can lose the object if it gets smaller again)
    this.boundingBox = new THREE.Box3().setFromObject(this.mainObject);
    this.fogDist = Math.max(this.fogDist, this.boundingBox.min.distanceTo(this.boundingBox.max)*1.5);
    this.environment.scene.fog = new THREE.Fog(this.environment.backgroundColor, this.fogDist, this.fogDist + 400);

Recently there was a change to the code that allows to remove the grid and the ground plane from the scene. Perhaps the author https://github.com/drb3st could add this option to the interface as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants