• Content count

  • Joined

  • Last visited

  1. Camera Change rotation controls

    Hi Wingnut, Thank you for your help. That's not really what I was trying to do, I was trying to make the .target and camera to become a child of the sphere. But when clicking a new position for the sphere, the position of the target wouldn't change, only when holding "click" and the target would rotate around the spheres rotation. I had talk to another person, and after many tries, we decided that there was no easy solution to getting the results we wanted without a lot of changes to creating out own camera properties. Did I make it more clear to what action I was looking for? Thanks,
  2. Hi, Here is a basic scene to what I have so far: http://www.babylonjs-playground.com/#ZR4JTA#1 What I am trying to do: I am trying to make a camera that rotates around a parent object (sphere in my scene) without centering the target(what the camera looks at) to the parent. Desired outcome: When click and moving the mouse button, the parent object will be placed in the location "clicked" and the camera and target will rotate around the position of the parent object. What I tried: My idea's was to solve this were to find a way to remove the camera looking at the target, but been able to move and rotate around the target's position without the camera focusing on the target's position. This could still be the easier way, but I just cant figure out how to do this. Note: The zoom would still zoom in/out to the target, the same way as google maps zooms in on the mouse point, rather then the center of the screen. any help would be helpful. Thanks.
  3. "Flashlight/candle" type effect

    Sorry for my late reply. Thank you @gryff for your suggestion. I was able to get the effect needed more with the light exponent value and mixing a few other values with the other lights.
  4. I am trying to create a light on the camera that light up the area when the camera gets close to an object. I had tried it with a point light, where it wouldn't give me the effect I needed unless the intensity too high, causing the shadows on the wall the be bleached out. Now I am trying it with the spot light. This give a slightly better effect, but the light doesn't act light a flashlight when I start to rotate around an arch. I cant understand how the spotlight can rotate in the correct directing the camera is facing. DEMO: http://www.babylonjs-playground.com/#6FUUGB Issue: The light mirrors the cameras rotation, eg. I rotate the camera anti-clockwise(to the left), I should start to see the spotlight shining to the right corner of the wall. Instead the light moves the the left of the wall before appearing only on the right wall. Desired Results: When I rotate the camera to look right, I wish for the spot light to shine in that direction. If there is any more info needed. please ask. Ignore the Black and Red as there are textures I have on my local computer. Thanks in advance.