Results 1 to 7 of 7

Thread: Road surface issue

  1. #1

    Road surface issue

    OK...

    Let's say I have a repeating surface I want to apply to a road (stripes and such).

    The road was pretty twisty and curvy with a straightwawy on either end, so I had to construct it with multiple polys (for smoothness sake) and use the bend tool (with CAD points as background template).

    Is there a way to have this surface repeat following the contours of the road and not an orthangonal direction (XYZ)? I have attached a quick example.

    I know this technique works mainly with a per polygon object (i.e. the surface spaces out via polygon placement) and the illusion is seamless.

    If I try to construct the road with the necessary polys, I'll be crunching CPU too long.

    Any ideas?

    Thanks!

    Ty
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	FREEWAY MAP.jpg 
Views:	49 
Size:	70.1 KB 
ID:	69271  
    VT5 & LW 11.6 Abuser
    Core i7
    GeForce GT 540M
    Lots of RAM
    Certified CRT Fossil User

  2. #2
    Super Member Nangleator's Avatar
    Join Date
    Sep 2007
    Location
    Massachusetts
    Posts
    2,122
    UV Spider is your friend.

    We may have democracy, or we may have wealth concentrated in the hands of a few, but we cannot have both.
    ─Supreme Court Justice Louis D Brandeis

  3. #3
    Registered User THREEL's Avatar
    Join Date
    May 2006
    Location
    Bryan
    Posts
    1,226
    Hey there Ty,

    I live in the northwest corner of Ohio. Try this technique and see what you think. I made a road segment in a drawing program (CorelDRAW), and exported it as a JPEG file, some people use other formats like TARGA. Then, in modeler, I made one segment of road, the same size as my road segment image. I arrayed that section of road several times, and then, I used Merge Points to merge all of the overlapping points. Then, I applied my road segment image to the road (making sure the scale was the size of one road segment) in a planar projection. This should look like one long piece of road, now.

    After that, I copied the straight road object to another layer. In this layer, I turned the straight road curvy by using Spline Guide, which can be found at Modify>Transform>More>Spline Guide. Make sure you have Spline Guide set to Bend. Don't worry about throwing the image out of whack on the curvy road, because it will be fixed when we're finished. Once I got the curvy highway looking the way I wanted, I put the first straight road object in the foreground and the second curved road object (same object, just curved) in the background layer. From there, I went to the Map tab and ran a Bkg to Morph between these two layers. After completing this operation, I saved the object as a lwo file and opened it in layout.

    In layout, I loaded just the first layer of my road lwo file. From there, I opened the object's properties dialogue box, went to the Deform tab, clicked on Add Displacement, and added Morph Mixer. The object already should have the one morph target that we made in modeler, but we have to activate it here. Now, you may control how much curve you put into the road. You can even bend it in the opposite direction by moving the morph slider into negative territory.

    Here are some renders to show what I did. This technique took me about 20 minutes to setup.

    Don't forget, you will have to have a few different images for passing zones as opposed to no passing zones. In the real world, curves/bridges are wider than the straight away.

    I hope this helps!

    tHREEL, but you can call me AL.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	RoadSectionsDoubleLines001_020309.jpg 
Views:	48 
Size:	21.1 KB 
ID:	69310   Click image for larger version. 

Name:	StraightRoad001_020309.jpg 
Views:	60 
Size:	102.0 KB 
ID:	69311   Click image for larger version. 

Name:	CurvyRoad001_020309.jpg 
Views:	73 
Size:	111.1 KB 
ID:	69312  

  4. #4
    How Old? Really? Aww Heck colkai's Avatar
    Join Date
    Feb 2003
    Location
    Staffordshire
    Posts
    7,806
    For bending the road now, there is also the Pictrix Curl plugin, highly recommended.
    Too old to die young.

  5. #5
    Nangleator- Just downloaded the Vaughn tutorial on UV Spider. Thank you!

    Threel- Brilliant- that helps immensely! Thank you so much for that walk-through! Can't wait to try it!

    Colkai- I gotta check out that plugin! Thank you!

    Tyler
    VT5 & LW 11.6 Abuser
    Core i7
    GeForce GT 540M
    Lots of RAM
    Certified CRT Fossil User

  6. #6
    borkalork BORKALORK! biliousfrog's Avatar
    Join Date
    Dec 2003
    Location
    Lowestoft, UK
    Posts
    2,488
    In future, UV the road before bending it

    It's one of those things that you learn to look for and a reason that pre-planning a project is so important.

  7. #7
    Registered User THREEL's Avatar
    Join Date
    May 2006
    Location
    Bryan
    Posts
    1,226
    Quote Originally Posted by biliousfrog View Post
    In future, UV the road before bending it

    It's one of those things that you learn to look for and a reason that pre-planning a project is so important.
    UV mapping is great, when you can get the object that your working with to flatten out properly on the UV map. I've never had much success getting UV maps to behave quite right.

    With my method, UV mapping is completely unnecessary, and it is thought out before hand. A friend of mine made a river scene, using the same method, a few years back. His scene even had moving displacement, which caused the river to flow quite nicely, I might add.

    AL

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •