Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 65
Posts: 65   Pages: 7   [ Previous Page | 1 2 3 4 5 6 7 ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 214609 times and has 64 replies Next Thread
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1209
Status: Offline
Reply to this Post  Reply with Quote 
Re: Terrain Generator plug-in

where the terrain will be shown higher than it should be
I bet the difference is the thickness of the floor.
Read the manual "Levels explained" which you can find on the manuals section on dodecagon.nl. This will explain the relation between level height and floor thickness.
Understand that a generated terrain is an object, the same as any other piece of furniture. Which also means you can not 'elevate' it downwards (negative elevation). You can place it on a lower level and elevate it to the elevation you need.
This (very old) tip&trick explains creating a pool but it also reveals how to work on a lower level without a floor above it.
----------------------------------------
Dodecagon.nl
950+ 3D models, manuals, and projects
[Dec 30, 2024, 4:12:39 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
c0d3z3r0
Newbie




Joined: Dec 18, 2024
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: Terrain Generator plug-in

I never said I want to elevate downwards :-)

Try this:
1) Create a new SH3D file, add another level
2) Add a room at both levels
3) Create a Terrain on the upper room

You'll see that the plugin creates the terrain on the lower level. When pressing OK, it still gets put to the upper level (which is correct).
[Dec 30, 2024, 7:04:54 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1209
Status: Offline
Reply to this Post  Reply with Quote 
Re: Terrain Generator plug-in

You'll see that the plugin creates the terrain on the lower level. When pressing OK, it still gets put to the upper level (which is correct).
Ah, you mean while in the generator dialog. I never noticed that before but you are right. I'm not sure if that could be considered a bug, terrain usually resides at the 0 level and the plugin is probably designed with that in mind. What do you do with a terrain floating on a higher level?

I also tried it with a level below ground. While in the generator dialog the display is still from the 0 level. Then I elevated all three levels 100cm, resulting in none of the levels having a 0 elevation. The generator still displays at elevation 0. So that is consistent: it always displays at elevation 0.

The only downside I can see is that the outline of the walls in the generator dialog is from the 0 level and not the level where you selected the room to create the terrain from. I do see the outlines of the other levels too (in the generator dialog). Considering that, the walls shown should have been those from the selected room level. If you know this you can work around it by copying your room and walls in a new file and use that to generate the terrain, then copy the generated object back to your original file.

Some extra knowledge:
The information for the terrain is stored in the room section in the Home.xml file in your .sh3d file. You can delete the generated terrain object, select the room you used and start the generator again. It will read from the room the elevations and create a new object with OK. Nice if you want to make little changes without starting all over again.
After you generated the terrain you can move the room to a separate level and make that level invisible. Or even better, move it to a separate file. That way you keep a backup of the terrain data without the room itself showing in your project.
Keep in mind that a large terrain with a fine grid will make your .sh3d file grow considerably: each point in the grid is a line in the Home.xml file. A large terrain easily spans hundreds of lines. That's why moving the room object to a separate file is a good idea. Your original project will only have the generated terrain object and not all the room overhead that is used to create the object.
----------------------------------------
Dodecagon.nl
950+ 3D models, manuals, and projects
[Dec 30, 2024, 8:54:48 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
c0d3z3r0
Newbie




Joined: Dec 18, 2024
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: Terrain Generator plug-in

> So that is consistent: it always displays at elevation 0.

Exactly, I hadn't realized that before as well.

> terrain usually resides at the 0 level and the plugin is probably designed with that in mind. What do you do with a terrain floating on a higher level?

Usually yes, but there are exceptions as always, e.g. when you want to model the terrain based on an architect's plan where zero is the top of your base plate, without having to do a lot of calculations.

It *shouln't* be a huge code change and in the mean time at least I managed to get the grid at the right elevation, but didn't get the rest working. At least I tried... I'm confident it'd be an easy task for @Puybaret
[Dec 31, 2024, 1:16:05 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
c0d3z3r0
Newbie




Joined: Dec 18, 2024
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: Terrain Generator plug-in

Clarification on my example above: the idea is to model the terrain on a lower level in this case
[Dec 31, 2024, 1:18:19 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 65   Pages: 7   [ Previous Page | 1 2 3 4 5 6 7 ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved