Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,182 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 13 of 14 1 2 11 12 13 14
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 Offline
Expert
William  Offline
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
M
maybenew Offline OP
Senior Member
maybenew  Offline OP
Senior Member
M

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 Offline
Senior Expert
Machinery_Frank  Offline
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 Offline
Senior Expert
ventilator  Offline
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#Post751735
my 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] #119649
05/16/07 20:08
05/16/07 20:08
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
so does this work without the beta yet?

Re: [Plugin] Import von 2. UVMap / Import of 2nd U [Re: lostclimate] #119650
05/16/07 20:51
05/16/07 20:51
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
So we just have to hope that an A6.6 will appear very soon.


Models, Textures and Games from Dexsoft
Re: [Plugin] Import von 2. UVMap / Import of 2nd U [Re: Machinery_Frank] #119651
05/21/07 18:54
05/21/07 18:54
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
by the way... 6.6 is out now!

Re: [Plugin] Import von 2. UVMap / Import of 2nd U [Re: ventilator] #119652
05/22/07 15:03
05/22/07 15:03
Joined: Nov 2000
Posts: 1,534
hamburg
Samb Offline
Serious User
Samb  Offline
Serious User

Joined: Nov 2000
Posts: 1,534
hamburg
testing it at the moment.
but my model is very.. VERY dark...
I don't know why.. any clue?

Re: [Plugin] Import von 2. UVMap / Import of 2nd U [Re: Samb] #119653
05/22/07 15:13
05/22/07 15:13
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
the brightness depends on the used material and on your light map.

i think with my example material every light map value above 128 brightens the texture and every value below 128 darkens the texture.

<edit> i checked your models and the reason was that they didn't have the same scale. the vertices must have exactly the same positions otherwise the triangles won't be found on the second model. if a triangle doesn't get found its texture coordinates of the second uv-set get set to 0. </edit>

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 Offline
Serious User
Samb  Offline
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.
Page 13 of 14 1 2 11 12 13 14

Moderated by  checkbutton, Inestical, Perro 

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