Jump to content
The Dark Mod Forums

Vertex Blending Expanded?


nbohr1more

Recommended Posts

Time to begin speculating on expanding Vertex Blending, expanding vertex normal Smoothing, improving Alpha test, etc?

 

Let's start with Vertex Blending:

 

1) Can Brushes and Patches be given Vertex color attributes that the engine will render and thus

the only impediment is an editor function to modify that attribute?

 

2) Is the Vertex blend interpolation done on the CPU or GPU?

 

3) Would it be possible (practical?) to have blending interpolation between more than two

materials per surface?

 

4) Alternatively, since SEED can generate models "on-the-fly" could you create a SEED spawn method

that automatically converts a group of brushes to a model and applies some sort of "in-editor created meta

UV map" with Vertex Blends?

 

5) Does anyone "on staff" have the requisite knowledge to answer any of the above?

 

 

6) Do any of the above advancements warrant a Bug Tracker entry to look into expanding Vertex Blending?

 

 

7) Fun thread?

 

8) Nachos?

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

<p>1. Geometry already can already have its vertex colours changed - that's what the rgb/red etc keywords do. This is not all that handy as it can only do a single colour, tho maybe you could do some funny stuff with vertexColor stages. At the moment vertex colors usually end up correctly, however its possible for some unexpected colours to creep in (ASE models can specify both a base colour and then over-ride vertex colours, or just default).

 

2. CPU, rendered on GPU.

 

3. One material per surface, there's a lot of stuff that requires this to be true. It's not really a limit to much tho, vertex colours will give you the graphics, just use no-clip or whatever to map the sound.

 

I made a little proof-of-concept (ages ago, and it's pretty useless/broken; I plan to re-implement when I'm more familiar with things) vertex colour transform, to allow patches and simple geometry to be given vertex colours to represent specific uses. I.e a material could specify 'deform path' or something, which would change the edge vertex' colours to black, and then using vertexColor stages later in the material, blend your path textures. This could then be fairly easily implemented in DR, avoiding the need to actually offer vertex painting - since that is not stored in the map format anyway.

 

i.e a patch would have a path material applied, which would then be transformed like :

vcolt1.png

Which would then be textured with the blending:

vcolt2.png

 

It's low on the to-do list; Far bigger fish to fry first.

Link to comment
Share on other sites

Wahoo!!!

 

It might be small to you, but to us folks in the peanut gallery (I'll include Fidcal because of his multi-page Grass Edge threads) this is

cool stuff.

 

Thanks for the clarifications, I hope you get a chance to return to this concept when you've tackled the harder stuff.

 

:)

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

The images are hosted by me, and dont require any js or anything for the forum to give you the correct url - so I'm not too sure what would stop that from working.

 

That said, I really wish IPB would give me the options to just edit/post in plain text with bbcode markup. This mixed html/bbcode/plaintext is so annoying :/

Link to comment
Share on other sites

Serpentines' blended edges sound pretty sweet... I guess mappers without huge experience in modeling and texturing will have to just keep drooling at the ability to blend and paint textures at will... :(

Edited by RPGista
Link to comment
Share on other sites

Serpentines' blended edges sound pretty sweet... I guess mappers without huge experience in modeling and texturing will have to just keep drooling at the ability to blend and paint textures at will... :(

 

Nope, this is what it solves in part, if you need pathways or randomly blended (like, blotches of textures), you will be able to use it by just applying the material to a patch and dragging things around. The idea is to give an alternative to the traditional models.

 

The trick is finding what type of blends would be most useful, and then how to work out how to code the right logic for selections - i.e we need paths, how do we paint the outside vertices one color using some logic - this then just gets made into a keyword in a material and the mapper needs to know nothing of the magic behind the scenes.

 

Doing it directly in the map, with vertex painting is near-impossible and would require some insane refactoring of so many components and low level assumptions that at the end of the day, its simply not worth starting on imho.

 

As for making the materials, they are actually fairly simple when you look at one.

 

At the moment this is just an idea - as I said, the implementation that I did was very crude and it could not be completely feasible. But I plan to throw some time at it in the next week or two.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 3 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...