Camera Scale Barriers
Closed this issue · 2 comments
c4lliope commented
Hello,
I am curious if g3n's camera can handle really large scenes; imagine Kerbal Space Program.
I am making a scene using a scale-model Earth and space ship.
I make the globe based on the shaders.earth
demo:
geom := geometry.NewSphere(6357000, 32, 16)
t.sphere = graphic.NewMesh(geom, matEarth)
a.Scene().Add(t.sphere)
...and I'm unsure how to place or configure my camera in the scene to be able to see this globe.
I imagine some combination of SetNear
, SetFar
, and maybe ViewMatrix
.
My code is here: https://github.com/assembleco/debris-space.0; I'm glad for any help.
c4lliope commented
I had no luck with either:
a.camera.ViewMatrix(math32.NewMatrix4().MakeTranslation(-18, 0, 0))
a.camera.SetPosition(-18, 0, 0)
Using a sphere radius of 4.