WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 05-16-2008, 07:24 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
There is no way to change the size/position of the html window. It is mainly used to display instructional text. The most common way to display an icon on the screen is to use a texture quad. Here is some sample code that shows how to do it. Let me know if anything is unclear.
Code:
import viz
viz.go()

#Add environment
viz.add('gallery.ive')

#Add texture quad and link it to upper left corner of screen
quad = viz.addTexQuad(parent=viz.ORTHO,align=viz.TEXT_LEFT_TOP,size=1)
viz.link(viz.LeftTop,quad,offset=(20,-20,0))

#Add icon texture
icon = viz.add('ball.jpg')

#Apply texture to quad and resize quad to size of texture
quad.texture(icon)
quad.setScale(icon.getSize())
Reply With Quote
Reply

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
Read file....many issues Uttama_vizard Vizard 9 07-08-2008 02:16 PM
Getting object position in screen coordinates v-Salik Vizard 1 10-19-2007 03:41 PM
Avatar always returns in initial position pattie Vizard 2 08-31-2006 08:15 PM
Grabbing screen shots (but not to file) pbeeson Vizard 9 08-30-2006 06:14 PM
file input vsully Vizard 1 12-21-2004 10:51 PM


All times are GMT -7. The time now is 04:00 PM.


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