WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-22-2015, 01:35 PM
haohaoxuexi1 haohaoxuexi1 is offline
Member
 
Join Date: Sep 2015
Posts: 81
Smile about an exercise in "Vizard Teacher in a book"

I meet some problem in texture part (maybe in page 32)

The exercise is "1. Add the "art/wall.ive" model to a world, add the "art/stone wall.jpg" texture and apply it to that model."

However based on the example above the exercise I cannot get the right things I want

The example is like

import viz
viz.go()
viz.MainView.setPosition( 0, .65,-1.3 )
model = viz.add('art/wall.ive')
window = model.getChild( 'glass' )
walls = viz.addTexture('art/tileclouds.jpg')
moon = viz.addTexture('art/full moon.jpg')
window.texture( walls, '', 1 )
window.texture( moon, '', 0 )


#clouds.wrap( viz.WRAP_S, viz.REPEAT )
#clouds.wrap( viz.WRAP_T, viz.REPEAT )
#slider = viz.addSlider()
#slider.setPosition(.5,.1)
#def swap_textures( slider_position ):
#cloud_amt = slider_position
#window.texblend( cloud_amt, '', 1 )
#vizact.onslider( slider, swap_textures )
#swap_textures(0)
#matrix = vizmat.Transform()
#def move_clouds():
#matrix.postTrans(.0005,.0005,0)
#window.texmat( matrix, '', 1 )
#vizact.ontimer( .01, move_clouds )


I got some confusion about the "sub-nodes" part

Is there anyone can teach me about this example?

Wish to get some help from the forum......
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Realistic Light and Shadows Using Vizard and 3DS Max jde Vizard 4 07-13-2012 10:58 AM
Vizard 4 Beta Testing farshizzo Announcements 0 02-01-2011 10:46 AM
Vizard 4 Beta Testing farshizzo Vizard 0 02-01-2011 10:46 AM
.3DS importing in Vizard and 3D Studio jde Vizard 1 08-28-2009 03:14 PM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 11:13 AM


All times are GMT -7. The time now is 07:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC