WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-17-2013, 01:46 PM
Ducky Ducky is offline
Member
 
Join Date: Jul 2012
Location: Birmingham, AL
Posts: 7
Attach a TexQuad to pit.osgb screen

My goal was to texture an image to the screen in the pit example. This I was able to do, but the horizontal lines of the original black screen show through the image. So I thought if I could attach a TexQuad to the front of the screen I could then texture the image onto that and block out the original black screen.
I was able to do this but I feel I took the long route. (attached image)
I would think that after I got a handle on the screen I could apply a TexQuad to it and then texture the imagine onto it, but I keep failing.

I am new to programming so 1) please laugh if this is dumb and 2) if you do please help also.

Thanks
Attached Thumbnails
Click image for larger version

Name:	LongWay..JPG
Views:	1471
Size:	51.9 KB
ID:	558  
Reply With Quote
  #2  
Old 01-17-2013, 02:57 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The best method would be to simply remove the texture containing the horizontal lines. The following sample shows how to accomplish this:
Code:
import viz
viz.go()

pit = viz.add('pit.osgb')

# Apply texture to screen
image = viz.add('images/tile_wood.jpg')
pit.texture(image, node='screen')

# Remove screen line texture
pit.texture(0, node='screen', unit=1)
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
Using a texquad to cover a window Enlil Vizard 4 02-07-2012 03:13 PM
Splash screen split in half sleiN13 Vizard 1 12-20-2011 03:50 PM
split screen honey006 Vizard 3 05-21-2009 09:57 AM
screen image erchrastil Vizard 8 06-27-2008 11:45 AM
position of html-file on screen active_world Vizard 1 05-16-2008 07:24 PM


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


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