|
flat model to terrain?
#450602
04/19/15 10:02
04/19/15 10:02
|
Joined: Oct 2013
Posts: 31
JerahYalyn
OP
Newbie
|
OP
Newbie
Joined: Oct 2013
Posts: 31
|
hi, I made couple of road models which is just a flat model with couple of vertices, like this. How do I flat it on the terrain surface without just like it's a part of the terrain. I know I have to look for the terrain normal for this but it confuses me on how to implement it. Setting it's orientation to terrain surface is not enough since the road model with usually intersect multiple terrain surface and it will look funny if a part of the road is not connected to the surface. And also is the a way to enable keep both normal map and detailed texture for the terrain. When set my terrain to use normal map to for terrain shadow it ignores the detail map resulting a bad terrain detail up close.
|
|
|
Re: flat model to terrain?
[Re: Superku]
#450634
04/19/15 20:02
04/19/15 20:02
|
Malice
Unregistered
|
Malice
Unregistered
|
Why not simply use bmap pixel instructions to paint the road texture onto the terrain at the location? or can this not be done for some reason?
|
|
|
Re: flat model to terrain?
[Re: JerahYalyn]
#450656
04/20/15 09:04
04/20/15 09:04
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
it would be simpler if your modeler , modeled the road on to the terrain ,for eg. in 3dstudio max ,you could create the terrain with a displace modifier ,on a plane with sections in width and height to the amount of tiles needed , then you could export and import in to MED and convert to terrain , and convert your road separately .
you could also lightmap it etc..
you can also convert both as a single model but that would miss out on real terrain performance.
coding it would be difficult ,however if I am not mistaken tust has spline roads ?
Compulsive compiler
|
|
|
Re: flat model to terrain?
[Re: Wjbender]
#450661
04/20/15 10:36
04/20/15 10:36
|
Joined: Oct 2013
Posts: 31
JerahYalyn
OP
Newbie
|
OP
Newbie
Joined: Oct 2013
Posts: 31
|
That would make allot of road models if I export it individually. I have several models of the road including different curvs. One idea I have is to move the model's vertecis based on the terrain slope since I have a scaled terrain and adjust the uv. I will only call the function once per model during initialization of the level. Again it is still in my head and I have to look in to the manual for all functions that I can use.
Last edited by JerahYalyn; 04/20/15 12:18.
|
|
|
Re: flat model to terrain?
[Re: JerahYalyn]
#450664
04/20/15 11:45
04/20/15 11:45
|
Joined: Dec 2011
Posts: 1,823 Netherlands
Reconnoiter
Serious User
|
Serious User
Joined: Dec 2011
Posts: 1,823
Netherlands
|
Oh sry I see now you meant laying the road over the terrain as like a curtain over a floor (maybe bad analogy? ). I thought you just meant changing the tilt/angle. You could change the vertices. Maybe trace to get the world coordinates of the terrain points and than convert them to local coordinates (see vector calculations). I think that will work, don't know for sure cause never tried moving vertices.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|