Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - denzel

Pages: 1 [2]
16
Support / Re: Can Light focus on model?
« on: March 01, 2012, 08:33:34 am »
Get it.I will have a try.
 :)

17
Support / Re: Can Light focus on model?
« on: March 01, 2012, 02:29:29 am »
In a way that a only a small part of the scene is lit ,like a spotlight
or put it another way,it's that there's parameter for GL_SPOT_CUTOFF in ES

18
Support / Can Light focus on model?
« on: February 29, 2012, 10:46:19 am »
Just like a light focus on a actor in the stage.
I think the Light in JPCE-AE is a pointolite like the sun, is there a way to make a Cone-Light?


19
Support / Re: About skybox again
« on: February 27, 2012, 04:57:58 am »
yes, i make an obj for my ground and it works now.
I mistake the skybox

20
Support / About skybox again
« on: February 26, 2012, 09:36:28 am »
I add a skybox in my demo,and move the skybox-center.
But when i rotate the wolrd's camera,my model looks like under the skybox, why?
Am i mistake sth?
the code:
Build a skybox and move its center to make my model looks like is in the floor
Code: [Select]
SkyBox skyBox = new SkyBox("texture", "texture", "texture", "texture", "texture", "floor", 6000);
Code: [Select]
SimpleVector skyVector = new  SimpleVector(0, -2500, 0);
skyBox.setCenter(skyVector);

Rotate the camera in the world
Code: [Select]
float distance = camera.getPosition().distance(centerVector);
camera.moveCamera(Camera.CAMERA_MOVEIN, distance);
camera.rotateCameraX((float) Math.toRadians(60));
camera.moveCamera(Camera.CAMERA_MOVEOUT, distance);
camera.lookAt(centerVector);

The img:
Normal

Rotate

21
Support / Re: Question about skybox
« 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?

22
Support / 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:

Pages: 1 [2]