SkyX plugin [SkyX 0.1 released! - Page 1]

A place to show off your latest screenshots and for people to comment on them. Only start a new thread here if you have some nice images to show off!
LBDude
Gnome
Posts: 389
Joined: Mon Jul 26, 2010 10:53 pm
x 22

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by LBDude »

Are you running debug mode? If so, for the SKYX project change c/c++->code generation->runtime library from multi-threaded DLL to multi-threaded debug dll (do this for debug version). Reason I mentioned this is because that's exactly where it was crashing on me, in MeshManager.
My blog here.
Game twitter here
JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by JonnyJP »

LBDude wrote:Are you running debug mode? If so, for the SKYX project change c/c++->code generation->runtime library from multi-threaded DLL to multi-threaded debug dll (do this for debug version). Reason I mentioned this is because that's exactly where it was crashing on me, in MeshManager.
Will try this, hope it works!!

Thanks
JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by JonnyJP »

No, it's crashing at exactly the same place.

EDIT
I forgot to copy the SkyX.dll to my project. After doing that it now crashes here:

ResourceGroupManager::isResourceGroupInGlobalPool()

because grp from the line ResourceGroup* grp = getResourceGroup(name); is NULL.

Any ideas?
JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by JonnyJP »

The last line of the Ogre.log seems to identify the problem...

12:49:44: OGRE EXCEPTION(5:ItemIdentityException): Cannot find a group named SkyX in ResourceGroupManager::isResourceGroupInitialised at .\src\OgreResourceGroupManager.cpp (line 1889)

So how do I fix this please?
JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by JonnyJP »

If I add this line before creating SkyX then I get a different crash...

Ogre::ResourceGroupManager::getSingleton().addResourceLocation("C:\\SkyX\\SkyX\\media","FileSystem", "SkyX",true);

The crash is at GPUManager::setGpuProgramParameter on this line Parameters->setNamedConstant(Name, Value); with the Ogre log

12:59:52: Can't assign material _NULL_ to SubEntity of SkyXMeshEnt because this Material does not exist. Have you forgotten to define it in a .material script?
12:59:52: WARNING: material SkyX_Skydome_STARFIELD_LDR has no supportable Techniques and will be blank. Explanation:
Pass 0: Vertex program SkyX_Skydome_VP cannot be used - compile error.
12:59:52: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
LBDude
Gnome
Posts: 389
Joined: Mon Jul 26, 2010 10:53 pm
x 22

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by LBDude »

Okay, you were having incorrect debug settings, because you got past that first MeshManager "crash". The program runs but is having shader issues. The warning with _NULL_ to SubEntity is something I also have. The other one I never ran into. Could you also post the full logs? I'm not sure why it's giving your the errors. Usually when I run into these kinds of errors is due to problems with my shader. Maybe even that your hardware doesn't support the shader. So what kind of graphics card do you have?

BTW: Were you able to run the binary demo of skyx at all?
My blog here.
Game twitter here
JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by JonnyJP »

Binary demos work perfectly fine.

I'll post the full logs tomorrow when I'm back at work.
JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by JonnyJP »

Code: Select all

09:24:24: Added resource location 'C:\SkyX\SkyX\media' of type 'FileSystem' to resource group 'SkyX' with recursive option
09:24:24: Parsing scripts for resource group Autodetect
09:24:24: Finished parsing scripts for resource group Autodetect
09:24:24: Parsing scripts for resource group General
09:24:24: Finished parsing scripts for resource group General
09:24:24: Parsing scripts for resource group Internal
09:24:24: Finished parsing scripts for resource group Internal
09:24:24: Parsing scripts for resource group ProjectResources
09:24:24: Parsing script skybox.material
09:24:25: Finished parsing scripts for resource group ProjectResources
09:24:25: Parsing scripts for resource group SkyX
09:24:25: Parsing script SkyX/SkyX.material
09:24:25: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Clouds.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Clouds_VP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Clouds.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(35): setting of constant failed
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Clouds.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Clouds_LDR_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Clouds.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Clouds.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Clouds_HDR_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Clouds.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_VolClouds.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_VolClouds_VP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_VolClouds.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_VolClouds.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_VolClouds_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_VolClouds.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Skydome.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Skydome_VP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Skydome.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Skydome.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Skydome_STARFIELD_LDR_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Skydome.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Skydome.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Skydome_STARFIELD_HDR_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Skydome.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Skydome.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Skydome_LDR_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Skydome.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Skydome.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Skydome_HDR_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Skydome.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Moon.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Moon_VP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Moon.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Moon.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Moon_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Moon.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Ground.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Ground_VP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Ground.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(523): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(524): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(525): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(528): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(530): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(533): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(536): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(538): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(539): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(540): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(543): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(545): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(547): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(548): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(550): setting of constant failed
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(551): setting of constant failed
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Ground.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Ground_LDR_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Ground.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
09:24:26: Compiler error: invalid parameters in SkyX/SkyX.material(564): setting of constant failed
09:24:26: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Ground.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: High-level program SkyX_Ground_HDR_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource SkyX_Ground.hlsl in resource group SkyX or any other group. in ResourceGroupManager::openResource at .\src\OgreResourceGroupManager.cpp (line 753)
09:24:26: Finished parsing scripts for resource group SkyX
09:24:27: Material MaterialSurface was requested with isManual=true, but this is not applicable for materials; the flag has been reset to false
09:24:27: Material MaterialWindow was requested with isManual=true, but this is not applicable for materials; the flag has been reset to false
09:24:27: Material MaterialDoor was requested with isManual=true, but this is not applicable for materials; the flag has been reset to false
09:24:27: Material MaterialOutline was requested with isManual=true, but this is not applicable for materials; the flag has been reset to false
09:24:27: Can't assign material _NULL_ to SubEntity of SkyXMeshEnt because this Material does not exist. Have you forgotten to define it in a .material script?
09:24:27: WARNING: material SkyX_Skydome_STARFIELD_LDR has no supportable Techniques and will be blank. Explanation: 
Pass 0: Vertex program SkyX_Skydome_VP cannot be used - compile error.

09:24:27: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at .\src\OgreGpuProgramParams.cpp (line 1423)
It looks like a resource problem. Could you please let me know how to add the resource group to my project? I though it would work with

Code: Select all

Ogre::ResourceGroupManager::getSingleton().addResourceLocation("C:\\SkyX\\SkyX\\media","FileSystem", "SkyX",true);
but obviously this isn't helping things.
JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by JonnyJP »

Found the solution to THAT problem, the resource path was wrong, it should've been "C:\\SkyX\\SkyX\\media\\SkyX".

Now it compiles and runs, but is just totally black! No sky or anything. Do I need to setup some parameters or something?

Cheers

(the Ogre.log is your friend)
User avatar
Beauty
OGRE Community Helper
OGRE Community Helper
Posts: 767
Joined: Wed Oct 10, 2007 2:36 pm
Location: Germany
x 39

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by Beauty »

Maybe someone like to create a tiny demo application for SkyX, which we can add to the Mogre SDK?
Then it's more easy for people who never used SkyX before.

The Mogre Wiki Tutorial Framework will be useful for quick implementation of such a demo application.
With the framework there is no need to implement the workaround (init engine, add camera, moving control, etc.).
Help to add information to the wiki. Also tiny edits will let it grow ... :idea:
Add your country to your profile ... it's interesting to know from where of the world you are.
JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by JonnyJP »

Right, I've got a black sky with clouds showing and thte artifacts on page 17 of this thread. When I try setting parameters with the atmosphere manager or in skyX I get crashes.

So, could you please let me know how to:

1) Get rid of those artifacts (apparently you need to remove far clip distance or something, not sure how to do this).
2) Set parameters to get a nice looking sky as in Demo 1.
3) Change cloud cover.
4) Set up wind speed etc and animate the clouds.

Any help greatly appreciated.

Many thanks.

JP

EDIT just letting you know, I've looked at the code in the first demo application and it looks like I'm doing everything the same. It just seems to create an instance of skyx and add a cloud layer. The atmosphere settings are modified when keys are pressed but without pressing keys the sky looks normal.

A nice step by step tutorial would be good for this kind of thing if possible.
JonnyJP
Goblin
Posts: 231
Joined: Sun Nov 01, 2009 4:23 pm
x 2

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by JonnyJP »

Just calling update sorted out the issue with the dodgy artifacts, but the black sky problem still persist.

It appears the black sky problem occurs because I was using stencil shadows in my view which are apparently incompatible with SkyX. Just need to work out how to get texture shadows working with my static geometry and that should be that sorted.
duc_ttm
Gnoblar
Posts: 1
Joined: Tue Mar 01, 2011 3:46 am

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by duc_ttm »

To Xavier.
Have you finished the clouds rendering saw from above (seeing the clouds from above).
Last edited by duc_ttm on Tue Mar 01, 2011 2:11 pm, edited 1 time in total.
User avatar
nevarim
Gnoll
Posts: 675
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
x 4

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by nevarim »

anyone has latest versio of skyx compiled with ogre 1.7.2 running well?

with this error solved?

Code: Select all

Can't assign material _NULL_ to SubEntity of SkyXMeshEnt because this Material does not exist. Have you forgotten to define it in a .material script?
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
User avatar
nevarim
Gnoll
Posts: 675
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
x 4

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by nevarim »

hi all again

i tryed to implement a simple solution of skyx on my project but i've some problem to use it...

this is skyframelistener

Code: Select all

#include "Ogre.h"
#include "OIS.h"
#include <SkyX/SkyX.h>
SkyX::SkyX* mSkyX = 0;
class SkyFrameListener : public Ogre::FrameListener
{
public:
    Ogre::SceneManager *mSceneMgr;
    Ogre::Real mKeyBuffer;

    SkyFrameListener(Ogre::RenderWindow* win, Ogre::Camera* cam, Ogre::SceneManager *sm)
    {
    }

    bool frameStarted(const Ogre::FrameEvent &e)
    {
		SkyX::AtmosphereManager::Options SkyXOptions = mSkyX->getAtmosphereManager()->getOptions();
		mSkyX->getAtmosphereManager()->setOptions(SkyXOptions);
		mSkyX->update(e.timeSinceLastFrame);
		mKeyBuffer -= e.timeSinceLastFrame;
		
		// Update terrain material
		static_cast<Ogre::MaterialPtr>(Ogre::MaterialManager::getSingleton().getByName("Terrain"))->getTechnique(0)->getPass(0)
			->getFragmentProgramParameters()->setNamedConstant("uLightY", -mSkyX->getAtmosphereManager()->getSunDirection().y);
		
        return true;
    }
};
and this is createscene function where i create sky

Code: Select all

void BC::createScene(void)
{
		// Create SkyX
		mSkyX = new SkyX::SkyX(mSceneMgr, mCamera);
		mSkyX->create();
		// Add our ground atmospheric scattering pass to terrain material
		//mSkyX->getGPUManager()->addGroundPass(static_cast<Ogre::MaterialPtr>(Ogre::MaterialManager::getSingleton().getByName("Terrain"))->getTechnique(0)->createPass(), 5000, Ogre::SBT_TRANSPARENT_COLOUR);
		// Add a basic cloud layer
		mSkyX->getCloudsManager()->add(SkyX::CloudLayer::Options(/* Default options */));

		// Add frame listener
		mRoot->addFrameListener(new SkyFrameListener(mWindow, mCamera, mSceneMgr));



}
until game not rendering is all ok, but when it try to render i have a crash on

with this error

this is ogre.log but on it i don't find nothing useful...

Code: Select all

16:55:11: Creating resource group General
16:55:11: Creating resource group Internal
16:55:11: Creating resource group Autodetect
16:55:11: SceneManagerFactory for type 'DefaultSceneManager' registered.
16:55:11: Registering ResourceManager for type Material
16:55:11: Registering ResourceManager for type Mesh
16:55:11: Registering ResourceManager for type Skeleton
16:55:11: MovableObjectFactory for type 'ParticleSystem' registered.
16:55:11: OverlayElementFactory for type Panel registered.
16:55:11: OverlayElementFactory for type BorderPanel registered.
16:55:11: OverlayElementFactory for type TextArea registered.
16:55:11: Registering ResourceManager for type Font
16:55:11: ArchiveFactory for archive type FileSystem registered.
16:55:11: ArchiveFactory for archive type Zip registered.
16:55:11: DDS codec registering
16:55:11: FreeImage version: 3.13.1
16:55:11: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
16:55:11: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
16:55:11: Registering ResourceManager for type HighLevelGpuProgram
16:55:11: Registering ResourceManager for type Compositor
16:55:11: MovableObjectFactory for type 'Entity' registered.
16:55:11: MovableObjectFactory for type 'Light' registered.
16:55:11: MovableObjectFactory for type 'BillboardSet' registered.
16:55:11: MovableObjectFactory for type 'ManualObject' registered.
16:55:11: MovableObjectFactory for type 'BillboardChain' registered.
16:55:11: MovableObjectFactory for type 'RibbonTrail' registered.
16:55:11: Loading library .\RenderSystem_Direct3D9_d
16:55:11: Installing plugin: D3D9 RenderSystem
16:55:11: D3D9 : Direct3D9 Rendering Subsystem created.
16:55:11: D3D9: Driver Detection Starts
16:55:11: D3D9: Driver Detection Ends
16:55:11: Plugin successfully installed
16:55:11: Loading library .\RenderSystem_GL_d
16:55:11: Installing plugin: GL RenderSystem
16:55:11: OpenGL Rendering Subsystem created.
16:55:12: Plugin successfully installed
16:55:12: Loading library .\Plugin_ParticleFX_d
16:55:12: Installing plugin: ParticleFX
16:55:12: Particle Emitter Type 'Point' registered
16:55:12: Particle Emitter Type 'Box' registered
16:55:12: Particle Emitter Type 'Ellipsoid' registered
16:55:12: Particle Emitter Type 'Cylinder' registered
16:55:12: Particle Emitter Type 'Ring' registered
16:55:12: Particle Emitter Type 'HollowEllipsoid' registered
16:55:12: Particle Affector Type 'LinearForce' registered
16:55:12: Particle Affector Type 'ColourFader' registered
16:55:12: Particle Affector Type 'ColourFader2' registered
16:55:12: Particle Affector Type 'ColourImage' registered
16:55:12: Particle Affector Type 'ColourInterpolator' registered
16:55:12: Particle Affector Type 'Scaler' registered
16:55:12: Particle Affector Type 'Rotator' registered
16:55:12: Particle Affector Type 'DirectionRandomiser' registered
16:55:12: Particle Affector Type 'DeflectorPlane' registered
16:55:12: Plugin successfully installed
16:55:12: Loading library .\Plugin_BSPSceneManager_d
16:55:12: Installing plugin: BSP Scene Manager
16:55:12: Plugin successfully installed
16:55:12: Loading library .\Plugin_CgProgramManager_d
16:55:12: Installing plugin: Cg Program Manager
16:55:12: Plugin successfully installed
16:55:12: Loading library .\Plugin_PCZSceneManager_d
16:55:12: Installing plugin: Portal Connected Zone Scene Manager
16:55:12: PCZone Factory Type 'ZoneType_Default' registered
16:55:12: Plugin successfully installed
16:55:12: Loading library .\Plugin_OctreeZone_d
16:55:12: Installing plugin: Octree Zone Factory
16:55:12: Plugin successfully installed
16:55:12: Loading library .\Plugin_OctreeSceneManager_d
16:55:12: Installing plugin: Octree & Terrain Scene Manager
16:55:12: Plugin successfully installed
16:55:12: *-*-* OGRE Initialising
16:55:12: *-*-* Version 1.7.2 (Cthugha)
16:55:12: Creating resource group Essential
16:55:12: Added resource location 'D:/ogre/Samples/Media/thumbnails' of type 'FileSystem' to resource group 'Essential'
16:55:12: Added resource location 'D:/ogre/Samples/Media/packs/SdkTrays.zip' of type 'Zip' to resource group 'Essential'
16:55:12: Added resource location 'D:/ogre/Samples/Media' of type 'FileSystem' to resource group 'General'
16:55:12: Added resource location 'media/splat' of type 'FileSystem' to resource group 'General'
16:55:12: Added resource location 'media/texture' of type 'FileSystem' to resource group 'General'
16:55:12: Added resource location 'media/tiles' of type 'FileSystem' to resource group 'General'
16:55:12: Creating resource group Popular
16:55:12: Added resource location 'D:/ogre/Samples/Media/fonts' of type 'FileSystem' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/materials/programs' of type 'FileSystem' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/materials/scripts' of type 'FileSystem' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/materials/textures' of type 'FileSystem' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/materials/textures/nvidia' of type 'FileSystem' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/models' of type 'FileSystem' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/particle' of type 'FileSystem' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/DeferredShadingMedia' of type 'FileSystem' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/PCZAppMedia' of type 'FileSystem' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/RTShaderLib' of type 'FileSystem' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/RTShaderLib/materials' of type 'FileSystem' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/packs/cubemap.zip' of type 'Zip' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/packs/dragon.zip' of type 'Zip' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/packs/ogredance.zip' of type 'Zip' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/packs/Sinbad.zip' of type 'Zip' to resource group 'Popular'
16:55:12: Added resource location 'D:/ogre/Samples/Media/packs/skybox.zip' of type 'Zip' to resource group 'Popular'
16:55:12: Creating resource group SkyX
16:55:12: Added resource location 'media/SkyX' of type 'FileSystem' to resource group 'SkyX'
16:55:12: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
16:55:12: D3D9 : RenderSystem Option: FSAA = 0
16:55:12: D3D9 : RenderSystem Option: Floating-point mode = Fastest
16:55:12: D3D9 : RenderSystem Option: Full Screen = No
16:55:12: D3D9 : RenderSystem Option: Rendering Device = Monitor-1-NVIDIA GeForce 8400M GS
16:55:12: D3D9 : RenderSystem Option: Resource Creation Policy = Create on all devices
16:55:12: D3D9 : RenderSystem Option: VSync = No
16:55:12: D3D9 : RenderSystem Option: VSync Interval = 1
16:55:12: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
16:55:12: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
16:55:13: CPU Identifier & Features
16:55:13: -------------------------
16:55:13:  *   CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU     T7300  @ 2.00GHz
16:55:13:  *      SSE: yes
16:55:13:  *     SSE2: yes
16:55:13:  *     SSE3: yes
16:55:13:  *      MMX: yes
16:55:13:  *   MMXEXT: yes
16:55:13:  *    3DNOW: no
16:55:13:  * 3DNOWEXT: no
16:55:13:  *     CMOV: yes
16:55:13:  *      TSC: yes
16:55:13:  *      FPU: yes
16:55:13:  *      PRO: yes
16:55:13:  *       HT: no
16:55:13: -------------------------
16:55:13: D3D9 : Subsystem Initialising
16:55:13: Registering ResourceManager for type Texture
16:55:13: Registering ResourceManager for type GpuProgram
16:55:13: D3D9RenderSystem::_createRenderWindow "BC Render Window", 800x600 windowed  miscParams: FSAA=0 FSAAHint= colourDepth=32 gamma=false monitorIndex=0 useNVPerfHUD=false vsync=false vsyncInterval=1 
16:55:13: D3D9 : Created D3D9 Rendering Window 'BC Render Window' : 800x600, 32bpp
16:55:13: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
16:55:13: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
16:55:13: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
16:55:13: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
16:55:13: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
16:55:13: D3D9: Vertex texture format supported - PF_FLOAT16_R
16:55:13: D3D9: Vertex texture format supported - PF_FLOAT32_R
16:55:13: D3D9: Vertex texture format supported - PF_FLOAT16_GR
16:55:13: D3D9: Vertex texture format supported - PF_FLOAT32_GR
16:55:13: RenderSystem capabilities
16:55:13: -------------------------
16:55:13: RenderSystem Name: Direct3D9 Rendering Subsystem
16:55:13: GPU Vendor: nvidia
16:55:13: Device Name: Monitor-1-NVIDIA GeForce 8400M GS
16:55:13: Driver Version: 6.14.11.5655
16:55:13:  * Fixed function pipeline: yes
16:55:13:  * Hardware generation of mipmaps: yes
16:55:13:  * Texture blending: yes
16:55:13:  * Anisotropic texture filtering: yes
16:55:13:  * Dot product texture operation: yes
16:55:13:  * Cube mapping: yes
16:55:13:  * Hardware stencil buffer: yes
16:55:13:    - Stencil depth: 8
16:55:13:    - Two sided stencil support: yes
16:55:13:    - Wrap stencil values: yes
16:55:13:  * Hardware vertex / index buffers: yes
16:55:13:  * Vertex programs: yes
16:55:13:  * Number of floating-point constants for vertex programs: 256
16:55:13:  * Number of integer constants for vertex programs: 16
16:55:13:  * Number of boolean constants for vertex programs: 16
16:55:13:  * Fragment programs: yes
16:55:13:  * Number of floating-point constants for fragment programs: 224
16:55:13:  * Number of integer constants for fragment programs: 16
16:55:13:  * Number of boolean constants for fragment programs: 16
16:55:13:  * Geometry programs: no
16:55:13:  * Number of floating-point constants for geometry programs: 0
16:55:13:  * Number of integer constants for geometry programs: 8
16:55:13:  * Number of boolean constants for geometry programs: 0
16:55:13:  * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
16:55:13:  * Texture Compression: yes
16:55:13:    - DXT: yes
16:55:13:    - VTC: no
16:55:13:    - PVRTC: no
16:55:13:  * Scissor Rectangle: yes
16:55:13:  * Hardware Occlusion Query: yes
16:55:13:  * User clip planes: yes
16:55:13:  * VET_UBYTE4 vertex element type: yes
16:55:13:  * Infinite far plane projection: yes
16:55:13:  * Hardware render-to-texture: yes
16:55:13:  * Floating point textures: yes
16:55:13:  * Non-power-of-two textures: yes
16:55:13:  * Volume textures: yes
16:55:13:  * Multiple Render Targets: 4
16:55:13:    - With different bit depths: yes
16:55:13:  * Point Sprites: yes
16:55:13:  * Extended point parameters: yes
16:55:13:  * Max Point Size: 10
16:55:13:  * Vertex texture fetch: yes
16:55:13:  * Number of world matrices: 0
16:55:13:  * Number of texture units: 8
16:55:13:  * Stencil buffer depth: 8
16:55:13:  * Number of vertex blend matrices: 0
16:55:13:    - Max vertex textures: 4
16:55:13:    - Vertex textures shared: no
16:55:13:  * Render to Vertex Buffer : no
16:55:13:  * DirectX per stage constants: yes
16:55:13: ***************************************
16:55:13: *** D3D9 : Subsystem Initialised OK ***
16:55:13: ***************************************
16:55:13: DefaultWorkQueue('Root') initialising on thread 00154B38.
16:55:13: DefaultWorkQueue('Root')::WorkerFunc - thread 001BC110 starting.
16:55:13: Particle Renderer Type 'billboard' registered
16:55:13: DefaultWorkQueue('Root')::WorkerFunc - thread 001BC390 starting.
16:55:13: SceneManagerFactory for type 'BspSceneManager' registered.
16:55:13: Registering ResourceManager for type BspLevel
16:55:13: SceneManagerFactory for type 'PCZSceneManager' registered.
16:55:13: MovableObjectFactory for type 'PCZLight' registered.
16:55:13: MovableObjectFactory for type 'Portal' registered.
16:55:13: MovableObjectFactory for type 'AntiPortal' registered.
16:55:13: PCZone Factory Type 'ZoneType_Octree' registered
16:55:13: PCZone Factory Type 'ZoneType_Terrain' registered
16:55:13: SceneManagerFactory for type 'OctreeSceneManager' registered.
16:55:13: SceneManagerFactory for type 'TerrainSceneManager' registered.
16:55:13: Parsing scripts for resource group Autodetect
16:55:13: Finished parsing scripts for resource group Autodetect
16:55:13: Parsing scripts for resource group Essential
16:55:13: Parsing script SdkTrays.material
16:55:13: Parsing script SdkTrays.fontdef
16:55:13: Parsing script SdkTrays.overlay
16:55:13: Bad element attribute line: '# you can offset the image to change the cursor "hotspot"' for element SdkTrays/Cursor in overlay 
16:55:13: Texture: sdk_cursor.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
16:55:13: Texture: sdk_tray.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
16:55:13: Texture: sdk_button_up.png: Loading 1 faces(PF_A8R8G8B8,128x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x32x1.
16:55:13: Texture: sdk_text_box.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
16:55:13: Texture: sdk_mini_tray.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
16:55:13: Texture: sdk_track.png: Loading 1 faces(PF_A8R8G8B8,16x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x32x1.
16:55:13: Texture: sdk_handle.png: Loading 1 faces(PF_A8R8G8B8,16x16x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x16x1.
16:55:13: Texture: sdk_mini_text_box.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
16:55:13: Texture: sdk_label.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
16:55:13: Texture: sdk_separator.png: Loading 1 faces(PF_A8R8G8B8,64x16x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x16x1.
16:55:13: Texture: sdk_logo.png: Loading 1 faces(PF_A8R8G8B8,128x64x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x64x1.
16:55:13: Texture: sdk_shade.png: Loading 1 faces(PF_A8R8G8B8,64x48x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x48x1.
16:55:13: Texture: sdk_frame.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
16:55:13: Texture: sdk_mini_text_box_over.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
16:55:13: Texture: sdk_pulse.png: Loading 1 faces(PF_R8G8B8,8x1x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,8x1x1.
16:55:13: Finished parsing scripts for resource group Essential
16:55:13: Parsing scripts for resource group General
16:55:13: Finished parsing scripts for resource group General
16:55:13: Parsing scripts for resource group Internal
16:55:13: Finished parsing scripts for resource group Internal
16:55:13: Parsing scripts for resource group Popular
16:55:13: Parsing script Examples.program
16:55:13: Parsing script StdQuad_vp.program
16:55:14: Parsing script deferred_post.program
16:55:14: Parsing script ShadowCaster.program
16:55:14: Parsing script ASCII.material
16:55:14: Parsing script ASMSwizzle.material
16:55:14: Compiler error: object unsupported by render system in ASMSwizzle.material(1)
16:55:14: Parsing script BlackAndWhite.material
16:55:14: Parsing script Bloom.material
16:55:14: Parsing script Bloom2.material
16:55:14: Parsing script CGSwizzle.material
16:55:14: Parsing script CompositorDemo.material
16:55:14: Parsing script DepthShadowmap.material
16:55:14: Parsing script Dither.material
16:55:14: Parsing script DOF.material
16:55:14: Parsing script Embossed.material
16:55:14: Parsing script Example-Water.material
16:55:15: Parsing script Examples-Advanced.material
16:55:15: Parsing script Examples-DynTex.material
16:55:15: Parsing script Examples-Water.material
16:55:15: Parsing script Examples.material
16:55:17: OGRE EXCEPTION(2:InvalidParametersException): Parameter called camObjPos does not exist.  in GpuProgramParameters::_findNamedConstantDefinition at src\OgreGpuProgramParams.cpp (line 1433)
16:55:17: Compiler error: invalid parameters in Examples.material(837): setting of constant failed
16:55:17: Parsing script facial.material
16:55:17: Parsing script Glass.material
16:55:17: Parsing script GLSLSwizzle.material
16:55:17: Parsing script Halftone.material
16:55:17: Parsing script hdr.material
16:55:17: Parsing script HeatVision.material
16:55:17: Parsing script Hurt.material
16:55:17: Parsing script instancing.material
16:55:18: Parsing script Invert.material
16:55:18: Parsing script IsoSurf.material
16:55:18: Parsing script Laplace.material
16:55:18: Parsing script MotionBlur.material
16:55:18: Parsing script MRTtest.material
16:55:18: Parsing script NightVision.material
16:55:18: Parsing script Ocean.material
16:55:18: Parsing script OffsetMapping.material
16:55:19: Parsing script Ogre.material
16:55:19: Parsing script OldMovie.material
16:55:19: Parsing script OldTV.material
16:55:19: Parsing script ParticleGS.material
16:55:19: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/GenerateVS: CG ERROR : "The compile returned an error."
(0) : error C6015: Output 'POSITION' not completely written
 in CgProgram::loadFromSource at src\OgreCgProgramManagerDll.cpp (line 67)
16:55:19: High-level program Ogre/ParticleGS/GenerateVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/GenerateVS: CG ERROR : "The compile returned an error."
(0) : error C6015: Output 'POSITION' not completely written
 in CgProgram::loadFromSource at src\OgreCgProgramManagerDll.cpp (line 67)
16:55:19: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: CG ERROR : "The compile returned an error."
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
 in CgProgram::loadFromSource at src\OgreCgProgramManagerDll.cpp (line 67)
16:55:19: High-level program Ogre/ParticleGS/DisplayVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: CG ERROR : "The compile returned an error."
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
 in CgProgram::loadFromSource at src\OgreCgProgramManagerDll.cpp (line 67)
16:55:19: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: CG ERROR : "The compile returned an error."
(323) : fatal error C9999: unexpected cast operation
 in CgProgram::loadFromSource at src\OgreCgProgramManagerDll.cpp (line 67)
16:55:19: High-level program Ogre/ParticleGS/DisplayPS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: CG ERROR : "The compile returned an error."
(323) : fatal error C9999: unexpected cast operation
 in CgProgram::loadFromSource at src\OgreCgProgramManagerDll.cpp (line 67)
16:55:19: Parsing script Penguin.material
16:55:19: Parsing script Posterize.material
16:55:19: Parsing script pssm.material
16:55:19: Parsing script RadialBlur.material
16:55:19: Parsing script RZR-002.material
16:55:19: Parsing script ShaderSystem.material
16:55:19: Parsing script shadows.material
16:55:19: Parsing script SharpenEdges.material
16:55:19: Parsing script sibenik.material
16:55:19: Parsing script smoke.material
16:55:19: Parsing script Tiling.material
16:55:19: Parsing script VarianceShadowmap.material
16:55:19: Parsing script deferreddemo.material
16:55:19: Parsing script deferred_post.material
16:55:19: Parsing script deferred_post_minilight.material
16:55:19: Parsing script ShadowCaster.material
16:55:19: Parsing script ssao.material
16:55:20: Parsing script ROOM.material
16:55:20: Parsing script RTShaderSystem.material
16:55:20: Compiler error: unknown error in RTShaderSystem.material(23): token "rtshader_system" is not recognized
16:55:20: Compiler error: unknown error in RTShaderSystem.material(52): token "rtshader_system" is not recognized
16:55:20: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
16:55:20: Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
16:55:20: Compiler error: unknown error in RTShaderSystem.material(146): token "rtshader_system" is not recognized
16:55:20: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
16:55:20: Compiler error: unknown error in RTShaderSystem.material(162): token "rtshader_system" is not recognized
16:55:20: Compiler error: unknown error in RTShaderSystem.material(81): token "rtshader_system" is not recognized
16:55:20: Compiler error: unknown error in RTShaderSystem.material(110): token "rtshader_system" is not recognized
16:55:20: Parsing script RomanBath.material
16:55:20: Parsing script Sinbad.material
16:55:20: Parsing script emitted_emitter.particle
16:55:20: Parsing script Examples-Water.particle
16:55:20: Parsing script Examples.particle
16:55:20: Parsing script smoke.particle
16:55:20: Parsing script Examples.compositor
16:55:20: Parsing script deferred.compositor
16:55:20: Parsing script ssao.compositor
16:55:20: Parsing script sample.fontdef
16:55:20: Finished parsing scripts for resource group Popular
16:55:20: Parsing scripts for resource group SkyX
16:55:20: Parsing script SkyX.material
16:55:20: Compiler error: invalid parameters in SkyX.material(109): param_named and param_indexed properties requires at least 3 arguments
16:55:22: Finished parsing scripts for resource group SkyX
16:55:22: *** Initializing OIS ***
16:55:22: Can't assign material _NULL_ to SubEntity of SkyXMeshEnt because this Material does not exist. Have you forgotten to define it in a .material script?
16:55:23: Texture: SkyX_Starfield.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
16:55:23: Texture: SkyX_Moon.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
16:55:23: Terrain created; size=513 minBatch=33 maxBatch=65 treeDepth=4 lodLevels=5 leafLods=2
16:55:24: Texture: blu.png: Loading 1 faces(PF_R8G8B8,123x123x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,123x123x1.
16:55:24: Texture: giallo.png: Loading 1 faces(PF_R8G8B8,123x123x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,123x123x1.
16:55:24: Texture: grigio.png: Loading 1 faces(PF_R8G8B8,123x123x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,123x123x1.
16:55:24: Texture: rosso.png: Loading 1 faces(PF_R8G8B8,123x123x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,123x123x1.
16:55:24: Texture: verdone.png: Loading 1 faces(PF_R8G8B8,123x123x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,123x123x1.
16:55:25: Terrain created; size=513 minBatch=33 maxBatch=65 treeDepth=4 lodLevels=5 leafLods=2
16:55:26: Terrain created; size=513 minBatch=33 maxBatch=65 treeDepth=4 lodLevels=5 leafLods=2
16:55:28: Terrain created; size=513 minBatch=33 maxBatch=65 treeDepth=4 lodLevels=5 leafLods=2
16:55:30: Terrain created; size=513 minBatch=33 maxBatch=65 treeDepth=4 lodLevels=5 leafLods=2
16:55:31: Terrain created; size=513 minBatch=33 maxBatch=65 treeDepth=4 lodLevels=5 leafLods=2
16:55:33: Terrain created; size=513 minBatch=33 maxBatch=65 treeDepth=4 lodLevels=5 leafLods=2
16:55:35: Terrain created; size=513 minBatch=33 maxBatch=65 treeDepth=4 lodLevels=5 leafLods=2
16:55:36: Terrain created; size=513 minBatch=33 maxBatch=65 treeDepth=4 lodLevels=5 leafLods=2
and the error is on screenshot

anyone can help me?

look at createscene there is gpu commented is that the error? i've commented it because get terrain name and with new terrain component i haven't named it because i haven't use any material on it

thanks

nevarim
You do not have the required permissions to view the files attached to this post.
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
User avatar
nevarim
Gnoll
Posts: 675
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
x 4

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by nevarim »

anybody has news? :x
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
User avatar
nevarim
Gnoll
Posts: 675
Joined: Mon Jul 05, 2010 6:16 pm
Location: Pavia Italy
x 4

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by nevarim »

*crashing head*
i'm a noob until proven otherwise :D
used in my project ;) and thanks to everyone :D
Ogre 3d
Mygui
Skyx
Hydrax
MOC
CCS
Kwang1imsa
Gnoblar
Posts: 2
Joined: Fri Mar 11, 2011 3:27 pm

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by Kwang1imsa »

CodeKrash wrote:
kdr35 wrote:I am taking the error in SkyManager.cs;

Code: Select all

public void Create()
        {
            Manager_Create(NativeHandle);
        }
Error message says:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

I think,I usually take that type errors because of uncompatible dlls version while working on mogre. Skyx runtime version is .Net 2.0 framework but mogre's runtime version is 4.0. That uncompatible situation might be cause error. I solved same problem which is working caelum with caelum as use compiled caelum dll on Net 4.0. If is there anyone has compiled skyx on .net 4.0 dlls,I think it will solve the problem.

Thanks.

If you look deeper in the exception, you might find something to do with the vector2 that becomes null after the managed/native transition marshaling process, causing a null argument logical exception

Code: Select all

Z:\Projects\extramegablob\skyxmogre\SkyX\SkyX\CloudsManager.cpp
line 323

Code: Select all

EXPORT SkyX::CloudLayer* CloudsManager_Add(SkyX::CloudsManager* ptr,float height,float scale,const Ogre::Vector2& windDirection,
                                          float timeMultiplier,float distanceAttenuation,float detailAttenuation,float normalMultiplier,
                                          float heightVolume,float volumetricDisplacement)
{
	return ptr->add(SkyX::CloudLayer::Options(height,scale,Ogre::Vector2(1,1),timeMultiplier,distanceAttenuation,detailAttenuation,normalMultiplier,heightVolume,volumetricDisplacement));
}
This is quoted from the MOGRE wrapper of SkyX. Can somebody recompile the dll with this fix?

Thanks.
horus
Gnoblar
Posts: 5
Joined: Mon Apr 25, 2011 12:43 am

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by horus »

reigys wrote:Hi,
I think I have solved this problem.
First, you need to make sure the debug build of Skyx Project is configured to link to OgreMain_d.lib instead of OgreMain.lib.
Second, change the debug runtimelibrary setting of SkyX Project from /MD to /MDd, then recompile this project.
Third, copy the SkyX.dll(maybe 204kB) to SkyX-v0.1\SkyXDemo\bin\debug.
Fourth, change the debug runtimelibrary setting of SkyXDemo from /MD to /MDd(maybe you also need to change the commandline or other settings to avoid errors),then recompile this project.
Now, the SkyXdemo can run in debug mode.
Last, I am sorry for my poor English. :)

PS: I am using Ogre1.7.1 and VS2005.

Best wishes~~
reigys
Hi, I'm new to the Ogre3D community and I'm trying to integrate the SkyX into a project I'm working on.
I followed your instructions, but when I try to build it in DebugMode, I get an error:

Error 1 error D8016: '/ZI' and '/GL' command-line options are incompatible

I'm not really sure what you mean by "maybe you also need to change the commandline or other settings to avoid errors". Can I just erase one of these options ? like delete the /GL option ?
How can I solve this ?

Thanks,
horus.

EDIT: I've removed the /GL option, and turned off optimization in debugmode. Now I'm getting a lot of unresolved external symbols errors. I think it has to do with the SkyX.dll not being found... but I've placed it everywhere, and the builder still can't resolve the external symbols.

Here's a screenshot of the error list:
Image

Any ideas ? Thanks.
haltendehand
Halfling
Posts: 98
Joined: Wed Jun 16, 2010 11:44 pm
Location: Freiburg, Germany

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by haltendehand »

Your problem probably is that you've not added SkyX.lib to the link dependencies
horus
Gnoblar
Posts: 5
Joined: Mon Apr 25, 2011 12:43 am

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by horus »

Thanks for the reply... however,
I don't have a SkyX.lib anywhere. If I try to add a library reference to SkyX.dll, which is the one produced by the SkyX project, it gives me this:
SkyX.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2E8

So, right now I'm clueless about this. When I built the SkyX project, everything went fine.
Also, I don't think it matters, but I'm running win7 64, VS2010, and doing everything in debugmode.
Do you have any suggestions ?

EDIT:Sorry, I didn't notice the .lib file that was just created at the same time as the .dll .
I'm trying to figure out the folder in which to paste this lib.

EDIT2: Ok, so I've managed to get this to build and launch the app with success. I've moved to work directly in the OGRE_HOME directory.
But as soon as it starts, it crashes. The log is here:
http://db.tt/N44wHKB

Thanks in advance.
LBDude
Gnome
Posts: 389
Joined: Mon Jul 26, 2010 10:53 pm
x 22

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by LBDude »

Your log says it can't find the font BlueHighway. Check your resources cfg to make sure you are pointing to Ogre's media directories. Actually, I don't know how your resource is setup, but it's definitely not finding the font, just make sure it can find the font BlueHighway.

On my machine this font is found under:

OGRE_HOME\Samples\Media\fonts
My blog here.
Game twitter here
horus
Gnoblar
Posts: 5
Joined: Mon Apr 25, 2011 12:43 am

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by horus »

Thanks LBDude.
I've managed to get past that error. I just added a reference to the OgreCore.Zip (was missing in my resources_d.cgf).
But now I get an error, just like JonnyJP got:

OGRE EXCEPTION(5:ItemIdentityException): Cannot find a group named SkyX in ResourceGroupManager::isResourceGroupInitialised at ..\..\..\..\OgreMain\src\OgreResourceGroupManager.cpp (line 1889)

I don't understand why it is looking for the resources in ..\..\..\..\ ..... , 'cause I put the SkyX package (the one with the resources), in C:\OgreSDK_vc10_v1-7-2\media\SkyX .
How do I change this ? Or am I placing the SkyX package in the wrong place ?

Thanks.

PS.: Here's my resources_d.cfg (please have a look at it, to check if everything is ok)

Code: Select all

# Resources required by the sample browser and most samples.
[Essential]
Zip=../../media/packs/SdkTrays.zip
FileSystem=../../media/thumbnails

# Common sample resources needed by many of the samples.
# Rarely used resources should be separately loaded by the
# samples which require them.
[Popular]
FileSystem=../../media/fonts
FileSystem=../../media/materials/programs
FileSystem=../../media/materials/scripts
FileSystem=../../media/materials/textures
FileSystem=../../media/materials/textures/nvidia
FileSystem=../../media/models
FileSystem=../../media/particle
FileSystem=../../media/DeferredShadingMedia
FileSystem=../../media/PCZAppMedia
FileSystem=../../media/RTShaderLib
FileSystem=../../media/RTShaderLib/materials
FileSystem=C:\OgreSDK_vc10_v1-7-2\media\SkyX
Zip=../../media/packs/cubemap.zip
Zip=../../media/packs/cubemapsJS.zip
Zip=../../media/packs/dragon.zip
Zip=../../media/packs/fresneldemo.zip
Zip=../../media/packs/ogretestmap.zip
Zip=../../media/packs/ogredance.zip
Zip=../../media/packs/Sinbad.zip
Zip=../../media/packs/skybox.zip
Zip=../../media/packs/OgreCore.zip

[General]
FileSystem=../../media
horus
Gnoblar
Posts: 5
Joined: Mon Apr 25, 2011 12:43 am

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by horus »

I just added a new resource group to the resources_d.cfg .
Now I can run the demo, compiled by me (the original binary was running fine). But I'm missing the ground.. can just see the sky (clouds and moving sun).

I've seen other people here with the same problem, but noone was able to provide an exact solution.
Thanks.
horus
Gnoblar
Posts: 5
Joined: Mon Apr 25, 2011 12:43 am

Re: SkyX plugin [SkyX 0.1 released! - Page 1]

Post by horus »

Finally I was able to run the demo correctly. Don't know why, but the references to the resources cannot be under the group [Popular]. They must be under [General].
That was the only way I could get it to work. Although in debug mode I average about 20fps, in release mode I got almost 200fps (limited it to 60).

Thanks for your amazing help.