Maxwell Render

Maxwell Render Information Repository
It is currently Sat May 25, 2013 11:14 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Mon Jun 21, 2010 3:25 pm 
User avatar

Joined: Mon Aug 20, 2007 2:49 pm
Posts: 515
Location: Warwickshire, UK
Hey. It's thankfully been a while since I've needed to post in here, but one thing that's popped up a few times is the fact I can't see materials applied to objects that have been patterned or mirrored in SolidWorks, and I was wondering if there was a way to remedy this. It can make things difficult when trying to get an overview of a scene and seeing what still needs materials or not. Here's a screenshot of what I mean...

Image

As you can see, the grid (window frame) has had a green material applied to it which shows up fine. The two and a bit window frames directly to the right - which are seperate bodies but generated by using the linear pattern feature - have also had the same material applied but you can't see it. If I select the objects in the list the materials are applied and when I hit render they do show up (I believe). They're just not showing in SolidWorks... Is there any way to have them appear?

I'm using SolidWorks 2008 with the Maxwell 1.7 plugin on Windows XP 64-bit OS.

Any help would be great. Thanks.

_________________
Visario / web > blog > twitter > youtube > gallery


Top
 Profile  
 
PostPosted: Mon Jun 21, 2010 3:54 pm 
User avatar

Joined: Wed Nov 16, 2005 3:02 am
Posts: 7585
Location: desk #861
This scenario seems to be working fine here for me on SW2009 & SW2010, but unfortunately I don't have SW2008 installed anymore. It looks like you don't have SW's RealView enabled, so that shouldn't be a problem; what happens if you use the 'Refresh Viewport Materials' button at the top of the plugin's Database Manager window?

_________________
Next Limit Team


Top
 Profile  
 
PostPosted: Tue Jun 22, 2010 12:16 pm 
User avatar

Joined: Mon Aug 20, 2007 2:49 pm
Posts: 515
Location: Warwickshire, UK
Hi JD, thanks for the reply. Unfortunately nothing changes when I click that button. I've since found that the materials show up on these objects if I select each individual face and apply the material to it... but that's not really an option here as it'd take forever.

_________________
Visario / web > blog > twitter > youtube > gallery


Top
 Profile  
 
PostPosted: Tue Jun 22, 2010 2:47 pm 
User avatar

Joined: Wed Nov 16, 2005 3:02 am
Posts: 7585
Location: desk #861
Would you mind zipping and sending me the file (jeremy at nextlimit dot com), so that I can take a look. I have a theory about what might be happening, but it would be quickest to check it against the file.

_________________
Next Limit Team


Top
 Profile  
 
PostPosted: Tue Jun 22, 2010 3:36 pm 
User avatar

Joined: Mon Aug 20, 2007 2:49 pm
Posts: 515
Location: Warwickshire, UK
The filesize for this particular piece is pretty big. Would it be OK to zip it up and upload it to a server instead?

_________________
Visario / web > blog > twitter > youtube > gallery


Top
 Profile  
 
PostPosted: Tue Jun 22, 2010 3:54 pm 
User avatar

Joined: Wed Nov 16, 2005 3:02 am
Posts: 7585
Location: desk #861
Yes, the simpler the file, the better. What I would need would be a file in precisely the state where things are misbehaving, so in this case that would a file where:

- you have a body repeated by linear pattern
- material has been assigned to each copy
- material display is incorrect

Now, as I am writing this, I see you edited your post -- I guess it's not easily reproducible with a new, simpler file? If this file is too big for email, you could use megaupload or rapidshare.

_________________
Next Limit Team


Top
 Profile  
 
PostPosted: Tue Jun 22, 2010 4:25 pm 
User avatar

Joined: Mon Aug 20, 2007 2:49 pm
Posts: 515
Location: Warwickshire, UK
I tried to recreate this issue from scratch with a simpler model, but applying the materials to the bodies actually seemed to work fine that time (always the way). I've had this issue a few times but I can't seem to get it going from anything new at the moment so I thought I'd zip up the model in question.

It's not a huge file, about 35mb or so. Just sent a PM with the download link and some extra details.

Thanks for taking a look.

_________________
Visario / web > blog > twitter > youtube > gallery


Top
 Profile  
 
PostPosted: Tue Jun 22, 2010 4:40 pm 
User avatar

Joined: Wed Nov 16, 2005 3:02 am
Posts: 7585
Location: desk #861
Thanks, I downloaded the file -- I'll take a look and see what's going on.

_________________
Next Limit Team


Top
 Profile  
 
PostPosted: Tue Jun 22, 2010 8:21 pm 
User avatar

Joined: Wed Nov 16, 2005 3:02 am
Posts: 7585
Location: desk #861
The basic problem is that while you are assigning your Maxwell materials at the body level, many of the faces of those bodies already have a SolidWorks material assigned. So, to see the body-level assignments, you need to remove the face-level assignments, since face-assignments override body- and feature-level assignments in SW.

The quickest way to get things sorted would be:

1. select the top node in the Feature Manager tree
2. edit its appearance
3. in the SW material editor, click Remove Appearance
4. then, click Remove All Appearances
5. go get a cup of coffee
6. accept the changes and rebuild the document

That will get rid of all your SW colors and prepare the model for the plugin to show you its materials without them being obscured by higher-precedence SW material assignments -- using the plugin's Refresh Viewport Materials command should now get you your desired result.

_________________
Next Limit Team


Top
 Profile  
 
PostPosted: Wed Jun 23, 2010 2:14 pm 
User avatar

Joined: Mon Aug 20, 2007 2:49 pm
Posts: 515
Location: Warwickshire, UK
Thanks for the help, JD. Much appreciated. That all sounds great. Sadly I won't get a chance to test this until tomorrow now, but I will let you know how it goes when I do it.

Thanks again.

_________________
Visario / web > blog > twitter > youtube > gallery


Top
 Profile  
 
PostPosted: Thu Jun 24, 2010 11:49 am 
User avatar

Joined: Mon Aug 20, 2007 2:49 pm
Posts: 515
Location: Warwickshire, UK
So I had time to try this technique this morning and it hasn't worked. Maybe worth noting that when I clicked Remove Appearance then Remove All Appearances, it loaded very quickly. It sounded as if this step perhaps should've taken a while to fully remove everything? I hit rebuild anyway then refreshed the viewport materials through the plugin and it's stayed the same.

Just to be sure I'm not editing the wrong thing, it should be this node, right?

Image

_________________
Visario / web > blog > twitter > youtube > gallery


Top
 Profile  
 
PostPosted: Thu Jun 24, 2010 2:50 pm 
User avatar

Joined: Wed Nov 16, 2005 3:02 am
Posts: 7585
Location: desk #861
You're editing the right thing, but apparently SW's behavior is different in SW2008. Those steps work fine for me with this model in SW2009 and SW2010 -- when I click Remove All Appearances, SolidWorks takes about a minute to process the command, but afterward, all materials are indeed purged. However, the whole concept of materials was very much in flux in SW2008, so I cannot say whether you might need to use some other strategy in that version.

Basically, if you try those steps and it doesn't seem to work, just turn on the face selection filter and select some face -- confirm whether or not it still has a SW material assigned to it. Because if it does, then that material is going to take precedence over any body material you may have assigned. One way or another, the face material has to be removed, so try removing it directly from the face, then move on up to the face's parent and see if you can remove all of its face materials in one shot, and so on...apparently it's not working for you at the top part-level, but somewhere along the hierarchy it will.

_________________
Next Limit Team


Top
 Profile  
 
PostPosted: Thu Jun 24, 2010 3:17 pm 
User avatar

Joined: Mon Aug 20, 2007 2:49 pm
Posts: 515
Location: Warwickshire, UK
Good stuff. I know exactly what you mean in getting rid of it, so I'll plug away until I find the right configuration. Thanks again for the help, this should all help me avoid it in the future too. :)

_________________
Visario / web > blog > twitter > youtube > gallery


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC + 1 hour [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group