Jump to content
The Dark Mod Forums

Vertex Colored ASE Models using DarkRadiant and Blender 2.53 Beta


rich_is_bored

Recommended Posts

I've updated both the Blender ASE import and export scripts to work with the newly released 2.53 beta. I've also fixed a few bugs. Links in their respective posts have been updated but they are also included in the tutorial below.

 

Google Doc

modwiki.net

The Dark Mod WIki

 

If there is anything that isn't clear or needs illustration let me know. It's a Google doc so it's almost like a wiki page and I can make immediate changes.

Edited by rich_is_bored
  • Like 3
Link to comment
Share on other sites

Very cool, but the next time, can you please put the text on our wiki (we will keep it there, anyway) and put the scripts up on bloodgate.com (we will keep copies there, anyway)? :)

 

I couldn't download the files from google, it said something about unable to scan for virus, download anyway, but then nothing happens...

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

I won't be able to attach it. It's far too big with all the images. It's somewhere around 3 MB in size.

 

I was a bit hesitant to upload 30+ images to your wiki but I can do that if need be. In the meantime I've changed the permissions for the google document so perhaps it will work now.

  • Like 1
Link to comment
Share on other sites

I won't be able to attach it. It's far too big with all the images. It's somewhere around 3 MB in size.

 

I was a bit hesitant to upload 30+ images to your wiki but I can do that if need be. In the meantime I've changed the permissions for the google document so perhaps it will work now.

 

The script download now works. As for the images, yes please put them into the wiki. The wiki is the one-stop documentation for everything, and we had already a few times in the past where the external hostes images were gone (host no longer existing, externally deleted etc.) No matter how often people think "surely X will not go broken or vanish", it still does after Y years :) (See Geocities, Deutsche Post "email for live" and other countless examples :)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

I won't be able to attach it. It's far too big with all the images. It's somewhere around 3 MB in size.

 

No, I meant the download - the script. Anyway, no need - now got it! :)

 

[edit] (I should have said scripts since there are two.)

Link to comment
Share on other sites

I've ported it over to both modwiki.net and TDM wikis.

 

Very cool, thanx! :wub:

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

As I work through the tutorial I'll paste in here any typos etc for correction later...

 

 

Only brushes and patches may be exported using Export ASE... from DarkRadiant. This includes entities comprised of brushes and patches.

 

Should be excludes

Link to comment
Share on other sites

That's awesome.

 

I had tried to vertex color an object in Max at one point, but couldn't get it to show in TDM.

 

Someone said that it makes the material render twice or something and thus takes a performance hit. Would we really see a hit on performance by using this?

(I was thinking off adding dirt/shading to objects that use standard materials (ie: anything that can't be AO baked)

 

Of course I guess it adds an extra shader to load, but things like pots that have 10 skins could still all share the same shaders (just vblend instead of non-blend)

---------

 

 

As for tut, I thought the vertex bland materials should be before the two material blend (just because the beginning of the tut is about verrt painting, the material blend is kindof sandviched in between vert paint/blend stuff)

Dark is the sway that mows like a harvest

Link to comment
Share on other sites

I think this is the info needed but at this stage the student does not yet know which to choose. Might need to read other parts of the tutorial first? Reading the definitions I'm guessing Vertex blending is the one to choose. I think possibly the tutorial should choose for the reader and say "THIS is what we are going to do in this example" and just lead them by the nose parrot-fashion so they are not confused.

 

Vertex blending is when two textures are blended based on the color of the underlying vertices. idTech 4 dictates that you use white to represent one texture and black to represent the other. Gray values are used to gradually blend between the two.

Vertex coloring is when one texture is tinted based on the color of the underlying vertices. You are not restricted in color usage although I am hard pressed to find a use for this. Technically you could paint shadows and the like on a mesh provided the geometry was dense enough.

Link to comment
Share on other sites

As I work through the tutorial I'll paste in here any typos etc for correction later...

 

 

Only brushes and patches may be exported using Export ASE... from DarkRadiant. This includes entities comprised of brushes and patches.

 

Should be excludes

 

Er wait, is it "brushes and patches" or "excludes compromised of brushes and patches"?

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

That's awesome.

 

I had tried to vertex color an object in Max at one point, but couldn't get it to show in TDM.

 

Someone said that it makes the material render twice or something and thus takes a performance hit. Would we really see a hit on performance by using this?

(I was thinking off adding dirt/shading to objects that use standard materials (ie: anything that can't be AO baked)

 

Of course I guess it adds an extra shader to load, but things like pots that have 10 skins could still all share the same shaders (just vblend instead of non-blend)

---------

 

 

As for tut, I thought the vertex bland materials should be before the two material blend (just because the beginning of the tut is about verrt painting, the material blend is kindof sandviched in between vert paint/blend stuff)

 

Well, any shader (aka material) that uses vertex blending has two stages, one stages puts in the material for vertex color and the other the other material (e.g. sand and grass). So it renders 2 passes, but you need that if you want to blend between 2 materials.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

This paragraph sends me off again...

 

It would also be of great benefit if you studied the texturing documentation available on modwiki.net along with a few existing materials that make use of vertex colors like textures/rock/dirt03_sharprock3.

 

But in fact that article is a general one on material shaders so this would read better as something like "this assumes you have some basic knowledge of material shaders. If not see..." (if true, because hopefully we might find an example enough without any understanding. I'll be able to tell better when I read further.) The reference to vertex colors I need to take a look...

Link to comment
Share on other sites

Well, any shader (aka material) that uses vertex blending has two stages, one stages puts in the material for vertex color and the other the other material (e.g. sand and grass). So it renders 2 passes, but you need that if you want to blend between 2 materials.

 

 

OK, well... That's where I'm wondering if it's worth it. On the one hand it's a great/easy way to add dirt/shading to stuff that looks flat. But is it worth it? We're still going to have tons of stuff that isn't done since we're going without AO.

Dark is the sway that mows like a harvest

Link to comment
Share on other sites

Looking at the example shader it just includes vertexcolor in a couple of stages but won't mean anything to a beginner so this might need rethinking whether to even refer to this and lessen the confusion.

 

Just to clarify, this is just feedback on the tutorial. I am moderately competent only with shaders; most mappers will know less than I so likely to get more confused and even abandon it.

Link to comment
Share on other sites

The section on producing the new material is fine. It refreshes my memory of what I did some months ago. But now I'm thinking many mappers might get lost here. We may need to think up something else as well. Maybe prepare some common combinations ready to use or suggest they get someone to make them one. There should be no problem here for the more advanced user though.

Link to comment
Share on other sites

I'm back at the start having browsed Appendix B.

 

Now I feel the 4 step summary at the start should be 5 steps to include 'obtain or create a material that merges the two materials you wish to blend.' (not quite that but something like.)

 

The next stage seems to be exporting but I see nothing about how I make my geometry. For example. Suppose I have two simple test brushes side by side. One is grass; the other is stone. I want them to blend. Where is the new material applied? Or indeed, is it applied at all at this stage? I actually cannot continue at this point.

 

OK, I have to break off for a while anyway but so far so good... :)

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 )
      · 2 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...