Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

Create a doc for the createDefaultEnvironment helper #1101

Closed
deltakosh opened this issue Jun 28, 2018 · 10 comments
Closed

Create a doc for the createDefaultEnvironment helper #1101

deltakosh opened this issue Jun 28, 2018 · 10 comments
Assignees

Comments

@deltakosh
Copy link
Contributor

So far it lives here: http://doc.babylonjs.com/babylon101/environment#skybox (in skybox and ground chapter)
But I think he deserves more love :)

@deltakosh
Copy link
Contributor Author

@BabylonJSGuide Please let me know if you can handle it

@BabylonJSGuide
Copy link
Collaborator

Give me a week to see if I can come up with something. Currently thinking that all the createDefault.... methods need more love :)

@deltakosh
Copy link
Contributor Author

Can't agree more

@BabylonJSGuide
Copy link
Collaborator

First thoughts are a page under How To called Build a World Fast under scenes as a level 1 so it is near the top of the How To Landing Page. Page would also include importing ready made models with delayCreateScene using the scene helpers. What do you think?

@deltakosh
Copy link
Contributor Author

lovely!

@BabylonJSGuide
Copy link
Collaborator

Two things I need help with in writing this page.
1).
In the current docs it says that using createDefaultEnvironment sets createSkybox to true and createGround to true and uses CDN from Babylon.

The same is is stated in the API and as far as I can see in the code. The following PG shows neither a skybox nor a ground, however both exist since using the inspector they are listed. Apply a boundingbox to them you can see their existence. So what do I need to change in order to see them?

2).
In the same PG I found that I can find the camera and light used by the arrays in scene. When I want to change any properties of the camera or light is using scene.cameras[0] and scene.lights[0] the best way of accessing them?

@deltakosh
Copy link
Contributor Author

deltakosh commented Jun 30, 2018

Pinging @sebavan for 1
For 2 the created light and camera should always be the last on the scene.cameras and scene.lights array

@sebavan
Copy link
Member

sebavan commented Jun 30, 2018

About 1, you are seeing them, they are just really subtle and help giving a grounding feeling to the objects.

to see it better, zoom out and look a bit from the top:
image

@BabylonJSGuide
Copy link
Collaborator

Understand it is just that I am not that good with subtle.

@BabylonJSGuide
Copy link
Collaborator

Done and Merged

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

No branches or pull requests

3 participants