Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] misc_model : Support for specular and relief mapping?

#1
Apparently misc_models don´t seem to support specular and relief mapping nor is the dot2product shader effect properly working. Is there any way to implement this? Misc_gamemodel does support these but is not meant for baking into the bsp as the regular misc_model is.

EDIT: Sorry for the trouble. It´s fixed. Please delete this post!
Reply

#2
Don't delete this post! I can lock it and it'll get off the first page eventually.

Unless you really insist that it has to be removed. PM me then.
Reply

#3
Could not he delete it himself anyway?
Reply

#4
better yet, do tell how it was fixed.
Reply

#5
I didn't realize it wasn't explained. Topic re-opened!
Reply

#6
Ok, so to clear things up, this is what happened:

I´ve had a model which used a terrain blending texture (a shader including the dotproduct2 property). Though this model didn´t make any use of specular- and reliefmapping. See the terrain models in the map Warfare for this, they exactly represent this issue. But this issue is not model specific. It´s related to the dotproduct2 or the blending property. One more oddity shows up when using these shader properties is that BSP structure then supports reliefmapping but not specularmapping.

So misc_models do support specular and reliefmapping but shaders using a blending technique don´t.

Maybe some of you may try this out and we´ll see whether this behaviour can´t be confirmed?

By the way this is the shader I wrote:
Code:
textures/map_warfare/blends_earth_rock01_sand01
{
    qer_editorimage textures/map_warfare/blends_earth_rock01_sand01.tga
    
    q3map_bounceScale  0.5
    dpoffsetmapping - 9 match8 168

    q3map_lightmapSampleOffset 8
    q3map_nonplanar
    q3map_shadeangle 95

    q3map_alphaMod dotproduct2 ( 0 0 1 )

    {
        map textures/phillipk2x/natural/pk02_rock01.tga // Primary
    }

    {
        map textures/phillipk2x/natural/pk02_sand01.tga // Secondary
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA        
        alphaGen vertex
    }

    {
        map $lightmap
        blendFunc GL_DST_COLOR GL_ZERO
    }
}
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Module (music) support for Darkplaces (again) [test it] nilyt 8 8,404 04-21-2015, 08:24 PM
Last Post: BuddyFriendGuy
  Relief Mapping - Performance Improvement - Beta v2 master[mind] 39 45,662 11-11-2014, 03:42 AM
Last Post: Lee_Stricklin
  Xonotic Game Engine, Mapping, Development - General Developer Questions p14r 6 10,218 08-04-2014, 10:24 AM
Last Post: p14r
Exclamation Join the Xonotic mapping team Mirio 2 11,812 06-14-2013, 04:31 AM
Last Post: Maddin
  Question and Rant on the LG and MG changes. GegoXAREN 5 5,586 11-26-2012, 04:16 PM
Last Post: hutty
  Big Brother Bot Support Majki 30 26,877 10-16-2012, 12:32 PM
Last Post: Mr. Bougo
  Mapping Tutorials hutty 57 44,385 08-31-2012, 11:43 AM
Last Post: aa
Brick Proposal to change the mapping procedure for official Xonotic maps CuBe0wL 21 33,037 04-13-2012, 10:40 AM
Last Post: Samual
  My mapping ideas - pick one! CuBe0wL 28 30,582 07-07-2011, 06:48 AM
Last Post: CuBe0wL
Question Mapping with Blender? unfa 8 8,598 03-31-2011, 08:26 AM
Last Post: Sepelio

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-