Unity - obj model in Hololens shows up semi transparent - visual-studio

I've been working in Unity app with Hololens, and I've been using models downloaded from www.poly.google.com; no matter which model I choose, it shows up semi-transparent while running the app on the Hololens. This is how it looks at poly.google.com:
And this is how it looks in the actual Unity app (another model that shows up the same as reference):
The way I import them is just to place the .obj model in a folder within the Unity project, and then use the "Extract materials" feature and assign them:
Is there anything I can do? is it expected? I'd like to show them with strong/original colors. Thanks a lot!

This is expected with dark colours. Holograms don't erase the environment behind them. They add light on top of the background environment, and dark images don't add much light. You can see in your example image that the brighter parts of the holograms are more opaque than the dark parts.
This is discussed in the Designing with Color documentation:
Rendering dark colors - Because of the nature of additive displays, dark colors appear transparent. A solid black object will appear no different from the real world. See Alpha channel below. To give the appearance of “black”, try a very dark grey RGB value such as 16,16,16.

Related

Cut-out effect using Image Mask not working for me

I'm not able to resolve this issue in multiple plant models I got from Turbosquid.
Specifically, the Petals of the flowers like the one pictured here. Petals appear as rectangles (as per original Geometry) even with Transparency set to a masking image (attached). I've also attached a screenshot of settings as SceneKit Editor/XCode show. Any idea what am I missing?
Rendered Object (Yellow Flowers with Rectangular Petals) with partial Material Properties
Additional Material Properties
Masking Image
You will want to set the transparency mode to "RBG Zero" in the UI (which maps to SCNTransparencyModeRGBZero).
Note that it'll require the image to be inverted (black is opaque, white is transparent).

Transparent Circle inside a White Rectangle

I'm working on a report project and would like to avoid making a separate image for each indicator color. Ideally, I like to put a transparent circle in a white rectangle. I have Snag-It available and general Windows tools.
My plan is to put the Image in a table cell and change the color of the circle by dynamically assigning the background color of the cell. I think it would be much easier to embed this one image, rather than creating a bunch of different colored circles that all have to be embedded.
Any suggestions on how I can do this in Snag-It or Paint, or any tools that are free for commercial use that you can recommended for this?
This sounds like a good workaround to get an indicator with whatever color you want.
Paint.net is a free image editor that you could create this in. Start with a white square. Use the Ellipse Select tool to select a circle in the middle. Press the Delete key to make it transparent. Save it as a .PNG file and embed it in the report.

About the translucent effect of three.js

I have a need. I need to make a window. The glass on the window is transparent. I have found some examples:
https://threejs.org/examples/#webgl_materials_shaders_fresnel
https://threejs.org/examples/#webgl_materials_cubemap_refraction
The background of these examples is static pictures.
My background is dynamic. How can I do it?
Maybe you can use THREE.Refractor like shown in this example. It allows you to create a refractive see-through surface. You might have to adjust the respective shader program in order to achieve your intended visual result (the default shader of THREE.Refractor does not perform any distortions).

Why does graphics.clearRect change its behaviour?

I was on the way of making a picasa like photo viewer and later an image editor.i used JFrame and alpha channel to set background transparent.but while moving or zooming in/out ,as i had to draw it on different location and clear the previous image i used clearRect and faced the problem.
the oracle documentation says it clears the rect and restores the background color.
on some trials the clearRect clears the area to background color.But while continuous events like mouse-dragging its turning the color of cleared area to black and causing this:
`
thnx
.i used JFrame and alpha channel to set background transparent.
Don't use alpha for complete transparency. Instead just use:
panel.setOpaque( false );
If you are using semi transparency then check out Backgrounds With Transparency. It will explain the problems with transparent background and provide a couple of solutions.
The basic problem is that transparency breaks the painting contract with Swing components because the background is not cleared entirely before child components are painted.

Is there a way to change the background color of the xcassets view in Xcode 5 or Xcode 6?

Is there a way to change the background color of the xcassets view in Xcode 5 or Xcode 6?
I have white images that are lost on the white background.
When viewing an image without using xcassets, the image is set against a grey background.
However with xcassets the background is white and the images can't be seen.
I've tried using different different font and color schemes but they only seem to apply to the text editor.
A reasonable work around is to select the image asset, (eg click on the 1x or 2x version) and then press the spacebar.
This will show the asset in a popover with a light grey background.
If you are happy to add an Xcode plugin (it's available via Alcatraz) then
TOCAssetCatalogBackground solves this problem. https://github.com/toco/TOCAssetCatalogBackground
Are the images essentially silhouettes? If so, you could make them in another color (I like to use magenta, because then it’s immediately clear when something isn’t working). Then you can use iOS 7’s -[UIImage imageWithRenderingMode:] (not sure if there is a Mac equivalent) to have the image automatically pick up the tint color of its containing view. Then you would not be looking at white images on a white background.

Resources