Hello all!
I basically have a FlyCam with a sphere I have attached based on infomration from “testlightradius”
[java] lightMdl = new Geometry(“Light”, new Sphere(10, 10, 0.1f));
lightMdl.setMaterial(assetManager.loadMaterial(“Common/Materials/RedColor.j3m”));
rootNode.attachChild(lightMdl);[/java]
I have used this and attached it to my rootNode.
in the test there is this line in the simpleUpdate
[java] lightMdl.setLocalTranslation(pl.getPosition());[/java]
pl in that instance is a pointlight so for me I used this
[java] lightMdl.setLocalTranslation(cam.getLocation().x, -cam.getLocation().z, cam.getLocation().y); [/java]
by calling this line of code I will get the exact movement I want, and it will follow my FlyCam; however my textures in the scene that were transparent now have a white border around them(originally black) in the first cam, and it’s black in the second cam(weird).
if I changed the line of code to [java] lightMdl.setLocalTranslation(cam.getLocation().x, cam.getLocation().z, cam.getLocation().y); [/java]
or others it will be transparent, but any value close to my flyCam will mess up my graphics.
This is extremely weird to me, I am using a CameraNode with my FlyCam for collision detection, and I don’t add the sphere to it(since it wont work for some reason) so I wonderered if it was possibly having z-depth issues with the CameraNode, but I’m not too sure.
Anyone have any idea what it could be?
Thanks,