x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to overwrite color like mspaint?

I am making a painting Project using a render target.

But Color Combined. I do not want to mix colors.

I don`t need Magenta, Cyan Color. just need original color like mspaint.

anybody help?

alt text alt text alt text alt text

Product Version: UE 4.22
Tags:
1.png (944.5 kB)
2.png (22.3 kB)
3.png (544.3 kB)
4.png (17.2 kB)
more ▼

asked Jun 13 '19 at 03:31 AM in Rendering

avatar image

leehwanchoi
7 1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I modified one of my old projects to show a method of how do that. I erases the previous color by drawing a negative value into the render target. In the material of the brush it has to be set to allow negative emissive values. https://youtu.be/4N0bo4WqJu4

there's a bit of a delay sometimes as the colors switch, I think the value in the render target sometimes gets higher than 1 so it takes longer to erase.

more ▼

answered Jun 13 '19 at 07:10 AM

avatar image

IndieGameCove
1.4k 11 4 10

avatar image leehwanchoi Jun 13 '19 at 11:55 AM

Oh Thank you so much!

I tried, but the color of the part of -1 does not change immediately.

Show here Please, Black Circle

alt text

Is there a faster way?

Show here Please, my material function.

// M_Unwrap

https://blueprintue.com/blueprint/s8zkz176/

// M_3ChannelFinalColor_Test

https://blueprintue.com/blueprint/_twuxqpl/

1.png (712.7 kB)
avatar image IndieGameCove Jun 13 '19 at 10:28 PM

not sure, if the reason for the delay is that the number are outside the 0-1 range then maybe you could look into the water ripple materials because they somehow return the values to 0 after they are drawn. I think they use two render targets, but not sure exactly how it's done. I think there's an example in the content examples project.

avatar image leehwanchoi Jun 14 '19 at 05:08 AM

thank you! It has helped a lot!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question