[Plugin] Mirror UV Mapping (1.0.3)

[Plugin] Mirror UV Mapping (1.0.3)

Postby thomthom » Wed Dec 03, 2008 8:19 pm

Obsolete
The functionality of this plugin has been merged with UV Toolkit

---

The background for this plugin is that I got a large collection of X-Frog trees. When imported into SketchUp the backface texture is messed up.

BillW was nice enough to provide a code snippet that copied the texture and UV mapping from one side to the other. http://www.sketchucation.com/forums/scf ... 15#p110957

I just wrapped it up into two function to allow frontface to backface and backface to front face and made it crawl into nested groups/components.

It's also much faster that I expected. With a test tree of 82K faces and 132K edges it took about 2 minutes with SU6 and about 30 seconds with SU7.

Update:
Version 1.0.1
  • Moved functions into module
  • Rearranged the menus
  • Accounted for faces with tree vertices
Version 1.0.2
  • Fixed some typo in the code
Version 1.0.3
  • Now transfer plain colour material
For some reason the script throws an exception on some occasions with faces with tree vertices. I don't understand why. Nor do I see any effect of it in the model. But I've worked around it by adding an exception handler. If anyone can shed some light to why it throws an exception some times I'd be grateful.




EU32-1.jpg

Full Size

EU32-2.jpg

Full Size


---

Obsolete
The functionality of this plugin has been merged with UV Toolkit
2
Last edited by thomthom on Thu Oct 15, 2009 2:23 pm, edited 5 times in total.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Mirror UV Mapping

Postby tomasz » Wed Dec 03, 2008 11:08 pm

Thanks Thomas :) How SU handle several X-frog trees in a model? Does it slow down the whole thing a lot (probably no edges displayed).

Tomasz
0

tomasz 
SU2TH & SU2KT Developer
 

Re: [Plugin] Mirror UV Mapping

Postby thomthom » Wed Dec 03, 2008 11:36 pm

You want to disable edges and transparency. And maybe even turn off textures. Basically the very last thing you add to the scene before you render.

Use 3D trees for the foreground and use the billboards for the background..
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Mirror UV Mapping

Postby bianhai » Thu Dec 04, 2008 1:17 am

Thanks Thomas ! :thumb:
0

bianhai 
Banned
 

Re: [Plugin] Mirror UV Mapping

Postby silver_shadow » Thu Dec 04, 2008 6:24 am

free agent would be sooooooooo happy. :enlight:
0

silver_shadow 
 

Re: [Plugin] Mirror UV Mapping

Postby free agent » Thu Dec 04, 2008 8:36 am

...and he is :mrgreen:
0
User avatar
free agent 
 

Re: [Plugin] Mirror UV Mapping

Postby davide.skp » Thu Dec 04, 2008 12:02 pm

tom, I test billW code and your too but still some problem...

http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=13083&st=0&sk=t&sd=a&start=30

I whant to create a library of very light 3d trees made with tree [d] and gile [s]

can you help me ....
0

davide.skp 
 

Re: [Plugin] Mirror UV Mapping

Postby free agent » Thu Dec 04, 2008 1:25 pm

Quote: I've discovered that it doesn't handle faces with less than three points. When importing X-Frog trees the leaf tends to be split in half forming two triangles. So until I've corrected this, make sure you enable Merge Coplanar Faces in the Import Options

do you mean four points? u cant get a face with 2 points
0
User avatar
free agent 
 

Re: [Plugin] Mirror UV Mapping

Postby thomthom » Thu Dec 04, 2008 1:51 pm

Ah, you discovered my cunning test to see if anyone actually read this stuff! ...erh.. yea.. that's what I meant. less than four points.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Mirror UV Mapping (1.0.2)

Postby free agent » Thu Dec 04, 2008 9:28 pm

:fro: no worries thom just keeping you on ur toes
0
User avatar
free agent 
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby thomthom » Mon Mar 16, 2009 4:28 pm

Updated so it transfers plain colour materials as well.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby MALAISE » Mon Mar 16, 2009 4:42 pm

Thanks Thomthom

MALAISE :)
0
La Connaissance n'a de valeur que partagée
User avatar
MALAISE 
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby Chris Fullmer » Mon Mar 16, 2009 4:54 pm

Great Thom, very cool!

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Mirror UV Mapping

Postby ideas_arte » Wed Apr 15, 2009 5:38 pm

davide.skp wrote:I whant to create a library of very light 3d trees made with tree [d] and gile [s]

can you help me ....



YES..! I WANT TO PARTICIPATE, INCLUDES TO ME :berserk: I have many Xfrog :berserk:

Thank you very much thomthom for plugin,
0

ideas_arte 
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby solo » Wed Apr 15, 2009 5:57 pm

Someone mention ex frog?

0
www.solos-art.com

I'm a social vegan, I avoid meet.
User avatar
solo 
Global Moderator
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby thomthom » Wed Apr 15, 2009 6:08 pm

Errrhh... :puke:
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby davide.skp » Fri Apr 24, 2009 10:22 am

Iván, for now i'm playng with tree[d] and Hothouse 3d... this one, hothouse, seems very very good!!! ... I try xfrog but ... too expensive ((and complexxx) for me :-( ...
so, TRY HotHouse ...
A) create your plant with hothouse
B) for a light model create some billboard ... from a photo or directly from HotHouse
C) import directly in sk
d) With the WONNDERRFULLL ThoMThom'plugin Mirror the uv map...
very very funny!!!
0

davide.skp 
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby ideas_arte » Fri Apr 24, 2009 7:08 pm

davide.skp wrote:Iván, for now i'm playng with tree[d] and Hothouse 3d... this one, hothouse, seems very very good!!! ... I try xfrog but ... too expensive ((and complexxx) for me :-( ...
so, TRY HotHouse ...
A) create your plant with hothouse
B) for a light model create some billboard ... from a photo or directly from HotHouse
C) import directly in sk
d) With the WONNDERRFULLL ThoMThom'plugin Mirror the uv map...
very very funny!!!



Thank you very much..! to share this info, :D I will try to make some little pines :mrgreen:

Take care :thumb:
0

ideas_arte 
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby free agent » Tue May 26, 2009 11:55 am

thomthom have u looked into the texture mirroring to the backfaces of triangles? is it possible?
0
User avatar
free agent 
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby thomthom » Tue May 26, 2009 2:35 pm

It doesn't mirror triangles?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby free agent » Tue May 26, 2009 8:56 pm

woah thats wierd, it refuses to mirror on a mesh ive imported, but works fine on a quick separate test... can i send you the problem mesh?
0
User avatar
free agent 
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby thomthom » Tue May 26, 2009 9:01 pm

Yea, do so. I'll have a look at it.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby utiler » Wed May 27, 2009 1:29 am

solo wrote:Someone mention ex frog?




I liked it Pete..... :roflmao: :roflmao:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby thomthom » Wed May 27, 2009 12:46 pm

Free Agent wrote:woah thats wierd, it refuses to mirror on a mesh ive imported, but works fine on a quick separate test... can i send you the problem mesh?

If you tried to email me anything then it might very well be lost. My host messed about with some files and I lost my email aliases. ...*grumble*...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby araki009 » Thu Jul 16, 2009 12:47 pm

Thank you very much thomthom for plugin :sketchstatic: :sketchstatic:
0

araki009 
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby chango70 » Thu Jul 16, 2009 6:48 pm

Tom sorry for my stupid question. What exactly does this plug in do? Apply texture to both sides?
0

chango70 
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby thomthom » Thu Jul 16, 2009 7:05 pm

chango70 wrote:Tom sorry for my stupid question. What exactly does this plug in do? Apply texture to both sides?

It copies the texture and it's UV coordinates from one side and to the opposite side.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby chango70 » Fri Jul 17, 2009 4:30 pm

Ok thanks very useful in certain situations.
0

chango70 
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby Yanman » Tue Oct 13, 2009 5:27 am

Hi thomthom .Thank you very much for Good plugin. :thumb: :thumb:
0

Yanman 
 

Re: [Plugin] Mirror UV Mapping (1.0.3)

Postby Ruturaj » Fri Oct 16, 2009 9:03 am

Thanks

:D :mrgreen: :) ;) :o
0
Thanks,
RuturaJ

Ruturaj 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 19 guests

Visit our sponsors: