View previous topic :: View next topic |
Author |
Message |
chronozphere DeleD PRO user
Joined: 20 Jun 2006 Posts: 1010 Location: Netherlands
|
Posted: Tue Jul 10, 2007 6:11 pm Post subject: Vertex Diffuse and Specular colors |
|
|
Hi everyone
I was wondering. Does DeleD support Diffuse and Specular colors??
I will need them in my current project, and i was wondering whether deled would support this. if it does, is it in the LITE version also??
Thanx in advance. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Tue Jul 10, 2007 6:20 pm Post subject: |
|
|
Nope, DeleD does not support vertex colors at all. Lights have a specular and diffuse color, but that's about it. The rest is all textures and lightmaps.
Out of curiosity, what will you be using them for in your current project? |
|
Back to top |
|
|
chronozphere DeleD PRO user
Joined: 20 Jun 2006 Posts: 1010 Location: Netherlands
|
Posted: Tue Jul 10, 2007 10:25 pm Post subject: |
|
|
{doublepost}
Last edited by chronozphere on Tue Jul 10, 2007 10:36 pm; edited 1 time in total |
|
Back to top |
|
|
chronozphere DeleD PRO user
Joined: 20 Jun 2006 Posts: 1010 Location: Netherlands
|
Posted: Tue Jul 10, 2007 10:35 pm Post subject: |
|
|
I found diffuse and specular quite usefull.
Some examples:
>> Hardcoded lights in the enviroment.
>> Simple way of giving color to objects
>> Use Diffuse.Alpha to make parts of your geometry transparent for e.g glass and water.
When you create an object, It would be cool to assign a random color to it. It's a nice way to easily distinguish objects in your scene. 3DS Max uses this too if i'm not mistaking.
It also allows us to reuse textures. Some textures for e.g grass can be made yellow with Diffuse. This will result in dry grass without having to create another texture. You can also create many kinds of rock using one texture.
The possebilities are endless.
I think this would be a good feature request.
Maybe this topic should be moved.
Thanx. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Jul 11, 2007 7:24 am Post subject: |
|
|
(thread moved)
Interesting request. To get a little discussion going, here is one point of view (net nessecarely mine):
For hardcoding lights, I'd use lightmaps. Per-vertex lighting is so... 90's
For coloring objects or reusing textures, I'd simply create another material for that texture with a different color (*). Micomanaging vertex colors is a real pain, and usually those characteristics nice match up (mentally) with the concept of materials.
Why would you choose vertex coloring over those techniques?
(*) Note how this is not actually possible with the current version of DeleD, but will be once we rewrite the material system (soon). |
|
Back to top |
|
|
chronozphere DeleD PRO user
Joined: 20 Jun 2006 Posts: 1010 Location: Netherlands
|
Posted: Wed Jul 11, 2007 8:29 am Post subject: |
|
|
Good point about the lightmaps and object colors. I must say i agree.
But i think per vertex colors are still very handy.
It's perfect for creating transitions between e.g sand and dirt.
And for big stuff like whole indoor scenes, i'd use lightmaps for hardcoded lights. but if you have e.g a spaceship, and you want to light the vertices around the thrusters, lightmaps would be an overkill. Per-Vertex lighting doesn't have to look ugly. Especcialy not on spaceships and racecars with underground-neon, since they are usualy hi-poly models.
Think its a nice feature which shoudn't be hard to implement.
Select a few vertices and assign diffuse and specular values to them.
It's that simple. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Jul 11, 2007 10:16 am Post subject: |
|
|
I agree it would be simple to implement, but on the other hand:
a) every extra setting adds to the confusion of users who don't actually use all that stuff... and who then accidentally set it to black, then can't figure out why their texture is acting weird around some vertices
b) there is this thing called the 'can of worms' effect. Once we add per-vertex color settings, people will soon grow tired of editing those one by one and want more advanced tools for it.
I'll stop whining now. I think it's a good thing to have and we'll probably add it. |
|
Back to top |
|
|
RussW Member
Joined: 27 Jun 2007 Posts: 7
|
Posted: Wed Jul 11, 2007 4:43 pm Post subject: |
|
|
My current project needs vertex colors too. I was going to produce these in a post-processing stage, but it would be great if it could all be done inside DeleD. |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Wed Jul 11, 2007 5:10 pm Post subject: |
|
|
Than you'll have to sto using GL_REPLACE _________________
|
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Jul 11, 2007 6:26 pm Post subject: |
|
|
For the last time, replace != GL_REPLACE |
|
Back to top |
|
|
jwatte DeleD PRO user
Joined: 26 Apr 2006 Posts: 513
|
Posted: Thu Jul 12, 2007 11:10 am Post subject: |
|
|
Vertex colors are sometimes useful for ambient occlusion effects, when you can't spend an entire texture on ambient occlusion information. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Thu Jul 12, 2007 11:40 am Post subject: |
|
|
Good point (would work better for AO than for lightmaps in general, as AO falloff and overall effect on the light is usually more sutble). But unless you do your AO manually you don't need access to your vertex colors inside a modeler for that . Nah, just kidding, both plugins and 3rd party file formats could generate/contain such information, and it is currently thrown away by DeleD because we don't support the concept. |
|
Back to top |
|
|
RussW Member
Joined: 27 Jun 2007 Posts: 7
|
Posted: Thu Jul 12, 2007 2:36 pm Post subject: |
|
|
The vertex colors are also useful where you're working on platforms with really limited memory and can't use lightmaps, like some of the latest mobile phones.
Any chance of having an option to output the list of vertex colors to the dxs file ?
I don't need any access to the colors from inside the editor.
Failing that, is the new plugin info going to be available soon so I can get access that way ? |
|
Back to top |
|
|
RussW Member
Joined: 27 Jun 2007 Posts: 7
|
Posted: Fri Jul 13, 2007 9:23 am Post subject: |
|
|
Ignore my earlier comments.
Sorry chronozphere, I didn't mean to hijack your feature request.
What you're proposing is much more useful anyway. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Sat Jul 14, 2007 8:50 am Post subject: |
|
|
Back to the original proposal: As far as I know, in the fixed pipeline approach to graphics, vertex only have one color, and you can tell the API to have it affect diffuse, specular or both (color tracking).
In other words, you can not have separate diffuse and specular colors for each vertex. If I'm wrong, someone please correct me (some technical pointers on how to handle it would be nice). |
|
Back to top |
|
|
|