VR Mars exploration has just started on Vizard!!!
Hi,
Thank you for your speedy response. It didn't work initially because I missed 2 lines!!! Thanks for pointing this one out to me.
Please look at the screenshots attached, the detail looks great. Detail texture may look bit repetitive for now, but it will change soon!
I attached my script with some changes in it, I had to bring the blend value to 0.065 to get the result that I wanted.
#-----------------------------------------------------
viz.go()
#loading textures
tex1 = viz.add('texModified.jpg')
tex2 = viz.add('detail.jpg')
tex2.wrap(viz.WRAP_S,viz.REPEAT)
tex2.wrap(viz.WRAP_T,viz.REPEAT)
#loading the objects
stage = viz.add('output.osg')
stage.enable(viz.CULL_FACE)
stage.enable(viz.CULLING)
stage.texture(tex1,'',0) #Apply to texture unit 0 (default)
stage.texture(tex2,'',1) #Apply to texture unit 1
stage.texblend(0.065,'',1) #Blend texture 1 0.065% with texture 0
m = viz.Transform.scale(5000,5000,1) #Repeat 5000 times in both directions
stage.texmat(m,'',1)
#loading the skybox
env = viz.add(viz.ENVIRONMENT_MAP,'mars_sky\mars_sky.jpg ')
sky = viz.add('skydome.dlc')
sky.texture(env)
#disabling head-light
viz.disable(viz.LIGHT0)
#-------------------------------------------------------------------
Thank you for your assistance! have a great day.
Regards,
Iwan
|