No Vertex Program

EagleEye

18-12-2005 17:01:17

10:48:40: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 4
Function: Pass::getVertexProgramParameters
Description: This pass does not have a vertex program assigned!.
File: c:\softwaredevelopment\c++\ogresdk\ogrenew\ogremain\src\ogrepass.cpp
Line: 743
Stack unwinding: <<beginning of stack>>


This is yet another enigmatic error that has no way of tracing where it's coming from... I really wish these errors had documentation... "Error #: 4" is a good start, how about having a page that lists the errors and what causes them? SO far I've seen error numbers 4, 6, 7, 14... you get the idea... and so far none of the error numbers have helped in actually solving the issue.

tuan kuranes

18-12-2005 17:16:40

You should debug the application and get the call stack so that I can help you and some info (cvs or sdk, texture mode used, vertexcompression, etc...) would help too.

Seems like the material used (surely the texture mode) looks for a .cg program in the pass but cannot find it.

error number comes from the order of

enum ExceptionCodes {
UNIMPLEMENTED_FEATURE,
ERR_CANNOT_WRITE_TO_FILE,
ERR_NO_RENDERSYSTEM_SELECTED,
ERR_DIALOG_OPEN_ERROR,
ERR_INVALIDPARAMS,
ERR_RENDERINGAPI_ERROR,
ERR_DUPLICATE_ITEM,
ERR_ITEM_NOT_FOUND,
ERR_FILE_NOT_FOUND,
ERR_INTERNAL_ERROR,
ERR_RT_ASSERTION_FAILED,
ERR_NOT_IMPLEMENTED
};

in OgreException.h

Descritption is the thing to read and Pass::getVertexProgramParameters is the class and method that raises exception.

EagleEye

19-12-2005 23:10:10

The problem is, I can't debug it... it happens after the first frame is rendered (I can catch the execution when it renders a frame), but it never gets back to my code after that... so I can't see what all is happening in the internal workings.

EagleEye

20-12-2005 00:09:14

I think I've narrowed it down to the splatting.material files...

They are the stock material files that come with the PLSM, so it may have to do with maybe my plugins.cfg not referencing a required plugin, or resources.cfg not loading a required resource location in...

Edit: Upon further review, it seems there's a "splat" folder I didn't have referenced in resources.cfg

EagleEye

20-12-2005 00:12:21

Okay, that worked...

But now I can't seem to get my CEGUI working right... it was working before... but now it isn't since I got PLSM working.

tuan kuranes

20-12-2005 08:44:50

you need to specify the scene manager to CEGUI at start.

EagleEye

20-12-2005 15:24:30

I had a feeling it had to do with changing the scene manager from general to the PLSM one.