Main Menu
Menu

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.

Show posts Menu

Messages - denzel

#16
Support / Re: Can Light focus on model?
March 01, 2012, 08:33:34 AM
Get it.I will have a try.
:)
#17
Support / Re: Can Light focus on model?
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?
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
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
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
SkyBox skyBox = new SkyBox("texture", "texture", "texture", "texture", "texture", "floor", 6000);
SimpleVector skyVector = new  SimpleVector(0, -2500, 0);
skyBox.setCenter(skyVector);


Rotate the camera in the world
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
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
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
SkyBox skyBox = new SkyBox("texture", "texture", "texture", "texture",
"texture", "floor", 2000);
skyCamera = skyBox.getWorld().getCamera();

skyCamera.moveCamera(camera.getDirection(), scale * scaleCoef);
Img Normal:

The Bad: