Author Topic: Question about skybox  (Read 734 times)

Offline denzel

  • byte
  • *
  • Posts: 22
    • View Profile
Question about skybox
« on: February 25, 2012, 08:29:17 am »
When i move out the skybox's world-camera, it's all right at the beginning,but when move out for a distance, there's a blackground in the window.
Am i mistake sth?
And what should i do to move the model to the skybox's center?
Your reply will be very appreciate.
The code of the skybox
Code: [Select]
SkyBox skyBox = new SkyBox("texture", "texture", "texture", "texture",
"texture", "floor", 2000);
skyCamera = skyBox.getWorld().getCamera();
Code: [Select]
skyCamera.moveCamera(camera.getDirection(), scale * scaleCoef);Img Normal:

The Bad:
« Last Edit: February 25, 2012, 08:30:50 am by denzel »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Question about skybox
« Reply #1 on: February 25, 2012, 08:36:02 am »
You are not supposed to move the camera of the skybox. Why would you want to do this?

Offline denzel

  • byte
  • *
  • Posts: 22
    • View Profile
Re: Question about skybox
« Reply #2 on: February 25, 2012, 08:52:31 am »
I want a background that it will be scale when i scale my model..but there's no obj/3ds models for me,just some imgs.

And one question, how to scale a model but keep its bottom's position?
« Last Edit: February 25, 2012, 08:55:14 am by denzel »