Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


How do I maintain a good quality real time rendering without textures?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
7 replies to this topic

#1 lucky6969b   Members   -  Reputation: 624

Like
0Likes
Like

Posted 08 August 2012 - 03:26 AM

I mean to use shaders such as the one found in Introduction To 3D Game Programming With DirectX9.0c A Shader Approach
When a texture is intermixed with materials, it is of good quality, what about that shader without the texture?
I have discarded the textures because our artist refuses to share his.
Can I use that book's shader but still having good quality rendering?

//Sampler
sampler DiffuseSampler = sampler_state
{
   Texture = (texDiffuse);
   MinFilter = Linear;   MagFilter = Linear;   MipFilter = Linear;
   AddressU  = Wrap;	 AddressV  = Wrap;	 AddressW  = Wrap;
   MaxAnisotropy = 16;
};

//Pixel Shader
float4 ps_lighting(VS_OUTPUT IN) : COLOR0
{
// float4 color = tex2D(DiffuseSampler, IN.tex0);
//return color * IN.shade;
float3 texColor = tex2D(DiffuseSampler, IN.tex0).rgb;
float3 diffuse = IN.color.rgb;// * texColor;
    //return float4(diffuse + spec.rgb, IN.color.a);
return float4(diffuse, IN.color.a);
}

Thanks
Jack

Edited by lucky6969b, 08 August 2012 - 03:36 AM.


Sponsor:

#2 InvalidPointer   Members   -  Reputation: 1440

Like
4Likes
Like

Posted 08 August 2012 - 04:56 AM

I have discarded the textures because our artist refuses to share his.

Sounds like it's time to get a new artist? Seriously, that's their job.
clb: At the end of 2012, the positions of jupiter, saturn, mercury, and deimos are aligned so as to cause a denormalized flush-to-zero bug when computing earth's gravitational force, slinging it to the sun.

#3 DJTN   Members   -  Reputation: 207

Like
1Likes
Like

Posted 08 August 2012 - 07:25 AM

To get a decent looking reder you're going to have to use textures at some point. That's the whole reason behind "pixel" shaders.

Why cant you create your own texture? Or download some? You can even purchase texture packs. Just google 3D texture packs or visit http://www.cgtextures.com/ for free ones. Just make sure your read the "terms of use" and "license".

#4 Tordin   Members   -  Reputation: 604

Like
0Likes
Like

Posted 08 August 2012 - 07:34 AM

you can do this with lighing. or different aproaches of shading!

i allways try to get shaders working in black & white befor adding textures (you can offcourse skip this step)

here is a image to get you going!

Posted Image
(NOT MY WORK)

as you see, this image is pretty sharp, it has good lighting, and some ambient effects, but no texture and you still
see what it is supposed to be.
"There will be major features. none to be thought of yet"

#5 Tasaq   Members   -  Reputation: 1235

Like
0Likes
Like

Posted 08 August 2012 - 07:47 AM

Why cant you create your own texture?

This is very good question. I program games for fun and I make my own textures. I simply take my camera, go outside and make a photo, then I just make some tuning and all is done. There's a bunch of free software that will help (like nvidia's normal map generator) :)
If you want to have a texture that can't be found in real world, there's a lot of tutorials about making them.
Another idea might be creating a texture inside a shader, but it's a little bit more advanced approach :)

#6 jefferytitan   Crossbones+   -  Reputation: 2222

Like
0Likes
Like

Posted 08 August 2012 - 03:31 PM

@InvalidPointer: You stole my line. If the artist won't provide art, the relationship isn't working. Unless there is some licensing issue and they're using commercial textures on their model, which is also bad.

You can work without textures for now, just use a flat color instead of the texture, e.g. use float(1.0, 0.0, 0.0) for red instead of tex2D(DiffuseSampler, IN.tex0).rgb.

#7 Tom KQT   Members   -  Reputation: 1612

Like
0Likes
Like

Posted 09 August 2012 - 02:02 AM

as you see, this image is pretty sharp, it has good lighting, and some ambient effects, but no texture and you still
see what it is supposed to be.


Well, not so much. You can see the shape (that's where lighting helps the most) and you realise it's some kind of terrain (old-school, minecraft-like), but you don't know whether it's desert, grass, dirt, rocks. Or even Earth or Mars?
You can be perfectly fine without textures, but you'll get a specific look (which can be great for games, these days it's kinda popular to come with new or simple looks), but most probably it won't be realistic. Stylish, not realistic.

Textures don't provide only color information, but also additional small details which you would have to model via polygons otherwise.
And also colors aren't solid in real life. You can make brownish block, but people won't realise it's supposed to be wooden plank without a proper wood texture.

Edited by Tom KQT, 09 August 2012 - 02:03 AM.


#8 kauna   Crossbones+   -  Reputation: 2746

Like
0Likes
Like

Posted 13 August 2012 - 10:05 AM

Hi,

you'll need to add some slightly advanced lighting techniques to get the effect of the provided screen shot such as SSAO or some other ambient occlusion method and shadow mapping of course.

Cheers!




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS