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.

DarkBASIC Professional Discussion / Merging terrain tiles with/for DBP

Author
Message
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 5th Aug 2005 21:43
I have 32 terrain tiles which have an equal amount of polygons and mostly line up, but have slight imperfections along the edges. Does anyone know how I might, with DBP or another tool, line up the edges to match perfectly, without merging the objects together? That is, without manually lining up thousands of vertices

If I looking for blog
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 5th Aug 2005 21:56
You mean you have 32 different terrains and each one as a tile? I haven't had any problems making terrains line up using the heightmaps that are perfectly tileable. I would write a memblock routine to line up the heightmaps as it would be faster than writing a memblock routine to line up the polys.

Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 5th Aug 2005 22:09
They're not advanced terrains, they're objects I'm using as terrains. In the classical definition. Thanks though

If I looking for blog
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 5th Aug 2005 22:27
I see. The only option I can think of is editing all the outside edge verts positions to match the object's near it using memblocks or the new vert manip commands in DBP. You should be able to do it automatically instead of having to change each one manually. Just get the verts positions from the side you want to line up and copy them over to the other object.

Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 5th Aug 2005 23:21
That's a good idea, I'll just have to figure the vertex commands out. Thanks

If I looking for blog
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 6th Aug 2005 03:42
32 is an odd number of terrains it seems what layout are you using? 4 x 8

I have been wanting to do a merging type code for my matrix to object code so you can line up tiled matrix objects. I may start on it tonight.

Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 6th Aug 2005 07:35
Quote: " 32 is an odd number of terrains it seems what layout are you using? 4 x 8"


My bad, I meant 36. It's 6x6 tiles

I've got the vertex commands down. Problem is I've realized DBP only exports to .DBO format... and I need to edit these objects later. Definite problem because only DBP supports DBO

If I looking for blog
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 6th Aug 2005 08:00
DBP can save them as a .x but you will lose any limb info. Save mesh.

Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 6th Aug 2005 18:01
Oh right, I'm saved (no pun intended ). Thanks for all your help

If I looking for blog
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 8th Aug 2005 12:25
Well I finally got around to messing with my alignment code and either I am way too sleepy or it is more complicated than I though This however works with my matrix objects lining up all 4 sides, but seems a bit too complex for what it does.



Login to post a reply

Server time is: 2025-06-04 19:22:45
Your offset time is: 2025-06-04 19:22:45