Greetings
I have trouble with viz.MainView.collision( viz.ON ) in combination with shaders
This works with the standard skydome.
But...
If I add another sky routine see the code snippet below
Yes and I know how to turn it on ;-)
# sky old style
env = viz.add(viz.ENVIRONMENT_MAP,'sky.jpg')
sky = viz.add('skydome.dlc')
sky.texture(env)
sky.disable(0x3000) #Disable clip plane on sky
# new style
#Add sky model
#sky = viz.add('sky.osg')
#Add textures
#horizon_tex = viz.add('horizon.png')
#horizon_tex.wrap(viz.WRAP_S,viz.CLAMP_TO_EDGE)
#horizon_tex.wrap(viz.WRAP_T,viz.CLAMP_TO_EDGE)
#cloud_tex = viz.add('clouds.png')
#cloud_tex.wrap(viz.WRAP_S,viz.REPEAT)
#cloud_tex.wrap(viz.WRAP_T,viz.REPEAT)
#Apply textures to sky
#sky.texture(horizon_tex,'',0)
#sky.texture(cloud_tex,'',1)
#Add shaders
#sky_vp = viz.add('sky.vp')
#sky_fp = viz.add('sky.fp')
#Apply shaders to sky
#sky.apply(sky_vp)
#sky.apply(sky_fp)
#viz.clearcolor(viz.GRAY)
#viz.fov(70,1.3)
#sky.translate(0,-400,0)
#CLOUD_SPEED = 1.0
When calling this routine is messes up the collision detection. I changed nothing added only the routine above called it from the timer so I am lost
Part 2 of this question.
In my app I created a helicopter flying a maze with a searchlight. So I added a nightmode with affect and uneffect. If you are in the light bundle the sky lights up also with this shader. bizar...
See the screenshots what I mean with this