Author Topic: Nondisplaying texture on model [SOLVED]  (Read 3924 times)

Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Nondisplaying texture on model [SOLVED]
« on: April 09, 2008, 03:40:35 pm »
I hate textures. I have a generator model in my map. In gtk the texture shows fine. However in the game only two of the three textures (.tgas) show. Here's the shader:

Code: [Select]
models/mapobjects/el_gen/el_gen     
{       
        {     
map models/mapobjects/el_gen/el_gen.tga     
rgbGen identity     
}     
     
        {     
                map models/mapobjects/el_gen/el_gen_fx.tga     
                blendFunc add     
                tcmod scroll 0 .4       
                rgbGen identity     
}
        {     
                map models/mapobjects/el_gen/el_gen_fx2.tga     
                blendFunc add     
                tcmod scroll 0 -.3     
                rgbGen identity 
}                     
        {     
map models/mapobjects/el_gen/el_gen.tga     
                blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA     
rgbGen lightingDiffuse     
}     
}   

I also have a few questions:

1. What's the difference between nodraw and caulk, both performance and visuals wise?

2. What is and how do i use a func_train?

3. Can you give me some ideas on detailing my rooms, and tips on how to do so?
« Last Edit: April 12, 2008, 10:30:32 am by amt111 »
Meow.

Can an admin set my name to Amtie please?

Ingar

  • Tremulous Developers
  • *
  • Posts: 554
  • Turrets: +302/-7
    • Ingar's projects on the Web
Re: Nondisplaying texture on model
« Reply #1 on: April 09, 2008, 06:23:29 pm »
1. What's the difference between nodraw and caulk, both performance and visuals wise?

Caulk blocks in-game visibility (not te be confused with the vis compile phase), nodraw does not.
Try making an empty box room and place two blocks in it: one caulked and the other
with nodraw. The caulk brush will create the Hall-Of-Mirrors effect, the nodraw brush will be invisible.

2. What is and how do i use a func_train?

A func_train is used to let a group of brushes move around along a predifined path. Think of it as, brush drives to station 1,
brush drives to station 2, brush drives to station 3, brush drives back to station 1. Tchootchoo
You can probably find a tutorial here.

3. Can you give me some ideas on detailing my rooms, and tips on how to do so?

The best hint I can give is: do not treat your details as details. Treat them as important parts of your map.
For example, you can build a room and put a generator and some machines inside to dress it up.
I would build a generator, some machines and build my room around it.

Off course you still need walls ta have an idea about the size and to compile the thing, but do not think of
them as fixed obstacles.

When someone builds a room he usually starts by creating the walls, the floor and the ceiling.
Next he will fill the room with details. Try something different: start with a detailed door,
a window or some other impressive construction (pilars, arches etc....)

The next piece of advise is a variant on an old saying:
compile early, compile often. Compiling your map has many advantages: first of all,
you'll spot leaks fairly early saving yourself a lot of trouble. You can also spot other problems:
if all of a sudden your compile lasts forever you can be quite sure something is seriously broken.

If you do manage to get it compiled, take your time to run around in your own map. Look at the details,
try to "feel" what is missing. Most if the time, I get spontanious an natural ideas. A door here, a pilar there...
sometimes small detail can have a huge inpact.

Show it to your friends, they might have some ideas too.

Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Re: Nondisplaying texture on model
« Reply #2 on: April 09, 2008, 09:07:01 pm »
Thanks for the info Ingar. For hidden surfaces, it's better to use caulk then?

And can anyone figure out why the model doesn't show well? I'll go make a screenshot and put here in a bit.
Meow.

Can an admin set my name to Amtie please?

Redman

  • Posts: 103
  • Turrets: +6/-6
Re: Nondisplaying texture on model
« Reply #3 on: April 10, 2008, 08:58:34 pm »
I see here rgbGen lightningDiffuse. I don't seen this rgbGen function. Try without this. If you use q3ase, remember that not all rgbGen etc. function works in Tremulous or this program write it wrong.

Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Re: Nondisplaying texture on model
« Reply #4 on: April 10, 2008, 09:06:12 pm »
No, i have one md3 file, which is the whole generator model. Along with it are 3 .tga files. Two of them show properly. But then again those two are animated.

Yes! It worked! But the skin is too light. Is there any way i can make it darker from the .shader file?
Meow.

Can an admin set my name to Amtie please?

blood2.0

  • Guest
Re: Nondisplaying texture on model
« Reply #5 on: April 11, 2008, 11:31:53 pm »
put a secret pipe(s) in all of your maps!!!

Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Re: Nondisplaying texture on model
« Reply #6 on: April 12, 2008, 10:29:51 am »
put a secret pipe(s) in all of your maps!!!

S'cuse me?
Meow.

Can an admin set my name to Amtie please?