Game Development Community

Rendering a road

by Matthias Georgi · in Torque Game Engine · 04/03/2006 (1:27 pm) · 5 replies

Rendering roads in TGE without using the terrain engine seems not that easy.

I've used interiors so far, which has the drawback, that you are using a lot of textures to make the different curves and crossings etc.

Now I have the idea to create a path in the world editor and to write some code, which renders the road along the path, maybe as vector graphics plus a detail texture.

Is this possible or just a stupid idea?

Are there already any resources?

#1
04/03/2006 (1:38 pm)
Someone actually did do something like this recently. Apparently I didn't bookmark it like usually do with stuff like that also. I can't remember if it was in a plan, a thread or a resource.
#2
04/03/2006 (1:39 pm)
Http://www.garagegames.com/blogs/17990/8348

Not seen any progress on it forever though
#3
04/03/2006 (2:01 pm)
Thanks for the link.

The resource is mostly about the skidmarks, but doesn't tell anything, how the roads are made. Maybe anybody knows any details?

I don't know much about decals. Is it possible to place decals on the terrain?
#4
04/03/2006 (2:55 pm)
Ahh - you can check out Bretts other postings through this link

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=result&qdn=^17990&qsf=posted&qsd=desc

There are several with movies in them + explainations on how he did it.

Else write him an email :-)
#5
04/03/2006 (4:32 pm)
Well, I've read almost all the posts of Brett and I'm quite impressed by the amount of work he has done.

Finally I figured out, that I need to use Melv's fxRenderObject code. Probably I have to implement collision detection and shadow casting. Placing custom objects in the world editor should work, but I need to implement some methods for manipulating tracks.

Anyway, thanks for your help, Thomas.