Author Topic: X-ray materials with different opacity.  (Read 10569 times)

0 Members and 1 Guest are viewing this topic.

Offline EngOS

  • Newbie
  • *
  • Posts: 22
X-ray materials with different opacity.
« on: February 07, 2011, 08:35:37 am »
Hi,
Is there a way to increase or decrease the opacity of the X-ray materials. Like in reallity I want to have a high transparency for tissue and less for bones or metal implants.

Thanks  ;)

At this time I use a grey Xray material for the tissues and a with for the bones...

Offline EngOS

  • Newbie
  • *
  • Posts: 22
Re: X-ray materials with different opacity.
« Reply #1 on: March 07, 2011, 10:40:05 am »
Nobody ?  ???

Here is a pic of what I'm trying to do and the result I have now...



I wanted to try with some transparent grey materials and after that making a negatif of the pic, but I can't find one with no reflexion at all...

Offline KeyShot

  • Administrator
  • Hero Member
  • *****
  • Posts: 1115
Re: X-ray materials with different opacity.
« Reply #2 on: March 07, 2011, 12:44:28 pm »
You can create materials with a lower opacity by making them darker and likewise with higher opacity by making them brighter. I would recommend using a dark grey for the tissue, and an almost white color for the screws.

-- Henrik

Offline EngOS

  • Newbie
  • *
  • Posts: 22
Re: X-ray materials with different opacity.
« Reply #3 on: March 08, 2011, 12:27:06 pm »
Yes, it's what I do now. On my picture the screw is white x-ray material and the bones are grey one.  ;D
At this time I use a grey Xray material for the tissues and a white for the bones...

But with this technic I don't really have more opacity with metal parts (like for a real radiography) it's still too transparent...

Offline Speedster

  • Hero Member
  • *****
  • Posts: 2619
Re: X-ray materials with different opacity.
« Reply #4 on: March 08, 2011, 05:43:17 pm »
Maybe try two rendering passes?  One as you have done it, then the second (with camera locked) hiding all but the screw, and render the screw only in titanium or other metal.  Then composit them in Photoshop with dropout and transparency? Might want to also do a clown pass to make it easier to select.  Tip- use the "Place" comand.  Might be a work-around.
Bill G

Offline EngOS

  • Newbie
  • *
  • Posts: 22
Re: X-ray materials with different opacity.
« Reply #5 on: March 10, 2011, 01:01:38 pm »
Thanks for your answer. Yes it could be a solution but...

... I dont have photoshop and I dont have enough time for that  :D
... I also want to make a turntable video


I'm just looking for a solution to have more less or more opacity depending on materials and thickness. That without reflexion, refraction or other effect...

Offline JeffM

  • Sr. Member
  • ****
  • Posts: 281
Re: X-ray materials with different opacity.
« Reply #6 on: March 10, 2011, 02:51:41 pm »
Try using a label on top of the xray material. You can use images for the label with transparency to control how dense something looks.

I've made a set of semi transparent images that you can try: www.keyshot.com/images/JeffM/Transparencies.zip

They're named for the percentage of opacity.

I tried this technique and it seems to work pretty well.

Without the label trick:


With the label trick:


Notice the orange is far less transparent.

When you apply the label, set the mapping to box and enable the "repeat" option so that the label covers the whole surface.

Also, the label is actually shaded like a regular material so you'll want to use a really soft diffused environment to provide even lighting.

You can use the "intensity" setting on the label to make the part more or less bright as well.

Hope that helps!

Offline EngOS

  • Newbie
  • *
  • Posts: 22
Re: X-ray materials with different opacity.
« Reply #7 on: March 11, 2011, 09:31:21 am »
Great idea ! Thanks a lot for this trick. it seems to work pretty well !!!

I'll try that asap (my demo version is expired  :( and I'm waiting for the official one...

Offline JeffM

  • Sr. Member
  • ****
  • Posts: 281
Re: X-ray materials with different opacity.
« Reply #8 on: March 11, 2011, 01:01:49 pm »
Be sure to show us  your result!

As for your demo, if you need an extension, just send us an email at support@luxion.com!

Offline EngOS

  • Newbie
  • *
  • Posts: 22
Re: X-ray materials with different opacity.
« Reply #9 on: April 19, 2011, 07:55:50 am »
ok, I got the licence, I also update my version of keyshot but now Iheve some crash issues...

When I had the label on my x-ray material KS is blocked completely...



guest84672

  • Guest
Re: X-ray materials with different opacity.
« Reply #10 on: April 19, 2011, 01:23:42 pm »
Are you running the latest version? I tried and it worked fine.

Offline EngOS

  • Newbie
  • *
  • Posts: 22
Re: X-ray materials with different opacity.
« Reply #11 on: April 19, 2011, 06:05:30 pm »
Yes I'm running the 2.2.52 but the problem doesn't come from the software.

I think it comes from my machine (pretty old) and win environnement (old installation...)
I'll try to clean a bit this and reinstall it properly.  ::)

I'll let you know after that how it goes...

Offline PhilippeV8

  • Hero Member
  • *****
  • Posts: 1914
    • PV8-Portfolio
Re: X-ray materials with different opacity.
« Reply #12 on: April 20, 2011, 04:46:03 am »
Aah ... the lable trick ... must be Murphy's law ... I just invented this myself 2 days ago .. although not for X-ray.
I asked for an extruded aluminium material here some time ago and got no real response.  The thing I wanted was reflective metal looking aluminium, though the problem I had was that in profiles with closed tubes, the inside of the tubes got all black while in real you can still see some gray inside.  I now got "the lable trick" to sort that out though I need to improve it further.