Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
DB PROgrammer
19
Years of Service
User Offline
Joined: 9th Feb 2007
Location: Nowhere But Everywhere
Posted: 17th Sep 2007 20:20
I have been messing around with the vertexdata commands and moving around vertices. The problem is when I move a vertex on the model only one moves and the other one stays. How would I get both vertices to move.

I keep runing nowhere fast!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 17th Sep 2007 20:29
You can move them all independently. What code are you using? We can only guess at what you've done otherwise.
DB PROgrammer
19
Years of Service
User Offline
Joined: 9th Feb 2007
Location: Nowhere But Everywhere
Posted: 17th Sep 2007 20:34
You mean you can't mind read, Aww. Srry hear is the code.



I am trying to move the ones that are right next to egother so that the object has no gaps.

I keep runing nowhere fast!
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 17th Sep 2007 20:50
Each triangle is its own entity, so a plain is basically 2 seperate triangles. So to move one of the corners you have to move 2 vertices. In your example, vertex 1 is in same place as vertex 3.



Boo!
DB PROgrammer
19
Years of Service
User Offline
Joined: 9th Feb 2007
Location: Nowhere But Everywhere
Posted: 17th Sep 2007 23:34
I know but on a complicated object how would I find out what vertices are in the same position.

I keep runing nowhere fast!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Sep 2007 01:22
Good question.

Depends what you know about your object. A simple method (which might not be very efficient) would be to search through all the vertices to see which ones match the one you want to move.

If you are going to do this many times on an object with many vertices, it would be much more efficient to prepare a master list of unique vertices at the beginning of your program and find out which object vertices match each unique vertex.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 18th Sep 2007 01:22
You either:
- Search for them
or
- Use objects with indices so that common vertices are already reduced to single vertices

Utility plugins collection and
http://www.matrix1.demon.co.uk for older plug-ins and example code
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Sep 2007 01:39
Quote: "or
- Use objects with indices so that common vertices are already reduced to single vertices"


Even better.

And you could use IanM's welding code for doing just that...
DB PROgrammer
19
Years of Service
User Offline
Joined: 9th Feb 2007
Location: Nowhere But Everywhere
Posted: 18th Sep 2007 05:06 Edited at: 18th Sep 2007 20:46
Where is IanM's welding code?

Searching...
Found...

In case anyone is interested here it is.
http://forum.thegamecreators.com/?m=forum_view&t=104506&b=1

Thanks for the help!

I keep runing nowhere fast!

Login to post a reply

Server time is: 2026-06-09 22:27:41
Your offset time is: 2026-06-09 22:27:41