Dear visitors and members, with the staff having moved on to other life interests and as a result of changes in people's internet usage habits, the CodeWalrus community have migrated almost entirely to Discord, IRC and WalrusIRC and is now essentially a place where to hang out, chat about gaming, programming, music, anime, and chill. As a result, even though the CW forums will remain open for posting, for faster TI, Casio or HP calculator help and news we recommend using the bilingual TI-Planet forums instead.

We encourage everyone to join our Discord server now.

* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: OpenGL Terrain Discussion  (Read 1859 times)

0 Members and 1 Guest are viewing this topic.

Offline c4ooo

  • Pedanticity prevents ambiguity
  • Super User
  • CW Contest II Winner
  • *
  • Join Date: Aug 2015
  • Location:
  • Posts: 1028
  • Post Rating Ratio: +13/-4
  • Advanced forumer
  • Gender: Male
Re: OpenGL Terrain Discussion
« Reply #15 on: July 12, 2017, 05:28:07 pm »
Now we can finally start to work on the alpha map. In the UV screen we create the texture image with all texels set to one of the primary colours. I chose green because I’m going to use the green channel for grass, which is the most common texture on my terrain. Make sure to use the RGB sliders to make sure you have one primary colour set to 1 and the others to 0. I let the dimensions at the default 1024x1024, but you may want to increase it for large terrains. Downscaling is easy with any image editor, upscaling is harder. Besides, alpha maps often contain large areas of the same colour so they should be compressed pretty well.
@ben_g  A problem i am having is that after i paint the map, if i change a single vertex, i have to re-project the UVs, which makes the entire UV map not line up anymore.
Is there something that would allow me to "paint" on the 3D mesh, and then have that painting projected onto onto the UV image?
« Last Edit: July 12, 2017, 06:25:25 pm by c4ooo »


You can also use the following HTML or bulletin board code to share it on your page or forum signature!

Also do not forget to check our affiliates below.
Planet Casio TI-Planet BroniesQC BosaikNet Velocity Games