Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Making roads; The best way...
Topic Started: Dec 11 2010, 02:35 PM (154 Views)
112 in actie
Member Avatar
Member
[ *  * ]
Hello,

I now have a big terrain and I want to add roads to that map, but I don't know what is the best option to do that.

I have thought abouts alpha and texture maps, but if I want to use them I will need a very high resolution of the alphamap to get a sharp border of the roads. Another option I was thinking about are decals, but for that I need a large number of objects and especially the corners will be very difficult.

Is here anyone who have done it before and know a good solution?

Ronald
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
112 in actie
Dec 11 2010, 02:35 PM
Another option I was thinking about are decals
This is probably the best option as roads are static and won't be moving. And you won't be needing any objects at all for this reason. Simply deactivate the objects after the roads been created, and it's like using no objects at all.
Offline Profile Quote Post Goto Top
 
112 in actie
Member Avatar
Member
[ *  * ]
I am now using decals, it's working nice, but only the height isnog working for me. After the creation I have set the height to 10 and called Step() once. With one object, this was working fine. But when I make more objects, the decals disapear, does anyone know what I am doing wrong?

Create-event obj_road_decal:
Code:
 
terrain_object=obj_map
center_x=obj_road_spawner.x
center_y=obj_road_spawner.y
size=obj_road_spawner.size

CreateTerrainDecal()
SetMaterialStageTexture(0,0,obj_road_spawner.tex)

z=10
Step()

instance_deactivate_object(id)
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply