Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by JXingxa · May 25, 2015 at 10:14 PM · texturemeshgraphics

Can Unity generate 16 bit gray level texture in script?

Hi all,

This may seem a strange question. I am a graduate student and I am using Unity to develop a data visualization tool for my research. What I am trying to do is to have Unity read in an image (16 bit gray level image, so 0-65535), and reconstruct the image in the 3D volume (using mesh). I have a working framework with 8 bit gray level image now, but the result isn't as good as I had hoped. I am wondering if Unity can generate 16 bit gray levels in script?

I am extremely new to Unity (and frankly, software development), so apologize if this question is totally dumb.

Best

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Multifred · May 26, 2015 at 12:51 AM 0
Share

I'm not sure to understand your problem.

You want to generate meshes' vertices from texture's colors, right? why does it have to be gray if you need more bit?

And the reason why you only have 8bit is because color (in unity) are coded on 24bit (or 32bit if you have alpha). since Gray mean Red value = Green value = Blue value you can get only 8bit data from Gray.

avatar image Eno-Khaon · May 26, 2015 at 01:41 AM 0
Share

All things considered, different color formats are simply utilizing data in different ways. Conceptually (but not exactly as straightforward as it sounds), an RGBA image could have its data converted into a 16-bit gray image with twice as many pixels by concatenating the Red/Green and Blue/Alpha channels of the image.

The image would potentially need to be manually read in (i.e. not simply in the form of an image) in order to make use of it. However, I can't speak from experience as far as this goes. If there are other or better options, I'm simply not aware of them (yet).

avatar image JXingxa · May 26, 2015 at 06:34 PM 0
Share

The reason I am using gray level is that the data I am trying to visualize is gray...(a 16 bit deep .tiff image). Such an image format is very common in scientific imaging (e.g. astronomy or microscopy), it offers a more finely-quantized data.

So I am guessing I can't use more than 256 gray levels?

avatar image Eno-Khaon · May 26, 2015 at 06:44 PM 0
Share

Hmm... I'm afraid I can't personally offer any further advice on this, but here's some food for thought on the topic.

avatar image JXingxa · May 26, 2015 at 06:56 PM 0
Share

Thanks for your reply! Will check it out. :)

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Does micropoly / tinypoly texture mapping have disadvantages? 1 Answer

Textures do not appear on mesh correctly? 0 Answers

how to texture two instances of a character 1 Answer

Is it possible to set smoothness and metallic of a mesh per-vertex instead of the whole material? 0 Answers

No culling in a transparent texture 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges