Hello team!
I have a skysphere egg that looks pretty cool. I want a fog node to blender with it though. Right now, it just completes whites it out.
def _set_up_environment_lighting(self):
self.sun = DirectionalLight("sun")
self.sun.setColor((1, 1, 1, 1))
base.sunnp = base.render.attachNewNode(self.sun)
base.sunnp.setZ(base.sunnp, 50)
base.sunnp.setY(base.sunnp, -30)
base.sunnp.setP(base.sunnp, -90)
base.sunnp.node().getLens().setFilmSize(50,50)
base.render.setLight(base.sunnp)
self.ambient_light = AmbientLight('alight')
self.ambient_light.setColor((0.8,0.8,0.8, 1))
self.alnp = base.render.attachNewNode(self.ambient_light)
base.render.setLight(self.alnp)
#myFog = Fog("Fog Name")
#myFog.setColor(1, 1, 1)
#base.render.setFog(myFog)
With Fog:
def _set_up_environment_lighting(self):
self.sun = DirectionalLight("sun")
self.sun.setColor((1, 1, 1, 1))
base.sunnp = base.render.attachNewNode(self.sun)
base.sunnp.setZ(base.sunnp, 50)
base.sunnp.setY(base.sunnp, -30)
base.sunnp.setP(base.sunnp, -90)
base.sunnp.node().getLens().setFilmSize(50,50)
base.render.setLight(base.sunnp)
self.ambient_light = AmbientLight('alight')
self.ambient_light.setColor((0.8,0.8,0.8, 1))
self.alnp = base.render.attachNewNode(self.ambient_light)
base.render.setLight(self.alnp)
myFog = Fog("Fog Name")
myFog.setColor(1, 1, 1)
base.render.setFog(myFog)
As always, you guys are the best for helping, cheers.