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 BenLeggiero · Mar 26, 2014 at 12:09 AM · terrainimportexportraw

How do I convert a .RAW terrain file without PhotoShop?

I want to use my preferred photo editor to edit terrain in Unity, but I can't find anything that will read or write Unity's .RAW files for free (Unity's .RAW files seem to be different from, say, Nikon's which these converters expect).

Comment
Add comment · Show 1
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 Bunny83 · Mar 26, 2014 at 12:26 AM 0
Share

Unity's RAW files just contains RAW date without header or anything special. It's just a stream of color values. The resolution, the color bit count the endianess has to be selected manually when you load the RAW file in Unity. So RAW is just RAW and nothing Unity has invented.

6 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by getyour411 · Mar 26, 2014 at 12:11 AM

Google GIMP

Comment
Add comment · Show 3 · Share
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 BenLeggiero · Mar 28, 2014 at 04:31 PM 0
Share

Gimp won't open them. It just appears as mostly gray static

avatar image getyour411 · Mar 29, 2014 at 12:40 AM 0
Share

http://ufraw.sourceforge.net/

http://www.gimpusers.com/forums/gimp-user/15373-does-gimp-support-raw-images

avatar image amarkham · Oct 20, 2020 at 02:31 AM 0
Share

I created a Python script that converts the 16-bit raw file into a 16-bit EXR. The EXR can then be used as a Texture2D.

git repo: https://github.com/Tony$$anonymous$$arkham/unity-raw-to-exr

python package: https://pypi.org/project/unity-raw-to-exr/

avatar image
1

Answer by mathieu-axel · Sep 08, 2017 at 06:07 PM

I finally found an online converter for that !

http://rawpixels.net/

Pixel format: Grayscale bpp1: 16, others at 0. Check Little Endian.

Then right click on the image -> save image as ...

Comment
Add comment · Share
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
0

Answer by Croug · May 18, 2015 at 05:41 PM

Someone recommended the program "Fiji" I haven't tried it yet but quite a few people seem to recommend it, give that a try. http://fiji.sc/Downloads

Comment
Add comment · Share
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
0

Answer by tanoshimi · May 18, 2015 at 05:56 PM

I use GDAL: https://alastaira.wordpress.com/2013/11/12/importing-dem-terrain-heightmaps-for-unity-using-gdal/

Comment
Add comment · Share
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
0

Answer by Kiwasi · Oct 09, 2015 at 09:02 AM

You can also put the data into a texture and use EncodeToPNG

http://docs.unity3d.com/ScriptReference/Texture2D.EncodeToPNG.html

Comment
Add comment · Show 2 · Share
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 Bunny83 · Oct 09, 2015 at 10:32 AM 0
Share

Uhm, maybe i get something wrong, but wasn't the question about importing a terrain heightmap in the RAW format? Unity only supports RAW out of the box.

avatar image Kiwasi · Oct 09, 2015 at 11:09 AM 0
Share

It requires a bit of dancing around. But you can read the heights off of the terrain height map. Convert them to pixels in a Texture. Then convert that to a png.

It might not be the most efficient solution. But it lets you edit the data in something as simple as Paint.

  • 1
  • 2
  • ›

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

25 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Raw terrain files. What program? 1 Answer

How can I import terrain from DXF? 1 Answer

Import GIS raster into Unity as terrain 2 Answers

How to export Unity terrain heightmap to RAW file from Settings tool's button via script? 0 Answers

Nothing happens when I import my terrain? 1 Answer


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