WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 04-19-2007, 12:52 PM
codexter codexter is offline
Join Date: Feb 2007
Posts: 9
GUI Image?

I'm working on creating a GUI splashcreen and am looking to include in image as part of the interactive interface. What is the best way to og about this? Since it's just a GUI, it's just a 2-D .jpg that I'm hoping to include on the screen. Can I add it as a window, or through a text info box?

Reply With Quote
Old 04-19-2007, 01:20 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849

If you just want to display a 2D image on screen then you can create a texture quad that takes up the entire window. Here is some sample code:
tex = viz.add('ball.jpg',wrap=viz.CLAMP_TO_EDGE)
quad = viz.addTexQuad(parent=viz.SCREEN,scale=[12.8,10.24,1],pos=[0.5,0.5,0],texture=tex)
Reply With Quote
Old 04-19-2007, 01:45 PM
codexter codexter is offline
Join Date: Feb 2007
Posts: 9
Works perfectly. Thanks a bunch.
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

All times are GMT -7. The time now is 01:43 AM.

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