Programming Questions
Programming Questions
Hey guys, Im trying to develop my own little demos as a hobby and I read through a few of your tutorials (especially the one on decals, that was a interesting read). But I have 2 questions. One, since you guys use opengl and im assuming c++, do you guys use glut, freeglut, glew, or some other wrapper library?? And my second question, when you guys have object tinting, do you have separate textures on the model that can be individually tinted? So, for a hat model, you can have a design and background. Do you guys create two textures that you overlap, and tint each one separately?
Re: Programming Questions
The devs are currently unavailable due to awesome.
Some of the regular geeks will be with you shortly.
Some of the regular geeks will be with you shortly.
Re: Programming Questions
You can check the texture files yourself. Go to /Data/Textures/stuff. Most objects use a single diffuse texture, I don't remember seeing any object using two different diffuse textures. I have seen two objects using different parts of the same diffuse map though.
Do you do any 3D modeling yourself? I'm a modeler more than a programmer, and for me a different UV unwrapping or a different texture would be easier than a more complicated shader for tinting two diffuse textures at once.
Do you do any 3D modeling yourself? I'm a modeler more than a programmer, and for me a different UV unwrapping or a different texture would be easier than a more complicated shader for tinting two diffuse textures at once.
Re: Programming Questions
Someone holler?Glabbit wrote:The devs are currently unavailable due to awesome.
Some of the regular geeks will be with you shortly.
David uses SDL for Overgrowth. SDL is a more common choice simply because it's been used more. I've got more time behind SFML though and it has done just fine as well. So, either one of those would be a reasonable choice for you.
As far as I know, the tinting is done via a weightmap. A separate texture is used to tell the shader what areas of the mesh's color map should be tinted. So, the artist can set different parts of a single texture to be tintable or not or somewhere in between.
If you want more info, you can talk to David or Aubrey on the IRC channel. They're on there and pretty available most days.
Re: Programming Questions
Yea I checked the alpha where this was posted. He said then they used the alpha channel of the texture but a weight map would work to. Pretty useful technique to!! Thanks for the replies!