dev.gamez.lv Forum Index dev.gamez.lv
Latvian Game Developers Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

Detail Mapping Blend Modes

 
dev.gamez.lv Forum Index -> Microsoft DirectX
View previous topic :: View next topic  
Author Message
Olby
Indago dalībnieks
Indago dalībnieks


Joined: 19 Apr 2004
Posts: 230

PostPosted: Thu Nov 16, 2006 10:02 pm    Post subject: Detail Mapping Blend Modes

Vai kāds pozitīvs cilvēks var konkrēti pateikt kādu dx blend-mode izmanto (un vajag izmantot) DETAIL MAPPING effects, jo cik rakos cauri netam tādas infas nekur nevar atrast. Varbūt kādam kam ir pilnais DX-SDK var apskatīties tur? Principā experimentu veidā esmu atradis divus-trīs blend modes kas itkā der tikai katrs no tiem darbojas atšķirīgās vidēs pavisam savādāk (piem. savādākā apgaismojumā) .

Paldies,
_________________
http://www.olbyonline.com/
Back to top
View user's profile Send e-mail Visit poster's website
anggelus



Joined: 23 Feb 2005
Posts: 383
Location: Rīga (LV)

PostPosted: Fri Nov 17, 2006 12:21 am    Post subject:

Detail mapping domāts Normal mapping? Ja tā tad:

Code:

        // Stage 0
   Texture[0]   = <NormalizerTexture>;
   AddressU[0]  = Clamp;
   AddressV[0]  = Clamp;
   MinFilter[0] = Linear;
   MagFilter[0] = Linear;
   MipFilter[0] = Point;
        ColorOp[0]   = SelectArg1;
        ColorArg1[0] = Texture;
        AlphaOp[0]   = SelectArg1;
        AlphaArg1[0] = Diffuse;

        // Stage 1
        Texture[1]       = <NormalMap>;
        AddressU[1]      = Wrap;
        AddressV[1]      = Wrap;
        MinFilter[1]     = Linear;
        MagFilter[1]     = Linear;
        MipFilter[1]     = Linear;
        ColorOp[1]       = DotProduct3;
        ColorArg1[1]     = Current;
        ColorArg2[1]     = Texture;
        AlphaOp[1]       = SelectArg1;
        AlphaArg1[1]     = Diffuse;

        // Stage 2
   Texture[2]       = <BaseTexture>;
   AddressU[2]      = Wrap;
   AddressV[2]      = Wrap;
   MinFilter[2]     = Linear;
   MagFilter[2]     = Linear;
   MipFilter[2]     = Linear;
        ColorOp[2]       = Modulate;
        ColorArg1[2]     = Current;
        ColorArg2[2]     = Texture;
        AlphaOp[2]       = SelectArg1;
        AlphaArg1[2]     = Diffuse;

_________________
No comprendo lo que dice.
Back to top
View user's profile Send e-mail
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Fri Nov 17, 2006 12:53 am    Post subject:

Manuprāt autors domāja mazākas tekstūras uzklāšanu tailojoties virsū esošai. Tā lai var redzēt sīkākas detaļas, kad objekts ir tuvumā.
Kautkas šitāds (priekš opengl): http://www.flipcode.com/cgi-bin/fcarticles.cgi?show=64518
Back to top
View user's profile Send e-mail
Olby
Indago dalībnieks
Indago dalībnieks


Joined: 19 Apr 2004
Posts: 230

PostPosted: Fri Nov 17, 2006 9:08 am    Post subject:

jā paldies, bubu, pareizi saprati. žēl tikai ka gl bet nu mēģināšu izštukot.
_________________
http://www.olbyonline.com/
Back to top
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
dev.gamez.lv Forum Index -> Microsoft DirectX All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group