Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Coding for non-uniform/trapezoid landscapes

Introduction: I am trying to create a game that has the landscape laid out as an inverted sphere. Think of Inception. The idea for the sphere is a box smoothed over several times within Maya. This gives a reference in how the landscape would be laid out. To be able to properly fit the landscapes together, the landscape must be non-squared/trapezoid in shape. There would be some deformation of the height map if and when applied, but that is livable.

What I have tried: I have tried to lay out the landscape by hand, but the edges never match up and there are gaps. I have gone as small as 256 x 256 to see if it would at least line up most of the time, but still same issue.

What I want to do: - This will likely need a DEV answer and help if possible. I want to be able to modify via. code the landscapes that I create and assign them trapezoid shapes. Is there a direction that I can be guided too? There is hardly any documentation within the code to help with the uninitiated.

I would hate to have to drop the game idea because I think it would be an awesome idea.


Product Version: UE 4.19
more ▼

asked Aug 28 '18 at 10:42 PM in C++ Programming

avatar image


avatar image IndieGameCove Aug 29 '18 at 12:24 AM

do you need to use a landscape? I would think it be easier to model the inverted sphere landscape in maya then import it into ue4 as a static mesh.

Also just a thought, You'd have to throw a quick prototype together to see if this will work, but you could, in theory, use a normal flat landscape then put a camera directly over the player. The camera would then feed a render target material placed on a sphere that encircles the player.

alt text

hamsterball.png (43.5 kB)
avatar image IndieGameCove Aug 29 '18 at 01:20 AM

you responded as an answer rather than a comment. people might not bother to click your post if they see somebody already gave an answer.

I was a bit curious so I googled around for myself. Wouldn't be surprise if you've found similar stuff, but I'll share the links. here's a unity shader trick that curves the world based on the distance from camera. https://alastaira.wordpress.com/2013/10/25/animal-crossing-curved-world-shader/ If you're world is really big this could work. Maybe you could teleport/rotate the player around a bit to make it seem like he is sphere. for example, if he flies straight up you could discretely flip him around and swap out the landscape under him.

and here's a dev talk about building a procedural sphere for a planet. https://www.youtube.com/watch?v=mXTxQko-JH0&feature=youtu.be&t=30m41s

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I have actually tried something like that in the beginning, but it either doesn't work like I wanted it to or I didn't really have it setup very well. It would be a nice cheat to do. There will be some flying involved and not sure how that would work with the setup.

more ▼

answered Aug 29 '18 at 12:36 AM

avatar image


(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question