#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using a texquad to cover a window | Enlil | Vizard | 4 | 02-07-2012 04:13 PM |
Splash screen split in half | sleiN13 | Vizard | 1 | 12-20-2011 04:50 PM |
split screen | honey006 | Vizard | 3 | 05-21-2009 10:57 AM |
screen image | erchrastil | Vizard | 8 | 06-27-2008 12:45 PM |
position of html-file on screen | active_world | Vizard | 1 | 05-16-2008 08:24 PM |