首页  | 最新话题  | List Attachments  | 搜寻
 欢迎 Guest  |  注册新使用者  |  登入
登入名称  密码
 

Sweet Home 3D Forum



No member browsing this thread
话题状态: Active
此话题中所有文章数: 312
文章(s): 312   页(s): 32   [ 1 2 3 4 5 6 7 8 9 10 | 下一页 ]
[ Jump to Last Post ]
发表新话题
作者
上一话题 此文章已经观看 828485 次 而且有 311 篇响应 下一话题
dorin
Advanced Member
会员大头照

Romania
注册日期: 2014年4月24日
Post Count: 693
状态: 离线
响应此篇文章  引言响应 
Generate roof plugin

In the series of YAUP: GenerateRoof plugin v1.0 alpha
!!! WARNING !!!

  • Fail on more than 90% of cases
  • Not all texture are correct rendered

Q:"Why you published like this?"
A:"It's a path trout jungle. Someone else could make a highway from this"

How I think to use:

  • Select a room (manually made or trout Autodimensioning))
  • Tools -> Generate roof... bla.. bla..
  • Set roof faces angle -> OK (optionally check inner polygons)
  • On preview click OK



Result something like this:


Now you have to set textures and texture angle:


Finally (if You have lack):


Don't forget!!!
It's an alpha stage AND
I'm not a programmer!

PS This is the test file .
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
----------------------------------------
[编辑文章 1 次, 最后修改: dorin 于 2021年10月3日 下午1:43:11]
[2021年10月3日 下午12:51:04] 友善打印    查看会员资料    传送私人讯息 [返回此篇文章顶端] 响应文章前,请先登入!  回到顶端 
hansmex
Advanced Member
会员大头照

Netherlands
注册日期: 2009年9月26日
Post Count: 4014
状态: 离线
响应此篇文章  引言响应 
Re: Generate roof plugin

Your plugin works on the test-file, and also on a simple square house. That's a start.

The problem with the textures is not new. Maybe Puybaret will solve it some day.

Thank you for your hard work, I'm sure it will get better :-)

H
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[2021年10月3日 下午2:04:46] 友善打印    查看会员资料    传送私人讯息 [返回此篇文章顶端] 响应文章前,请先登入!  回到顶端 
dorin
Advanced Member
会员大头照

Romania
注册日期: 2014年4月24日
Post Count: 693
状态: 离线
响应此篇文章  引言响应 
Re: Generate roof plugin

Thanks Hans!
As usual you are tolerant of me!
I'm sure it will get better :-)
I hope so also but not in my life time.
I think it's a wrong way (approach) or at least too complicated.
There are a lot of math which are over my helmet.
It's hard for a "One man show" and I need help. I haven't received any help so far and I don't think I will.
It is difficult to consult only with yourself.
I think to try with 3D plane approach but is not more simple.
My plan is to try another challenge: cross section plan.
We will see!!!
Thanks again for moral support!
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
[2021年10月3日 下午7:16:29] 友善打印    查看会员资料    传送私人讯息 [返回此篇文章顶端] 响应文章前,请先登入!  回到顶端 
Puybaret
Expert
会员大头照

France
注册日期: 2005年11月7日
Post Count: 9432
状态: 离线
响应此篇文章  引言响应 
Re: Generate roof plugin

Nice first version. Congratulations! smile
As inner polygons seem to be generally accurate, I guess you are on the good path to fix most issues.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[2021年10月5日 上午10:21:45] 友善打印    查看会员资料    传送私人讯息 [返回此篇文章顶端] 响应文章前,请先登入!  回到顶端 
dorin
Advanced Member
会员大头照

Romania
注册日期: 2014年4月24日
Post Count: 693
状态: 离线
响应此篇文章  引言响应 
Re: Generate roof plugin

Thanks Emmanuel!
inner polygons seem to be generally accurate

Of course, are made with your code from PlanControler.
The part responsible with roof computation (partially mine, partially stolen) don't work as expected.
I will let this path for other volunteers(if any).
As I've already say, I will try another approach (if the life time hope permit).
I've study about 3D Plane equation for few weeks and appear is not so complicated as seems at first view.
For this version I've work in frog, with out a plan and try, test and fail without a clear target.
The main path remain the same:
roof projection -> compute roof -> create shape -> add to Home Plane.
Now I'll try to be more clearly organized. I've start to make a logical diagram for this plugin like in '70+ years. I will put it here when I have first version.
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
[2021年10月5日 下午8:20:22] 友善打印    查看会员资料    传送私人讯息 [返回此篇文章顶端] 响应文章前,请先登入!  回到顶端 
YGYL
Advanced Member
会员大头照


注册日期: 2013年2月5日
Post Count: 157
状态: 离线
响应此篇文章  引言响应 
applause Re: Generate roof plugin

The reason for the texture error is that the texture coordinates are calculated incorrectly
-----obj example--------
mtllib Exemple9.mtl
g 1_1_1_1_1_1
usemtl default
v 4496.651 683.83997 1944.5
v 4080.21 267.83997 2360.941
v 5405.8 267.83997 2360.941
v 4739.619 582.83997 2045.1409
v 5090.0 582.83997 2045.1409
vn 0.0072383927 0.71531975 0.6987598
vn -0 0.70748127 0.7067321
vn 0.0048255385 0.7128935 0.7012557
vn 0.0072383634 0.7155777 0.6984956
vn -0 0.708003 0.7062094
vt 2.572153 3.0108545 0
vt 4.0783777 0.0 0
vt 4.0783777 4.7945237 0
vt 2.9361613 3.52434 0
vt 2.9361613 4.7916303 0

f 1/1/1 2/2/2 3/3/3
f 4/4/4 1/1/1 3/3/3
f 4/4/4 3/3/3 5/5/5
--------------------
5 polygon vertices V, corresponding to 5 VT
Bring 5 V's into 3D space,The apex of a partially sloping roof can be seen.

But it is not easy to calculate the correct texture coordinate value, and I don't know
There are such UV tools in other modeling software
[2021年10月10日 上午8:50:26] 友善打印    查看会员资料    传送私人讯息 [返回此篇文章顶端] 响应文章前,请先登入!  回到顶端 
Pelmenik
Newbie



New Zealand
注册日期: 2021年7月21日
Post Count: 2
状态: 离线
响应此篇文章  引言响应 
Re: Generate roof plugin

like this plug-in.
I tried it with a 25deg hipped roof for an L shaped house and it worked well. To set percentage and angle for a corrugated texture for each roof section was quick. Now I will attach the flashings and other details.

My usual way to make a roof is by deciding the roof angles, calculate walls for each roof section, .obj, and then lay them into each other at the decided angles and then attach flashings and any other details.
[2021年10月29日 上午5:12:27] 友善打印    查看会员资料    传送私人讯息 [返回此篇文章顶端] 响应文章前,请先登入!  回到顶端 
dorin
Advanced Member
会员大头照

Romania
注册日期: 2014年4月24日
Post Count: 693
状态: 离线
响应此篇文章  引言响应 
Re: Generate roof plugin

clown In the series of YAUP: Generate Roof plugin v.1.0
Don't expect too much!
As I promise I've try another approach: planes intersections.
There is advantages and disadvantages.

Anyway few words and pictures for this version:
It work for few simple roofs: rectangle and shape L, T, S, F(as described here).
Don't work as expected on complex shapes like E or round.
The angle could be adjusted before add roof to home plane.
The blue edges could be made invisible when You set texture.

BUGS:
-Sometimes make SH3D unresponsive;
-Texture coordinate are wrong on north faces;
-The interior face of roof are transparent.



Also on SurceForge .
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
[2021年12月25日 下午10:33:03] 友善打印    查看会员资料    传送私人讯息 [返回此篇文章顶端] 响应文章前,请先登入!  回到顶端 
Puybaret
Expert
会员大头照

France
注册日期: 2005年11月7日
Post Count: 9432
状态: 离线
响应此篇文章  引言响应 
Re: Generate roof plugin

Nice gift for Christmas! Thank you Dorin smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[2021年12月25日 下午10:47:01] 友善打印    查看会员资料    传送私人讯息 [返回此篇文章顶端] 响应文章前,请先登入!  回到顶端 
bdfd
Advanced Member
会员大头照

Western Europa
注册日期: 2014年3月29日
Post Count: 2614
状态: 离线
响应此篇文章  引言响应 
sad Re: Generate roof plugin

Hi,

Thank you for this first try.

After downloading and installing this plug-in, it works one time (for the garages) and not twice (for the main house) !

After done many tries, I think that I found first bug... biggrin



Why ?

Good luck and HNY !

sad
.
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
[2021年12月26日 上午7:47:33] 友善打印    查看会员资料    传送私人讯息 [返回此篇文章顶端] 响应文章前,请先登入!  回到顶端 
文章(s): 312   页(s): 32   [ 1 2 3 4 5 6 7 8 9 10 | 下一页 ]
[ Jump to Last Post ]
显示可以打印的版本  发表新话题

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© 版权所有 2024 Space Mushrooms - 保留所有权利