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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, ozgur), 1,421 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Second skin (lightmap) not displayed #255028
03/07/09 00:45
03/07/09 00:45
Joined: Feb 2009
Posts: 25
Mexico City
DavidOC Offline OP
Newbie
DavidOC  Offline OP
Newbie

Joined: Feb 2009
Posts: 25
Mexico City
Hi,

I'm creating a MDL converter and I could convert various models, but some models fail to display the lightmap, even if it's visible in MED. I can upload a sample if it's not a known bug or if it helps.

Regards
[EDIT]
Here is a correct one: Correct
Here is the incorrect: Incorrect

Last edited by DavidOC; 03/08/09 00:42.
Re: Second skin (lightmap) not displayed [Re: DavidOC] #255252
03/09/09 08:12
03/09/09 08:12
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks, I'll look into this.

Re: Second skin (lightmap) not displayed [Re: jcl] #255308
03/09/09 13:31
03/09/09 13:31
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Ok, the reason of your problem is that the skins are wrong sorted.

The model that didn't work used two different skins for the two subsets of the mesh texture. So, there are two possibilities. Either you have a common lightmap for all mesh subsets. Then it must follow the mesh textures:

tex1,tex2,lightmap

Or you have two lightmaps, one for each subset, then the order is:

tex1,lightmap1,tex2,lightmap2

But in your model the common lightmap was the second skin, followed by an apparently unused skin, and then by a fourth skin used again for the mesh. The engine has no way to know that your second skin is meant as a lightmap.

This is maybe misleading in the manual - there is stated at some place that the lightmap is the second skin. But this is of course only true when the mesh texture is the first skin. I'll fix this in the manual.

Re: Second skin (lightmap) not displayed [Re: jcl] #255328
03/09/09 16:29
03/09/09 16:29
Joined: Feb 2009
Posts: 25
Mexico City
DavidOC Offline OP
Newbie
DavidOC  Offline OP
Newbie

Joined: Feb 2009
Posts: 25
Mexico City
Thanks a lot, I'll change the export process to match the order

Re: Second skin (lightmap) not displayed [Re: DavidOC] #255373
03/09/09 22:50
03/09/09 22:50
Joined: Feb 2009
Posts: 25
Mexico City
DavidOC Offline OP
Newbie
DavidOC  Offline OP
Newbie

Joined: Feb 2009
Posts: 25
Mexico City
It worked ordering the skins, these are two samples: samples. I have other question: when opened in MED all vertices are diconnected, I have to select all vertices and weld them. Does it happen with duplicated vertices or it's another criteria? AFAIK I'm not duplicating vertices when exporting.

Thanks for your time.

Re: Second skin (lightmap) not displayed [Re: DavidOC] #255396
03/10/09 07:46
03/10/09 07:46
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Vertices are disconnected when they belong to different smoothing groups. They must be disconnected in such a case. Welding them would cause Gouraud shading along the edges, which is normally only desired within the same smoothing group.

Re: Second skin (lightmap) not displayed [Re: jcl] #255411
03/10/09 10:13
03/10/09 10:13
Joined: Feb 2007
Posts: 353
A
amy Offline
Senior Member
amy  Offline
Senior Member
A

Joined: Feb 2007
Posts: 353
How about implementing a way to change the order of the skins in MEDīs skin manager? Currently thatīs not really possible or did I miss something?

Re: Second skin (lightmap) not displayed [Re: amy] #255462
03/10/09 16:56
03/10/09 16:56
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, it also occurred to me that Up/Down buttons would be useful for the skin manager, and I've put this on the future feature list. Currently, you have to remove the skin from the wrong place, and then add the same skin at the right place.


Moderated by  HeelX, rvL_eXile 

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