3 registered members (AndrewAMD, VoroneTZ, dpn),
1,346
guests, and 10
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: [Plugin] Import von 2. UVMap / Import of 2nd U
[Re: JetpackMonkey]
#119645
05/10/07 11:10
05/10/07 11:10
|
Joined: Aug 2001
Posts: 2,320 Alberta, Canada
William
Expert
|
Expert
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
|
Heres another little snippet for applying lightmaps: Code:
str_for_entfile(tempstring,my);
str_lwr(tempstring); str_cpy(lightstring,"z"); str_cat(lightstring,tempstring);
//load model with light map uv-set e2 = ent_create(lightstring, nullvector, 0);
//generate and assign a new mesh with both uv-sets ent_loadseconduvset(my, e2); ent_remove(e2);
Basically you can just save your models that contains lightmaps with a "z" in front of there original names. If you put this in your action, every entity with this action will load a lightmap. If you want to have only some entities with this action load them, then you can just specify that with a flag or skill. I wish there was a way to morph the skin2 of an entity. It would make automatic lightmap texture assigning to your non-lightmap models skin2 possible.
|
|
|
Re: [Plugin] Import von 2. UVMap / Import of 2nd U
[Re: William]
#119646
05/16/07 14:53
05/16/07 14:53
|
Joined: Feb 2006
Posts: 324 Germany
maybenew
OP
Senior Member
|
OP
Senior Member
Joined: Feb 2006
Posts: 324
Germany
|
I get a beta expired message. Can you tell me about the stability of the plugin? What can cause crashes, are there things to pay special attention to? Other than that I am ready to license the plugin
|
|
|
Re: [Plugin] Import von 2. UVMap / Import of 2nd U
[Re: maybenew]
#119647
05/16/07 15:02
05/16/07 15:02
|
Joined: Nov 2004
Posts: 7,121 Potsdam, Brandenburg, Germany
Machinery_Frank
Senior Expert
|
Senior Expert
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
|
I created a fixed function effect that combines color texture, normal-map via dot3-bumpmapping and the lightmap coming from second uv-set. I am planning to create similar effects for metal, glass and reflection via cube-maps.
So I am also very interested in licensing to check that out.
Models, Textures and Games from Dexsoft
|
|
|
Re: [Plugin] Import von 2. UVMap / Import of 2nd U
[Re: maybenew]
#119648
05/16/07 15:04
05/16/07 15:04
|
Joined: May 2002
Posts: 7,441
ventilator
Senior Expert
|
Senior Expert
Joined: May 2002
Posts: 7,441
|
mesh_plugin_demo.zip ~ 2.8mb i have uploaded a time unlimited demo with a 777 polygon limit. i don't think it will crash anymore. things to know: - the two models must have the same face count - the vertices of the two models must be at exactly the same positions - the triangles of the two models must have the same vertex order (these three points usually are the case if you export them from the same application) - you can't use vec_for_mesh/vec_to_mesh anymore with a replaced mesh - it only works with the beta at the moment if you want to license it already you can write me a pm. (something else to know: there seems to be a model loading bug in the recent betas. http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/751735/an/0/page/0#Post751735my plugin is only interested in the texture coordinates of the second model but because of this bug the second model needs some dummy texture. best assign the light map as external texture like in my example. this isn't a problem of my plugin though.)
|
|
|
Re: [Plugin] Import von 2. UVMap / Import of 2nd U
[Re: ventilator]
#119654
05/22/07 16:22
05/22/07 16:22
|
Joined: Nov 2000
Posts: 1,534 hamburg
Samb
Serious User
|
Serious User
Joined: Nov 2000
Posts: 1,534
hamburg
|
ok, got it to work here my test: without 2nd uv map with 2nd uv map: nice
Last edited by Samb; 05/22/07 16:23.
|
|
|
|