Generate level from image file - Pt 1: Reading the Image - Unity Tutorial

preview_player
Показать описание
A series covering level generation, editing, loading and saving using image files. This video, part 1, covers the basics for reading pixels from an image and working with the resulting array.

Skip ahead to 21:45 to adjust the images if you encounter any errors relating to read / write access to the files.

Big shout out and thanks to my Patreon supporters!

-----------------------------------------------------------------------------------------
- The artist is a good friend of mine, please show him some support if you like any of the tunes in this video.

Check our my assets on the Unity Asset Store:

My projects on Unity Connect:
Рекомендации по теме
Комментарии
Автор

Is there anyway to make the script read the colour value as more of a heightmap? So that by every pixel rgb value that is above above zero it would spawn a groundpiece in the Y axis? I'm quite new to coding but i ~kinda~ understand your tutorial and code structure, so i hope you can help :)

ultimateriddlemaker
Автор

well done my dude, but its huge load if u have 4096 objects in the scene, keep up

MohPhpMaster
Автор

Cool shit! While ago I was looking materials on how to read image data and nothing was out there except half assed Unity answers

redhood
Автор

Hi, there really cool stuff!
I want to ask doh would it be possible to generate a level based on a floor plan but making it to scale? For instance, if a room would be 5m wide by 7m length walls will be generated to real-world measurements?

mattvideo
Автор

Hey, I liked the video, but the script itself didn't work. Every single place is set to wall. Is far as I know, I have the exact same code and I made sure to set the texture import settings to the right values. Do you have any idea what might cause this?

EdenFredMovies
welcome to shbcf.ru