Jump to content


pleaseeee hlp (texture mapping)


4 replies to this topic

#1 naroqueen

    New Member

  • Members
  • Pip
  • 3 posts

Posted 15 February 2008 - 10:00 PM

hi all...
we are having a problm in our graduate project... in some phase in the project we needed to do meshing and triangulation for a person in a 2D image, wihch did succefully, thx God (now we have the vertices and triangles connecting them)... the next step is to prform texture mapping to our generated mesh... but after we set texture positions rendering the textured mesh... the output of texture mapping on my laptop wasn't properly drawn... although it's working properly at our supervisor's pc!! can anybody plz hlp us find a reason for this...

I'm sending a link having the original img and the output of the texture mapping on my laptop...

http://www.geocities...en/texture.html

we are using DirectX 9.0 in our texture mapping

#2 Hawkwind

    Member

  • Members
  • PipPip
  • 92 posts

Posted 19 February 2008 - 08:26 AM

It looks like the texture coordinate of one vertex of each triangle is possibly correct but then is being used for the whole triangle. Can't see why it would be okay on one machine and not on another though. I take it you've got the latest graphics drivers etc. ? are you using shaders or fixed function pipeline ?

#3 Nick

    Senior Member

  • Members
  • PipPipPipPip
  • 1225 posts

Posted 19 February 2008 - 11:25 AM

If you're using pretransformed coordinates, make sure that your w coordinates are not zero.

#4 naroqueen

    New Member

  • Members
  • Pip
  • 3 posts

Posted 19 February 2008 - 08:38 PM

Mr. Nick,
thxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx very much, that was exactly the problem... I don't know how to thank you.... :) this problem was driving me crazy... God bless you... thanks again.

#5 naroqueen

    New Member

  • Members
  • Pip
  • 3 posts

Posted 19 February 2008 - 08:40 PM

Mr. Hawkwind
thanks a lot for trying to help :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users