Custom Model Compiling Woes

Posted Mar 19, 2012
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?

Advertisement
Registered users don’t see ads! Register now!
Posted Mar 21, 2012
Replied 1 day later
Has anyone here compiled a model for Portal 2? Is it even possible with the beta SDK?
Posted Mar 21, 2012
Replied 4 hours later
Verrrrrry possible. Perhaps you need advice from a modeller.
Posted Mar 23, 2012
Replied 2 days later

chickenmobile wrote:
Verrrrrry possible. Perhaps you need advice from a modeller.

This would be nice.

Posted Mar 23, 2012
Replied 17 minutes later

Qwiggalo 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

Posted Mar 23, 2012
Replied 33 minutes later
If you cant compile it you need to have a qc and smds.
Then use a reference qc for your needs
Posted Mar 24, 2012
Replied 2 hours later
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.
Posted Mar 24, 2012
Replied 43 minutes later
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.
Advertisement
Registered users don’t see ads! Register now!
Posted Mar 24, 2012
Replied 13 minutes later
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

cd C:\Program Files\Steam\steamapps\common\portal 2\bin

studiomdl -game "C:\Program Files\Steam\steamapps\common\portal 2\portal2" "C:\Users\shad0w440\Desktop\example\examplemodel.qc" 

:smile: