Please or Register to create posts and topics.

Custom Model Compiling Woes

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?

Has anyone here compiled a model for Portal 2? Is it even possible with the beta SDK?

Verrrrrry possible. Perhaps you need advice from a modeller.

?????????????????????????????TWP Releases | My Workshop
chickenmobile wrote:
Verrrrrry possible. Perhaps you need advice from a modeller.

This would be nice.

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

?????????????????????????????TWP Releases | My Workshop

If you cant compile it you need to have a qc and smds.
Then use a reference qc for your needs

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.

My Maps:
[spoiler][SP] Alternate[/spoiler]

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.

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 2bin

studiomdl -game "C:Program FilesSteamsteamappscommonportal 2portal2" "C:Usersshad0w440Desktopexampleexamplemodel.qc"

:)

ImageImage