Becky wrote:
> Could you tell me what do you mean "define a mapping from vertex numbers to 
> st coordinate"? Could I do like this in the fragment shader?


Hi Becky!

The question of yours I was referring to was

Becky wrote:
> Would someone tell me how to access all the vertexes of a 3d model in the 
> vertex shader? 


Given a model of M vertices, M ∈ I := {0....M-1}  you want to encode into a 
d-dimensional texture, you have to define a an (injective, "one-on-one") 
function

I := {0....M-1} ⊂ {ℕ+ ∪ {0}}
f:  I -> ℝ^d

and store and retrieve vertex data according to that mapping.

With kind regards, 
S.

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





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

Reply via email to