texture mapping

I'm having some serious difficulties here; I've imported a 3ds-model of a human body which is now a Shape3D-object. I now need to place a texture (picture of a human face) onto the face of the model. How should i do this? The closest I've gotten was trying doing what Andrew Davidson describes in his book "Killer Game Programming in Java" (http://fivedots.coe.psu.ac.th/~ad/jg/ch9/chap9.pdf page 16-17), but I don't understand it well enough to get it to work. I'm really stuck and definitely need some help here, been working on this problem for way too long already :(.

[584 byte] By [alcibiadesa] at [2007-10-2 20:04:35]
# 1
Can you not import the model with textures already attached?
_Breakfast_a at 2007-7-13 22:44:40 > top of Java-index,Security,Cryptography...
# 2
I whish, the texture is generated from a webcam stream.
alcibiadesa at 2007-7-13 22:44:40 > top of Java-index,Security,Cryptography...
# 3

That sounds quite non-trivial, unless the object it's being mapped to is very simple indeed.

I would start by applying a texture to the model in 3DS and then bringing it in to Java3D. You can then find the texture co-ordinates from that and use those as the basis for mapping your streamed textures.

_Breakfast_a at 2007-7-13 22:44:40 > top of Java-index,Security,Cryptography...
# 4
Thank you.
alcibiadesa at 2007-7-13 22:44:40 > top of Java-index,Security,Cryptography...
# 5

Hi,

I have read your post on java.net about texture mapping. I am dealing with the same problem.

I have built a Shape3d model of a face using either the pighin or candide model and now I have to apply the texture image of the human face.

I am considering of doing cylindrical or cube mapping but I am not sure what to do and whether these techniques will work.

Have you managed to solve the problem? if so could you give me some hint on how to proceed

Best Regards,

antonioinga at 2007-7-13 22:44:40 > top of Java-index,Security,Cryptography...