Wall Worm Forums

General Category => General Discussion => Topic started by: fafawudi on May 15, 2017, 03:15:48 AM

Title: why my teapot hull is rotated in csgo
Post by: fafawudi on May 15, 2017, 03:15:48 AM
the pictures show the setting i set in WWMT for teapot and the result in game.
Title: Re: why my teapot hull is rotated in csgo
Post by: wallworm on May 15, 2017, 10:30:59 AM
It this is for a prop_static, you'll just need to check the $staticprop option and the problem will go away. If it's an animated prop, you'll need to make a root bone and skin the main model and the hull to it.

After either case, re-export/compile.
Title: Re: why my teapot hull is rotated in csgo
Post by: fafawudi on May 15, 2017, 10:33:49 PM
Thank your replay.  my teapot is prop_static model. i have check the $staticprop option. The hull is in the right place. but i have another problem, my teapot is black. can you help me!!!! 
ps. i can see the texture in the model viewer. but can not seen in game.
Title: Re: why my teapot hull is rotated in csgo
Post by: wallworm on May 15, 2017, 11:25:25 PM
Probably incorrect shader.

Most likely you used a Brush Material, which won't work on a model. So you need to make a new material and re-export it (not the textures, just the material). So copy your material in the material editor, change it's name, change the Source shader from LightmappedGeneric to VertexLitGeneric. Then re-export the material from the WW menu.
Title: Re: why my teapot hull is rotated in csgo
Post by: fafawudi on May 16, 2017, 07:45:27 AM
sorry! i can not find the option to change the shader type from LightmappedGeneric to VertexLitGeneric.
can you take a picture of the setting.  Thanks very much!!!! Orz. Orz. Orz.
Title: Re: why my teapot hull is rotated in csgo
Post by: wallworm on May 16, 2017, 02:37:18 PM
See Source Shader Settings (http://dev.wallworm.com/document/123/source_shader_settings.html). The image on that page displays a shader set to WorldVertexTransition. In your case, make sure to check the For Model option and choose VertexLitGeneric.