WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Attach a TexQuad to pit.osgb screen (https://forum.worldviz.com/showthread.php?t=4467)

Ducky 01-17-2013 01:46 PM

Attach a TexQuad to pit.osgb screen
 
1 Attachment(s)
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

farshizzo 01-17-2013 02:57 PM

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)



All times are GMT -7. The time now is 01:08 PM.

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