Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, AndrewAMD), 924 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Render Detailmaps on Modelgroups #418518
02/26/13 12:00
02/26/13 12:00
Joined: Oct 2008
Posts: 681
Germany
Ayumi Offline OP
User
Ayumi  Offline OP
User

Joined: Oct 2008
Posts: 681
Germany
Is it possible?

Re: Render Detailmaps on Modelgroups [Re: Ayumi] #418519
02/26/13 12:51
02/26/13 12:51
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Ask more specific.


POTATO-MAN saves the day! - Random
Re: Render Detailmaps on Modelgroups [Re: Kartoffel] #418520
02/26/13 12:57
02/26/13 12:57
Joined: Oct 2008
Posts: 681
Germany
Ayumi Offline OP
User
Ayumi  Offline OP
User

Joined: Oct 2008
Posts: 681
Germany
Ich habe ein Model und eine Texture.
Jetzt hat ein Teil des Models ein Teil der Texture, der keine Detailmap abbekommen soll.
Als Beispiel ein Felsen, in dem ein Metalstreifen eingearbeitet ist.Der Metalstreifen soll keine Detailtexture bekommen.Das Beispiel ist zwar quatsch, aber verdeutlicht mein Anliegen.

Re: Render Detailmaps on Modelgroups [Re: Ayumi] #418528
02/26/13 14:34
02/26/13 14:34
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Ja es ist möglich auf bestimmten Teile der Textur kein Detailmapping anzuwenden.
Dazu muss aber der Shader ein wenig umgeschrieben werden und es muss eine Information weitergegeben werden, die angibt auf welchen Teilen der Textur Detailmapping verwendet wird und wo nicht.


POTATO-MAN saves the day! - Random
Re: Render Detailmaps on Modelgroups [Re: Kartoffel] #418533
02/26/13 15:10
02/26/13 15:10
Joined: Oct 2008
Posts: 681
Germany
Ayumi Offline OP
User
Ayumi  Offline OP
User

Joined: Oct 2008
Posts: 681
Germany
Könntest du mir dabei bitte etwas unter die Arme greifen
, oder muss ich jetzt lernen, Shader zu schreiben?:D

Bis auf die Detailmap nutze ich ja keine Shader.
Es wäre auch hilfreich, die Bereiche zu benennen.

Code:
MATERIAL* mtl_detailmapping =
{
	effect=
	"
	texture entSkin1;
	texture entSkin2;
	texture entSkin3;

	technique t0
	{
		pass p0
		{
			Texture[0] = <entSkin2>;
			Texture[1] = <entSkin1>;
			Texture[2] = <entSkin3>;
			
			
			// mix light map with dynamic lighting 
			TexCoordIndex[0] = 1;
			ColorArg1[0] = Texture;
			ColorOp[0] = AddSigned;
			ColorArg2[0] = Diffuse;
			resultarg[0] = temp;     // output to temp register
			
			
			colorarg1[1] = Texture;  // color map
			colorop[1] = selectarg1;
			texcoordindex[1] = 0;


			colorarg1[2] = Texture;  // detail map
			colorarg2[2] = current;  // color map
			colorop[2] = addsigned;  // add detail map to color map
			texcoordindex[2] = 0;
			texturetransformflags[2] = count2;
			texturetransform[2] = { 24.0,0.0,0.0,0.0, // detail map u scale
						0.0,24.0,0.0,0.0, // detail map v scale
						0.0,0.0,0.0,0.0,
						0.0,0.0,0.0,0.0};
			magfilter[2]=linear;
			minfilter[2]=linear;
			mipfilter[2]=linear;

			colorarg1[3] = temp;     // (shadow map + vertex lighting)
			colorarg2[3] = current;  // (color map + detail map)
			colorop[3] = modulate; 	 // modulate (color map + detail map) with (shadow map + vertex lighting)
			magfilter[3] = linear;
			minfilter[3] = linear;
			mipfilter[3] = linear;
		}
	}
	";
}


Re: Render Detailmaps on Modelgroups [Re: Ayumi] #418535
02/26/13 15:14
02/26/13 15:14
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Sorry...

bei Shadern, die in dieser Form geschrieben sind
(alles ist im Pass geschrieben und nicht als Pixel- & VertexShader Funktionen)
kann ich dir leider nicht weiterhelfen frown


POTATO-MAN saves the day! - Random
Re: Render Detailmaps on Modelgroups [Re: Kartoffel] #418538
02/26/13 15:21
02/26/13 15:21
Joined: Oct 2008
Posts: 681
Germany
Ayumi Offline OP
User
Ayumi  Offline OP
User

Joined: Oct 2008
Posts: 681
Germany
Oh schade, trotzdem danke:)
Hoffentlich erbarmt sich einer meiner


Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1