How do i make reflections in sun glasses, scopes

Discussion in 'Mapping Questions & Discussion' started by Russia, Nov 12, 2007.

  1. Russia

    Russia Guest

    Positive Ratings:
    0
    hi guys just got the SDK and have been playing around with it for a bit, I have one lil problem tho how do i get the reflections in the sniper scope or glasses becouse all i get is a pink and black mesh instead of the correct reflections of the saroundings, any help would be great

    thanks
     
  2. Russia

    Russia Guest

    Positive Ratings:
    0
    ohh never mind I figured out how it was as simple as Creating a env_cubemap Entety
    and you get all the reflections on the scope and shiny stuff
     
  3. Intraman

    Intraman L4: Comfortable Member

    Messages:
    191
    Positive Ratings:
    0
    heh yeah.. I still don't understand why something like wouldn't just be included automaticly but ah well.
     
  4. Cdsand

    Cdsand L2: Junior Member

    Messages:
    75
    Positive Ratings:
    1
    Is that all you did? You need to place a env_cubemap in the middle of each area that has contrasting surroundings. Use buildcubemaps in the console to give each env_cubemap its associated reflection texture. If you don't, you'll only get a default reflection made with the skybox texture.
     
  5. Kaishi

    Kaishi Guest

    Positive Ratings:
    0
    So, how do I open my map in another mod/game to do buildcubemaps... Everytime I try it hl2 crashes :/
     
  6. drp

    aa drp

    Messages:
    2,256
    Positive Ratings:
    2,572
    and why dont you do it in TF2? is it not working?
     
  7. Kaishi

    Kaishi Guest

    Positive Ratings:
    0
    yeah, i get errors, and all of the posts I found said. "you can'd do it in tf2, do it in another game/mod"

    I get the following errors when I try to do it in TF2

     
  8. Intraman

    Intraman L4: Comfortable Member

    Messages:
    191
    Positive Ratings:
    0
    That's no longer true, I believe.
     
  9. Kaishi

    Kaishi Guest

    Positive Ratings:
    0
    it appears so.

    I guess my problem was this:?

    I'm using other skyboxes and after deleteing and re-creating my env_cubemaps and whatnot, it looks like i've got it working.

    edit: yep, fixed it.

    P.S. I'd really like to use the TF2 skyboxes :(
     
    Last edited by a moderator: Dec 6, 2007
  10. gnat

    gnat Guest

    Positive Ratings:
    0
    building cubemaps in TF2 is fixed. if you end up with purple textures from the tf2 skies, then type "mat_specular 0" before you build your cube maps. that will disable reflections in the game engine. also, the map must be reloaded after executing the buildcubemaps command or they will not be saved.

    you'll need to set mat_specular back to it's default value of "1" if you want to see what your new cubemaps look like.
     
    Last edited by a moderator: Dec 7, 2007
  11. oxy

    oxy L5: Dapper Member

    Messages:
    208
    Positive Ratings:
    29
    I am also having this trouble. I have made a custom skybox, I got everything working correctly I have packed my skybox with pakrat. I placed and build my cubemaps but am still getting purple glass. When I bulld my cubemaps I am getting this in console:

    Code:
    ] buildcubemaps 
    Current mod isn't in a subdirectory of "game"!
    bounce: 1/1 sample: 1/24
    bounce: 1/1 sample: 2/24
    bounce: 1/1 sample: 3/24
    bounce: 1/1 sample: 4/24
    bounce: 1/1 sample: 5/24
    bounce: 1/1 sample: 6/24
    bounce: 1/1 sample: 7/24
    bounce: 1/1 sample: 8/24
    bounce: 1/1 sample: 9/24
    bounce: 1/1 sample: 10/24
    bounce: 1/1 sample: 11/24
    bounce: 1/1 sample: 12/24
    bounce: 1/1 sample: 13/24
    bounce: 1/1 sample: 14/24
    bounce: 1/1 sample: 15/24
    bounce: 1/1 sample: 16/24
    bounce: 1/1 sample: 17/24
    bounce: 1/1 sample: 18/24
    bounce: 1/1 sample: 19/24
    bounce: 1/1 sample: 20/24
    bounce: 1/1 sample: 21/24
    bounce: 1/1 sample: 22/24
    bounce: 1/1 sample: 23/24
    bounce: 1/1 sample: 24/24
    *** Error: Skybox vtf files for sky_furnace_01 weren't compiled with the same size texture and/or same flags!
    Can't load skybox file sky_furnace_01 to build the default cubemap!
    
    Thanks for the help.

    oxy