PDA

View Full Version : Two objects sharing same vertices



Vlasko
02-07-2004, 01:40 AM
How do I render them to look like one object?
Example: if I render a finger and then a hand they share some vertices but if I show them and rotate them they look like 2 objects not one

ZbuffeR
02-07-2004, 02:46 AM
Two different things :

1) shared vertices should have the same texcoords, normal, color, position to look smooth.

2) you seem to have problems with rotation of both objects.
an example :

drawHand
translate
drawFinger

if you want to rotate both :

rotate
drawHand
translate
drawFinger

Does it helps you ?

Vlasko
02-08-2004, 11:16 AM
Ok found the problem-some vertices(from first object) are lying in polygons of second object
v1
| \
| \
|v5 \
| | \
v2+--v3
| | /
|v6 /
| /
| /
v4
v1,v2,v3,v4,v5 are from object 1, v5,v6 from object 2
and they are lying on the same plane
how can they look like one object?