www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: denzel on February 25, 2012, 08:29:17 am

Title: Question about skybox
Post by: denzel 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:
(http://www.tu265.com/di-nBV1r2.png)
The Bad:
(http://www.tu265.com/di-oYLop1.png)
Title: Re: Question about skybox
Post by: EgonOlsen 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?
Title: Re: Question about skybox
Post by: denzel 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?