View Single Post
  #6  
Old 09-06-2006, 07:14 PM
k_iwan k_iwan is offline
Member
 
Join Date: May 2006
Posts: 115
Talking 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
Attached Thumbnails
Click image for larger version

Name:	shot1.jpg
Views:	1195
Size:	69.5 KB
ID:	112   Click image for larger version

Name:	shot2.jpg
Views:	1178
Size:	52.0 KB
ID:	113  
Reply With Quote