Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Model Editor Help Texture shows up fine in model editor but not in game
richm0nkey Offline
Junior Member

Posts: 35
Threads: 9
Joined: Feb 2013
Reputation: 1
#1
Question  Texture shows up fine in model editor but not in game

So what I did was take the original padlock and move a few polygons to make the pad lock look as if it was unlocked. I then proceeded to import it into the model editor where I added the normal padlock texture/material to my pad lock model, added user variables etc etc.

The texture shows up in the model editor but not in the game nor in the map editor. Yes the entity does exist because when I place it in the map editor I can select where I placed it and its wire frame will show up.

Also I have noticed if I deselect the padlock's mesh in the model editor then re-select the mesh; the material I defined for it is empty in the in the box used for defining materials but the texture remains. Same thing happens when I close and re-open the model editor.

Here are some screens I took to shed more light on my situation...

The entity appearing in the map editor with missing textures
http://imgur.com/wVKSFHJ,A6iMmMe

The entity appearing in the model editor with flawless textures
http://imgur.com/wVKSFHJ,A6iMmMe#1

Help Angel
(This post was last modified: 03-11-2013, 10:01 AM by richm0nkey.)
03-11-2013, 09:25 AM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: Texture shows up fine in model editor but not in game

NEVER choose the material from the ModelEditor. You MUST have everything related to your model like this:

Padlock.dds
Padlock_nrm.dds
Padlock_spec.dds
Padlock.dae
Padlock.ent
Padlock.msh (It gets generated automatically)
Padlock.mat

Or simplier: Just export the .dae to the original game padlock FOLDER. Then, make the .ent. Simple as that.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
03-11-2013, 02:21 PM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#3
RE: Texture shows up fine in model editor but not in game

Umm, what difference is their if I use a "png" or a "dds" for the file format for the diff/norm/spec maps? I can understand jpeg can't store transparency values or other formats might be to large.
03-11-2013, 04:15 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: Texture shows up fine in model editor but not in game

(03-11-2013, 04:15 PM)Rapture Wrote: Umm, what difference is their if I use a "png" or a "dds" for the file format for the diff/norm/spec maps? I can understand jpeg can't store transparency values or other formats might be to large.

The .dds files allow to make Mipmaps. These increas performance when in-game:

When you are near, very near, the game loads the biggest texture. When you go far, as not that much quality is needed, the game loads a smaller pic that looks the same but that is good for performance.

Man, you have given me the solution for a problem.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
03-11-2013, 05:49 PM
Find
richm0nkey Offline
Junior Member

Posts: 35
Threads: 9
Joined: Feb 2013
Reputation: 1
#5
RE: Texture shows up fine in model editor but not in game

(03-11-2013, 02:21 PM)The chaser Wrote: NEVER choose the material from the ModelEditor. You MUST have everything related to your model like this:

Padlock.dds
Padlock_nrm.dds
Padlock_spec.dds
Padlock.dae
Padlock.ent
Padlock.msh (It gets generated automatically)
Padlock.mat

Or simplier: Just export the .dae to the original game padlock FOLDER. Then, make the .ent. Simple as that.

Does that mean that I can copy the

Padlock.dds
Padlock_nrm.dds
Padlock_spec.dds
Padlock.dae
Padlock.ent
Padlock.msh
Padlock.mat

Into the padlocks folder and rename the copied files to

Padlock_unlocked.dds
Padlock_unlocked_nrm.dds
Padlock_unlocked_spec.dds
Padlock_unlocked.dae
Padlock_unlocked.ent
Padlock_unlocked.msh
Padlock_unlocked.mat

and that should work?

EDIT: Instead of the normal .dae I use the unlocked .dae
(This post was last modified: 03-11-2013, 06:12 PM by richm0nkey.)
03-11-2013, 05:53 PM
Find
WALP Offline
Posting Freak

Posts: 1,221
Threads: 34
Joined: Aug 2012
Reputation: 45
#6
RE: Texture shows up fine in model editor but not in game

Like Chaser said the DDS improves performance, but another important thing is that when you are using a high-res texture on an object that does not occupy enough enough pixels on the screen for the entire image to be displayed, you will get an odd noisy like effect when moving around because the engine will keep swapping the pixels since it cant decide which from the high res should be displayed on the few pixels it has available.

If you check off the mip-map animation in the material editor and zoom in and out you can see this effect clearly.

Also its not just the mesh that will be created automatically the mat too. If you have not created a mat then the model viewer will create one automatically and name it after the texture that was assigned to the collada when you exported it(unless you changed the texture with notepad++ or simular).
03-11-2013, 06:45 PM
Find
richm0nkey Offline
Junior Member

Posts: 35
Threads: 9
Joined: Feb 2013
Reputation: 1
#7
RE: Texture shows up fine in model editor but not in game

Oh OK I see now thanks Big Grin

(This post was last modified: 03-11-2013, 07:35 PM by richm0nkey.)
03-11-2013, 07:20 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#8
RE: Texture shows up fine in model editor but not in game

http://www.frictionalgames.com/forum/thread-19868.html

Scroll down to "Common Level Problems" and the second Q/A will give you your solution.
(This post was last modified: 03-11-2013, 07:31 PM by Statyk.)
03-11-2013, 07:30 PM
Find




Users browsing this thread: 1 Guest(s)