by Didier Bur » Wed Dec 16, 2009 10:25 pm
Hi all, After a long silence, here is another toy I wrote to export SU terrains to Unity3D game engine, which uses RAW heightmaps to create terrains. I thought it could be of any interest to others, so here it is. Features: - creates BMP or RAW images, greyscale or color, 8 bits or 16 bits from any view of your model (top view recommanded of course) - creates a colored mask where no faces found in the view - can crop the image to the model projection - can blur the heightmap before writing it. Extract in Plugins folder, PDF doc included. Regards, EDIT: new release May 5th 2010, instant bugsplat fix  Get the latest version from the PluginStore Download
Last edited by Didier Bur on Wed May 05, 2010 8:59 pm, edited 2 times in total.
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1383
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by thomthom » Wed Dec 16, 2009 10:28 pm
That is interesting. Could probably use the generated image as displacement texture in render engines.
-

thomthom
- PluginStore Author

-
- Posts: 19478
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: Thomas Thomassen
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
-
by CadFather » Wed Dec 16, 2009 11:06 pm
Thanks Didier, very interesting and good to see you around.. 
-

CadFather
- PluginStore Author

-
- Posts: 1032
- Joined: Fri Nov 16, 2007 11:03 am
- Location: London, Milano, Sicily
- Name: CadFather
- Operating system: Windows
- SketchUp version: 2014
- License type: Pro
- SketchUp use: landscape architecture
- Level of SketchUp: Advanced
-
by Gaieus » Thu Dec 17, 2009 8:48 am
Hi Didier, Indeed, long time no see and good to know you are still around. I have been looking at Unity for a while now so I guess this will come handy soon - thanks! 
-

Gaieus
-
- Posts: 27379
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Pixero » Thu Dec 17, 2009 10:49 am
I get a instant BugSplat upon starting SU. When I remove it from the plugins folder SU starts normally. Using latest SU and the english version of your script.
-

Pixero
-
- Posts: 2654
- Joined: Thu May 24, 2018 12:49 pm
- Location: Halmstad, Sweden
- Name: Pixero
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by TIG » Thu Dec 17, 2009 2:48 pm
Same here... 
TIG
-

TIG
- Global Moderator
-
- Posts: 20265
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by ilay7k » Thu Dec 17, 2009 6:28 pm
Thanks Works at 6 version, but slow, seems my pc is slow same thing at 7 as TIG and Pixero
-
ilay7k
-
- Posts: 341
- Joined: Wed Nov 14, 2007 3:49 pm
- Location: Kazakhstan
- Name: Ilya Shpilkin
- Operating system: Windows
- SketchUp version: 8
- License type: Free/Make
- SketchUp use: architecture
- Level of SketchUp: Advanced
by DIEGO-RODRIGUEZ » Thu Dec 17, 2009 7:48 pm
thank you very much for sharing. Could make the menu visible, in order to personalize it. the plugins *.rbs , and menu of plugins *.rb
-
DIEGO-RODRIGUEZ
- Banned
-
- Posts: 272
- Joined: Sat Jan 10, 2009 6:20 pm
- Location: Argentina - Mar del plata
- Name: diego
-
by Didier Bur » Thu Dec 17, 2009 7:50 pm
I get a instant BugSplat upon starting SU.  Are you on Mac, guys ? or do you use 7.1. ? Always the same boring SU version update problems with rubies, I guess...
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1383
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by TIG » Thu Dec 17, 2009 8:05 pm
PC, Vista, with latest SUp v7.1+M1
TIG
-

TIG
- Global Moderator
-
- Posts: 20265
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Didier Bur » Thu Dec 17, 2009 8:29 pm
@TIG:
I'm on SU v7.0.8657 Do you know of any change in the API for 7.1. ?
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1383
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by TIG » Thu Dec 17, 2009 8:37 pm
Didier Bur wrote:@TIG: I'm on SU v7.0.8657 Do you know of any change in the API for 7.1. ?
- arccurve.is_polygon? - adding entities to groups initially seems less bugsplatty but it's not documented... so none that should affect this...
Last edited by TIG on Thu Dec 17, 2009 8:51 pm, edited 1 time in total.
TIG
-

TIG
- Global Moderator
-
- Posts: 20265
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by thomthom » Thu Dec 17, 2009 8:49 pm
Didier Bur wrote:@TIG:
I'm on SU v7.0.8657 Do you know of any change in the API for 7.1. ?
Model.number_faces only additions AFIK
-

thomthom
- PluginStore Author

-
- Posts: 19478
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: Thomas Thomassen
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
-
by TIG » Thu Dec 17, 2009 8:52 pm
Have you modified any 'built-in' methods that might clash with others mods ?
TIG
-

TIG
- Global Moderator
-
- Posts: 20265
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Didier Bur » Thu Dec 17, 2009 11:15 pm
@TIG: No, I never do that !
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1383
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Didier Bur » Thu Dec 17, 2009 11:17 pm
@TIG: No, I never do that !
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1383
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by AcesHigh » Fri Dec 18, 2009 1:23 am
awesome Didier! I had asked for such a plugin some months ago! It will be great to create some bumpmaps (or displacement maps) to use with VRAY!
-
AcesHigh
-
- Posts: 553
- Joined: Wed Mar 05, 2008 1:58 pm
by EarthMover » Fri Dec 18, 2009 3:14 am
Didier I extracted the plugin to the plugins folder and it causes SU to crash upon opening. I removed the plugin and SU opened fine.
3D Artist at Clearstory 3D Imaging Guide Tool at Winning With Sketchup Content Creator at Skapeup
-

EarthMover
- Premium Member

-
- Posts: 1801
- Joined: Fri Sep 12, 2008 9:06 pm
- Location: Eastern Pennsylvania
- Name: EarthMover
- Operating system: Windows
- SketchUp version: 2016
- License type: Pro
- SketchUp use: landscape architecture
- Level of SketchUp: Advanced
-
by Didier Bur » Fri Dec 18, 2009 6:53 pm
It seems that crappy Vista is causing the problem (as usual). Since the script writes binary BMP or RAW files, ensure you have the right to do this (be logged as admin ?) Any other clue anyone ?
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1383
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Pixero » Sat Dec 19, 2009 7:32 am
Well...I had the same problems on XP at work, so... it can't be just Vista.
-

Pixero
-
- Posts: 2654
- Joined: Thu May 24, 2018 12:49 pm
- Location: Halmstad, Sweden
- Name: Pixero
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by notareal » Sat Dec 19, 2009 1:27 pm
 Nice tool. Wonder if hdr or exr would be possible as file options.
-
notareal
- Thea Render Support

-
- Posts: 1075
- Joined: Tue Nov 13, 2007 9:54 pm
- Location: Oulu, Finland
- Name: notareal
-
by TIG » Sat Dec 19, 2009 4:37 pm
Didier Bur wrote:It seems that crappy Vista is causing the problem (as usual). Since the script writes binary BMP or RAW files, ensure you have the right to do this (be logged as admin ?) Any other clue anyone ?
Where does it write these to? I am an admin so it shouldn't matter. Also it crashes SUp BEFORE you try to do anything - just by loading it you get the problem.
TIG
-

TIG
- Global Moderator
-
- Posts: 20265
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by charly2008 » Sat Dec 19, 2009 5:13 pm
Hi TIG,
i have the same problem with XP. SU7 was just by loading and then came a Bugsplat.
Karlheinz
He who makes no mistakes, makes nothing
-

charly2008
-
- Posts: 1253
- Joined: Wed Apr 08, 2009 12:03 pm
- Name: KHA
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by Didier Bur » Sat Dec 19, 2009 6:58 pm
Where does it write these to?
It writes images at the same location than the SKP is. it crashes SUp BEFORE you try to do anything - just by loading it
That's what is really strange. I don't overwrite built-in methods, don't do any 'require' or something that involve other files. Would you please test this version and tell me if the problem persists ? 
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1383
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Pixero » Sat Dec 19, 2009 7:05 pm
Still crashes instantly while loading SU. Now on Windows 7 64bit. SU 7.1.
-

Pixero
-
- Posts: 2654
- Joined: Thu May 24, 2018 12:49 pm
- Location: Halmstad, Sweden
- Name: Pixero
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by charly2008 » Sat Dec 19, 2009 7:25 pm
it still crashes while loading SU.
Karlheinz
He who makes no mistakes, makes nothing
-

charly2008
-
- Posts: 1253
- Joined: Wed Apr 08, 2009 12:03 pm
- Name: KHA
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Advanced
by TIG » Sat Dec 19, 2009 8:19 pm
Test file = instant Bugsplat. Didier - why not PM or email the 'uncompiled' script to one of us for debugging - you can trust me  ... You know that I hack into your encrypted rb files all of the time, but the rbs ones are a bit harder... just easier if you supply it unencrypted... It must be simple to fix...
TIG
-

TIG
- Global Moderator
-
- Posts: 20265
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by georglorenz » Sat Jan 16, 2010 4:11 am
Slightly off topic here: Is there a plugin that does the exact opposite of this one? That is creating a terrain from an greyscale image (.jpg or anything else)? Thank you. G
-
georglorenz
-
- Posts: 16
- Joined: Thu Apr 09, 2009 9:04 pm
- Name: georglorenz
by Chris Fullmer » Sat Jan 16, 2010 4:46 am
There is, Didier wrote a script that imports a heightmap image into SU. I forget what its called, but it was written by didier bur and should be posted here on the forum somewhere....
Chris
-

Chris Fullmer
- SketchUp Team

-
- Posts: 6929
- Joined: Wed Nov 21, 2007 3:21 am
- Location: Boulder, CO
- Name: Chris Fullmer
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: landscape architecture
- Level of SketchUp: Advanced
-
by notareal » Sat Jan 16, 2010 3:07 pm
Nice work!
-
notareal
- Thea Render Support

-
- Posts: 1075
- Joined: Tue Nov 13, 2007 9:54 pm
- Location: Oulu, Finland
- Name: notareal
-
by Ad Machine » 5 minutes ago
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Plugins
|