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.

Code Snippets / [DBPro] Roads on advanced terrain... real easy method

Author
Message
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 14th Jun 2005 03:54
Hi all,

Just something that's been getting mouldy on my hard drive - it's a demo of an easy way to add detail layers onto terrain. It could be used for any type of terrain but AT is already optimised.

Check out the images in the terrain folder and mess around to see how they work .

http://mysite.wanadoo-members.co.uk/van-b-software/ATD_Roads.zip


Van-B

Attachments

Login to view attachments
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 14th Jun 2005 19:07
I'm sure I could learn plenty from your code, if only I could work out what the hell you are doing!

BatVink
Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 15th Jun 2005 00:01
Van B and his famous code (always without comments!)

-This...is my boomstick!
DcZee
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 15th Jun 2005 05:59
Looks great,...and im working on detail mapping,..but i cant seem to download your zip file. It gets about 300k into it then says the download is complete,...could you have a look at what might be causing that?
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 15th Jun 2005 17:15 Edited at: 15th Jun 2005 17:16
Hehe, that's why it's been festering for so long, it should really have a tutorial thing to go along with it. I shall see what I can do about adding more comments or making a document up explaining it all.

I was thinking yesterday that vertice colouring is very much underused - that's how it manages the smoth corners on the road, it's a special transparency mode that works in 1-bit, but still blends to make the curve. With vert colouring it would be possible to project curves over polygons, like if you had a really low polygon car and wanted nice smooth wheel recesses, you could get a very smooth curved hole with just a few polygons, and it'd look like you'd spent hundreds of polys on it. Cars are a good example because the bodywork can be a single mesh, which is ideal for this sort of thing as memblocks only really like single mesh objects. That's all this demo is, just some little alpha coloured chunks of terrain with different textures to make up patches of detail.

The download seems fire here, perhaps it got interupted and is conflicting with it's own file - I'd suggest doing a search on your hard disk for ATD_Roads.zip and deleting it then trying again.


Van-B

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 15th Jun 2005 18:08
A tutorial would be fantastic. You've done some nifty stuff in this code, and it probably beyond what 80% of us can do. Vert manipulation is possibly the "next level" for a lot of us here.

BatVink
DcZee
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 23rd Jun 2005 03:29
I guess it doesnt like me,..LOL,..I suspect that your server doesnt appreciate dialup users and is cutting me off part way through the download. If you have time to offer this file through some other medium it would be greatly appreciated.
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 23rd Jun 2005 21:06
I'm really busy right now, but I'll try and make a tutorial for it and upload it somewhere decent, maybe ask Rich if he can host it for me (or feature it in the newsie). Perhaps I can email it to you instead in the meantime though.

If anyone else spots this and would like it emailed as well, just post your email addy (with a space between each side of the '@' to throw off spam bots).

The problem is that there's quite a big media load with this example, so I can't just post the code as it would'nt work and explaining the mask layers without working examples would give me a headache .


Van-B

Login to post a reply

Server time is: 2024-11-27 02:12:07
Your offset time is: 2024-11-27 02:12:07