Hi there, 

Here is a Newbie Question: 

I'm trying to put a  lot of continuous photos of a street together so that they 
look like a panorama (or full view). I choose  photos oriented to roadside 
buildings which looks like "front view".
I created N(approximate 21) square(geometry) nodes, and every photo was used as 
a texture on each square node.
I wish to create a fake "stitch" effect of panorama, in the way of  arraying 
the squares in a line,  each ovarlapped(partly covered) with  its neighbours, 
and make its edge transparent (like alpha edge blend in OpenSceneGraph )
Now, I used Vertex Shader and Fragment Shader and has realized expected effect 
on one square, as figure below:


However, it doesn't work when I duplicated the Shader (above)  and implemented 
them to other square nodes.
My question, can I use many pairs of Shader in many Nodes? 
If yes, how should I do?
If not, how should I changed my method?

Below is my current effect
Left is a square with Shader, and right is a square with no Shader.
Their length is 512 pixels , and the distance of two squares is 256 pixels.


Thank you!

Cheers,
He

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62069#62069




Attachments: 
http://forum.openscenegraph.org//files/4747_1418704560.jpg_537.jpg
http://forum.openscenegraph.org//files/8b3a2a13_274a_4494_8ec8_6f1ec42fc6ef_120.png


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to