Hi All,
I’ve just joined the forum and just started out with jMonkeyEngine (Also my first time playing with 3D) anyways my plan is to make a game I’ve been doing in HTML (www.bloodwych.co.uk) but in 3D for a couple of reasons.
I want to learn Java
3D looks nice and gives me nice effects (jMonkeyEngine looks really good)
Its all new stuff to learn (Which is always fun, even if its stressful)
So I started a few days ago playing around with making shapes/lighting/shadows/cameras and came up with this
I’m really after a bit of help or pointing to the right posts for a few issues I’m facing
I want the game will be like Grimrock (grimrock.net) but for two players, I’ll list the issues I’m currently having and any advise/help would be welcome
My player is a box which will be step bases movement. I’ve got the player strafing left/right and moving backward/forwards but I cant get the camera to rotate even then though my player box does. Im using a CameraNode connected to my player Node but two things I find.
- The camera does not move with the player unless I update the cam.setLocation manually I thought it would follow the player as its attached?
- I cant get the camera to rotate left/right
My next question is about Assets I have created a new folder ‘DataFiles’ which holds my map files, I use a Java FileInputStream to load the files but whats the best way of saying the location?
Next question is about speed, does jMonkeyEngine know what is visible to the camera and only draw whats needed or do I need to do the logic to only draw/load whats visible to the player?
Last question (for the moment) is I want to make a Torch like effect with the camera lighting flickers that’s following the player, I thought maybe doing a Random update on the .setRadius of the PointLight that I use but is that correct? Something like cameraLight.setRadius(15+r.nextFloat())
I really appreciate any help, I’m not a good programming and T suck at math so the project is pretty doomed but I enjoy playing
Maybe someones already done a 3D Maze type game they have posted the source, I’ve tried searching for the answers but do far not managed to find the answers.