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 paint a surface ingame?

What I'm trying to do:

I have a few balloons that are supposedly filled with color and I want to be able to pop them and paint the surface underneath with a certain color. I also want the paint splatter shape to be somewhat random, preferably procedurally generated, and I want the colors to mingle and mix when two different colors fall on the same spot. No real fluid simulation or anything like that tho, just spawn a random splatter on a surface and control how it blends with the background. First priority is the painting, second is the blending and third the randomness- I could fake the last one.

What I did

  1. The best solution I found even after hours of searching is spawning some decals. The problem with that is that there are not many blend options with decals and (I think I'll need to code the blending myself but I don't know where and how to do that. For example where blue and yellow intersect I'd like to show grass or something) and by spawning decals for a long time I would assume that the place will get so full of actors that its gonna lag like hell. All this is intended for an android game btw so I cant go extremely heavy.

  2. I tried vertex painting the colors and textures I want but the resolution is too bad and I cant exactly paint a 1 million poly surface just to make it look crisp enough.

What I'm searching:

  1. Any way to paint on a texture or simulate paint on it in a reasonably good resolution.

  2. Any way to bake decals on runtime on a texture so I dont have a million actors, and how to edit their blending options.

  3. Any way to create procedurally create splatter patterns. (I don't necessarily want the code if thats the only way, just where to put it, what function or class I can edit etc.)

  4. Any other idea on how I could accomplish what I'm describing on the first paragraph of this question.

Product Version: Not Selected
Tags:
more ▼

asked Jan 20 '15 at 01:18 AM in Everything Else

avatar image

NeroViper
106 9 10 17

avatar image HaxO Jun 24 '15 at 08:08 PM

Buuuuuuump

avatar image Szarley Nov 17 '15 at 09:07 PM

Hi I am looking for similar solution for my school project Could you please post me any materials you find or get about that, if any.

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

0 answers: sort voted first
Be the first one to answer this question
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