Custom Model Compiling Woes
Quote from Qwiggalo on March 19, 2012, 5:38 pmWhen I load my model, which I made in Maya and exported as an SMD, into Portal 2's model viewer I get a "Error loading model." error, but I can load it fine in the SourceSDK version of model viewer.
When I compile my model with ConTEXT or with StudioCompiler it seems to export the correct files only when using SourceSDK's studiomdl.exe. When I try using the one in Portal 2's folder it doesn't export all the files, so I'm assuming I should be using the SourceSDK one.
What am I doing wrong?
When I load my model, which I made in Maya and exported as an SMD, into Portal 2's model viewer I get a "Error loading model." error, but I can load it fine in the SourceSDK version of model viewer.
When I compile my model with ConTEXT or with StudioCompiler it seems to export the correct files only when using SourceSDK's studiomdl.exe. When I try using the one in Portal 2's folder it doesn't export all the files, so I'm assuming I should be using the SourceSDK one.
What am I doing wrong?
Quote from ChickenMobile on March 21, 2012, 5:17 amVerrrrrry possible. Perhaps you need advice from a modeller.
Verrrrrry possible. Perhaps you need advice from a modeller.
Quote from Qwiggalo on March 23, 2012, 9:02 pmchickenmobile wrote:Verrrrrry possible. Perhaps you need advice from a modeller.This would be nice.
This would be nice.
Quote from ChickenMobile on March 23, 2012, 9:20 pmQwiggalo wrote:Has anyone here compiled a model for Portal 2? Is it even possible with the beta SDK?Since no-body cares I would like to point out that compiling a model for Portal 2 is the same as other source games.
First you need to convert your model to the correct format which you can compile. (SMD)
Lookup a tutorial on how to compile a model: https://developer.valvesoftware.com/wik ... ng_a_model and apply it to Portal 2
Since no-body cares I would like to point out that compiling a model for Portal 2 is the same as other source games.
First you need to convert your model to the correct format which you can compile. (SMD)
Lookup a tutorial on how to compile a model: https://developer.valvesoftware.com/wik ... ng_a_model and apply it to Portal 2
Quote from spongylover123 on March 23, 2012, 9:53 pmIf you cant compile it you need to have a qc and smds.
Then use a reference qc for your needs
If you cant compile it you need to have a qc and smds.
Then use a reference qc for your needs
Quote from Vordwann on March 24, 2012, 12:10 amI can give you some advice. I have compiled some custom self-made models for Portal 2. First of all make sure the texture you've made for it is vertexlitgeneric. If that's true already, PM me.
I can give you some advice. I have compiled some custom self-made models for Portal 2. First of all make sure the texture you've made for it is vertexlitgeneric. If that's true already, PM me.
[spoiler][SP] Alternate[/spoiler]
Quote from Qwiggalo on March 24, 2012, 12:54 amThanks for the replies, but I said in the OP that the model works when loaded in SourceSDK's model viewer, it doesn't work in Portal 2 SDK's model viewer.
Thanks for the replies, but I said in the OP that the model works when loaded in SourceSDK's model viewer, it doesn't work in Portal 2 SDK's model viewer.
Quote from shad0w440 on March 24, 2012, 1:08 amI can help I'm a modeler and I've compiled many models for portal 2
all you need to do to compile a model under portal 2 is type this in command prompt
- Code: Select all
cd C:Program FilesSteamsteamappscommonportal 2binstudiomdl -game "C:Program FilesSteamsteamappscommonportal 2portal2" "C:Usersshad0w440Desktopexampleexamplemodel.qc"
I can help I'm a modeler and I've compiled many models for portal 2
all you need to do to compile a model under portal 2 is type this in command prompt
- Code: Select all
cd C:Program FilesSteamsteamappscommonportal 2binstudiomdl -game "C:Program FilesSteamsteamappscommonportal 2portal2" "C:Usersshad0w440Desktopexampleexamplemodel.qc"
![]()


