Earth 2128 update to closed thread

Nice Work dealing with that Light Scattering, because the last time i did it i struggled to control the directional light bouncing off or emission !!!



But im scattering the light indirectly to make All Alpha textures pop out “NICELY”, it’s quite performance friendly but i’ll balance it out eventually. and also further optimize everything.

Fred/K.S

Here is some pre alpha version to play:
http://www.mediafire.com/file/5b28t1qp613fhv0/earth2128%20test11.rar
This is a blend file, so you can check how some things are done.
Please give me some feedback about it.


I’ve got a problem to solve and need help.
I’was trying to make a lock on system with this script:

import bge
def trackNearestProperty(cont):
debug=True
if not ‘target’ in cont.owner:
if debug:print(‘No property called “target” found, please specify target property’)
return
property = cont.owner[‘target’]
objects = sorted([[ob,cont.owner.getDistanceTo(ob)] for ob in bge.logic.getCurrentScene().objects if property in ob], key=lambda x:x[1])
if objects:
if objects[0][0] == cont.owner:
objects.remove(objects[0])
cont.owner.alignAxisToVect(cont.owner.getVectTo(objects[0][0])[1],1,1)
return
if debug:print(‘No Objects with Property:’,property)

How to change this script to check objects only visible in camera frustrum???
Or maybe someone know how to make a lock on system?