• Model Compile issues - Collision model and textures
    5 replies, posted
Well I am compiling a model, and when I compile the model, the model itself works, but it lacks a Collision model and textures. I have no idea why this happens, so I have turned to you facepunch. Here is the .qc [code]$modelname "props_street/road_sign_1.mdl" $body mybody "road_sign_1.smd" $staticprop $surfaceprop metal $cdmaterials "models\props_street" $sequence idle "road_sign_1.smd" loop fps 15 $collisionmodel "road_sign_1_phys.smd" { $concave } [/code] and the compile log, note how it doesn't even attempt to make a .phy file [code]GUIStudioMDL 2.2/Source - © 2007 Neil 'Jed' Jedrzejewski - http://www.wunderboy.org/ Created command line: "D:\Program Files\Steam\steamapps\icemaz\sourcesdk\bin\orangebox\bin\studiomdl.exe" -game "d:\program files\steam\steamapps\SourceMods\capturepoint-london" -nop4 -nox360 C:\Users\Ted\Documents\3dsmax\scenes\CapturePointLondon\road_sign_1\road_sign_1.qc qdir: "c:\users\ted\documents\3dsmax\scenes\capturepointlondon\road_sign_1\" gamedir: "d:\program files\steam\steamapps\SourceMods\capturepoint-london\" g_path: "C:\Users\Ted\Documents\3dsmax\scenes\CapturePointLondon\road_sign_1\road_sign_1.qc" Building binary model files... Working on "road_sign_1.qc" SMD MODEL road_sign_1.smd SMD MODEL road_sign_1_phys.smd Collision model completed. --------------------- writing d:\program files\steam\steamapps\SourceMods\capturepoint-london\models/props_street/road_sign_1.mdl: bones 964 bytes (1) animations 112 bytes (1 anims) (1 frames) [0:00] sequences 220 bytes (1 seq) ik/pose 164 bytes eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) textures 72 bytes keyvalues 0 bytes bone transforms 0 bytes collision 0 bytes total 1736 --------------------- writing d:\program files\steam\steamapps\SourceMods\capturepoint-london\models/props_street/road_sign_1.vvd: vertices 32400 bytes (675 vertices) tangents 10800 bytes (675 vertices) total 43264 bytes --------------------- Generating optimized mesh "d:\program files\steam\steamapps\SourceMods\capturepoint-london\models/props_street/road_sign_1.sw.vtx": body parts: 8 bytes models: 20 bytes model LODs: 12 bytes meshes: 9 bytes strip groups: 25 bytes strips: 27 bytes verts: 6075 bytes indices: 3426 bytes bone changes: 16 bytes everything: 9642 bytes --------------------- Generating optimized mesh "d:\program files\steam\steamapps\SourceMods\capturepoint-london\models/props_street/road_sign_1.dx80.vtx": body parts: 8 bytes models: 20 bytes model LODs: 12 bytes meshes: 9 bytes strip groups: 25 bytes strips: 27 bytes verts: 6075 bytes indices: 3426 bytes bone changes: 16 bytes everything: 9642 bytes --------------------- Generating optimized mesh "d:\program files\steam\steamapps\SourceMods\capturepoint-london\models/props_street/road_sign_1.dx90.vtx": body parts: 8 bytes models: 20 bytes model LODs: 12 bytes meshes: 9 bytes strip groups: 25 bytes strips: 27 bytes verts: 6075 bytes indices: 3426 bytes bone changes: 16 bytes everything: 9642 bytes Completed "road_sign_1.qc" [/code] and here is the model I am using for the collision model, see if you can find out whats wrong (If it is infact the model) [url]http://filesmelt.com/dl/road_sign_1_phys.SMD[/url] The textures are in materials/models/props_street/ and are called road_sign_1.vtf Any help is appreciated, thanks.
You didn't properly export the collision, it's an empty file. Protip: smd files are plaintext. Here are the contents of your collision model: [code]version 1 nodes 0 "sign" -1 end skeleton time 0 0 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 end triangles end [/code] Apply a texture to the model before exporting, it can be any texture.
Yeah, looks like that you have an empty smd model file...
Thank you very much the collision model is now working perfectly, however the textures still aren't working and I have no idea why :frown:.
[QUOTE=icemaz;20872635]Thank you very much the collision model is now working perfectly, however the textures still aren't working and I have no idea why :frown:.[/QUOTE] As cloud said, apply a texture in your modeler. Then go to the folder where your $cdmaterials points to and that where you drop your texture and vmt. I'm not sure how much experience you have with modeling and textured. If you need me to be more specific, let me know.
[QUOTE=fury_161;20876468]As cloud said, apply a texture in your modeler. Then go to the folder where your $cdmaterials points to and that where you drop your texture and vmt. I'm not sure how much experience you have with modeling and textured. If you need me to be more specific, let me know.[/QUOTE] Nah I fixed it earlier, was a small spelling error god dammit. I don't have that much experience with modeling and materials, but I'm learning. Figured out multiple skins and stuff earlier and I am now working on phong. Thanks though.
Sorry, you need to Log In to post a reply to this thread.