Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 677 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 5 of 10 1 2 3 4 5 6 7 9 10
Re: use a second uv-set on your models [Re: ventilator] #131524
06/05/07 02:17
06/05/07 02:17
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
Try again I reuploaded. And the tga texture part of the model is the small leaf part

Re: use a second uv-set on your models [Re: ventilator] #131525
06/05/07 06:33
06/05/07 06:33
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
Quote:

ello, have a look at the example level. how would you achieve the same texture resolution of the grass for example if you baked everything into one image? you would need a 8192x8192 image or something like that.




yes, but if i bake the shadows and use detailmaps like gras and stone and blendmaps etc within a shader. i mean the baked shadow already provides a good uv-set and based on that i can tile the grass and other textures by using multipliers inside the shader code and in the end i take the shadowmap and multiply it. that should give the same results, right?

Re: use a second uv-set on your models [Re: ello] #131526
06/05/07 08:36
06/05/07 08:36
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
Machinery_Frank Offline
Senior Expert
Machinery_Frank  Offline
Senior Expert

Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
Ello:
This might work in the case of a terrain with only one tiled texture like grass. But I can also map a sci-fi room with lots of tilable textures, many floor tiles, ceiling tiles, wall plates and columns with special textures. After that I create a second uv-set with a none-tilable uv-map and bake the shadows / static lighting into it. I can use even GI, Radiosity, area lights whatever I need.
At the end I combine both textures and uv-sets and could even live with 2 medium sized textures like 1024x1024.

Such a level could look beautiful and would render full speed. My only concern is how can I add normal-mapping to this scenario. If anybody finds a solution then this will be my favourite tool.

I still did not find the time to check this out. Have to finish some paid jobs. But I am still highly interested in that.


Models, Textures and Games from Dexsoft
Re: use a second uv-set on your models [Re: Machinery_Frank] #131527
06/05/07 12:37
06/05/07 12:37
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
Code:
	effect=
"
texture mtlSkin1;
texture entSkin1;

technique t0
{
pass p0
{
Texture[0]=<entSkin1>;
Texture[1]=<mtlSkin1>;
Texture[2]=<entSkin1>;

TexCoordIndex[0] = 0;
ColorArg1[0] = Texture;
ResultArg[0] = Temp;

// mix light map with dynamic lighting
TexCoordIndex[1] = 1;
ColorArg1[1] = Texture;
ColorOp[1] = AddSigned;
ColorArg2[1] = Diffuse;

AlphaArg1[1] = Temp;
AlphaOp[1] = SelectArg1;

// apply lighting to texture
TexCoordIndex[2] = 0;
ColorArg1[2] = Texture;
ColorOp[2] = Modulate2x;
ColorArg2[2] = Current;

MagFilter[2] = Linear;
MinFilter[2] = Linear;
MipFilter[2] = Linear;
}
}
";

this seems to work. not sure if it could be done with two texture stages only.

i think it would be better to separate it into two models (one with the opaque textures and one with the transparent ones) so that the engine can correctly render them in the opaque/transparent render passes.

Re: use a second uv-set on your models [Re: ventilator] #131528
06/05/07 13:56
06/05/07 13:56
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
Thank you very much! It works well When I get the time I'll test it extensively with trees and foliage ^^

Re: use a second uv-set on your models [Re: DavidLancaster] #131529
06/05/07 23:44
06/05/07 23:44
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
i have programmed a function called supertrace() which offers this functionality: http://www.coniserver.net/ubbthreads/sho...true#Post745256

supertrace.zip ~ 500kb
it's a free separate plugin. to try out the example script extract the zip file to the directory with the mesh plugin demo.

with this function entities will be able to react to shadows below them. (another thing which wouldn't be possible if you just baked everything into one texture.)

it could also be helpful for other things.



it was a bit tricky to implement and it is experimental. i don't know if it is usable for real projects.









Re: use a second uv-set on your models [Re: ventilator] #131530
06/06/07 04:24
06/06/07 04:24
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
FUDGE Ventilator. You've just made history, there is now no reason for myself to use bsp, apart from it being simpler to throw it all together in WED (but longer and more tedious in the long run). Please post this in user contribs! I only came upon this thread because I was looking at your blender tutorial and managed to see your signature ^^ Otherwise I don't normally look in third party forum.

Re: use a second uv-set on your models [Re: DavidLancaster] #131531
06/06/07 08:27
06/06/07 08:27
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
Machinery_Frank Offline
Senior Expert
Machinery_Frank  Offline
Senior Expert

Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
I am not sure if I did understand it well.

Is it meant to be used as follows? You trace with supertrace() to the texture beyond your position (choosing first or second uv-set) and you can get a color or the darkness of the shadow to make something like: hide in the shadows, warm up the player in the sun or program some dynamic over-exposures?


Models, Textures and Games from Dexsoft
Re: use a second uv-set on your models [Re: Machinery_Frank] #131532
06/06/07 12:50
06/06/07 12:50
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
I'm probably saying something you might already know Frank...You get the darkness and color of the surface below a dynamic entity like the player and change it's ambient/color based on that. Otherwise if the player steps into a shadow it'll have the same ambient, but using this code you can change it's ambient because you can read from the shadow map below the player ^^

Re: use a second uv-set on your models [Re: DavidLancaster] #131533
06/06/07 15:31
06/06/07 15:31
Joined: Dec 2005
Posts: 478
India
M
msl_manni Offline
Senior Member
msl_manni  Offline
Senior Member
M

Joined: Dec 2005
Posts: 478
India
If I understand correctly then you are using Newton + Second_UV for your projects. That means that you have been able to implement the polygonal collision detection with Newton. Is it for Lite_c only or the whole package be used with c_script too. Please elaborate your plans about your project implementation, which seems to be very exciting.


My Specialities Limited.
Page 5 of 10 1 2 3 4 5 6 7 9 10

Moderated by  aztec, Blink, HeelX 

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